Class SimultaneityConstraint

All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="proposal:SimultaneityConstraint", role=objectType) public class SimultaneityConstraint extends TimingConstraint implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A constraint that requires that two observations occur simultaneously. objectType: SimultaneityConstraint
  • Constructor Details

    • SimultaneityConstraint

      public SimultaneityConstraint()
      Creates a new SimultaneityConstraint
    • SimultaneityConstraint

      public SimultaneityConstraint(String note, Boolean isAvoidConstraint)
      full parameter constructor.
      Parameters:
      note - .
      isAvoidConstraint - .
    • SimultaneityConstraint

      public SimultaneityConstraint(SimultaneityConstraint other)
      Copy Constructor. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
    • SimultaneityConstraint

      public SimultaneityConstraint(TimingConstraint superinstance)
      Constructor from supertype instance.
      Parameters:
      superinstance - The supertype.
  • Method Details

    • copyMe

      public ObservingConstraint copyMe()
      make a clone of the object taking into account current polymorhic type.
      Specified by:
      copyMe in class TimingConstraint
      Returns:
      the cloned object.
    • updateUsing

      public void updateUsing(SimultaneityConstraint other)
      Update this object with the content of the given object. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
    • createSimultaneityConstraint

      create a SimultaneityConstraint in functional builder style.
      Parameters:
      f - the functional builder.
      Returns:
      an object initialized from the builder.
    • forceLoad

      public void forceLoad()
      Specified by:
      forceLoad in interface org.ivoa.vodml.jpa.JPAManipulations
      Overrides:
      forceLoad in class TimingConstraint
    • persistRefs

      @Deprecated public void persistRefs(jakarta.persistence.EntityManager _em)
      Deprecated.
      generally better to use the model level reference persistence as only this can deal with "contained" references properly.
      Specified by:
      persistRefs in interface org.ivoa.vodml.jpa.JPAManipulations
      Overrides:
      persistRefs in class TimingConstraint