Package org.ivoa.dm.proposal.prop
Class SimultaneityConstraint
java.lang.Object
org.ivoa.dm.proposal.prop.ObservingConstraint
org.ivoa.dm.proposal.prop.TimingConstraint
org.ivoa.dm.proposal.prop.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
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for SimultaneityConstraint, mainly for use in the functional builder pattern. - 
Field Summary
Fields inherited from class org.ivoa.dm.proposal.prop.TimingConstraint
isAvoidConstraint, noteFields inherited from class org.ivoa.dm.proposal.prop.ObservingConstraint
_id - 
Constructor Summary
ConstructorsConstructorDescriptionCreates a new SimultaneityConstraintSimultaneityConstraint(String note, Boolean isAvoidConstraint) full parameter constructor.Copy Constructor.SimultaneityConstraint(TimingConstraint superinstance) Constructor from supertype instance. - 
Method Summary
Modifier and TypeMethodDescriptioncopyMe()make a clone of the object taking into account current polymorhic type.static SimultaneityConstraintcreate a SimultaneityConstraint in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidvoidUpdate this object with the content of the given object.Methods inherited from class org.ivoa.dm.proposal.prop.TimingConstraint
getIsAvoidConstraint, getNote, setIsAvoidConstraint, setNote, updateUsing, withIsAvoidConstraint, withNoteMethods inherited from class org.ivoa.dm.proposal.prop.ObservingConstraint
getId, updateUsingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType
getId 
- 
Constructor Details
- 
SimultaneityConstraint
public SimultaneityConstraint()Creates a new SimultaneityConstraint - 
SimultaneityConstraint
full parameter constructor.- Parameters:
 note- .isAvoidConstraint- .
 - 
SimultaneityConstraint
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
 other- the object to be copied.
 - 
SimultaneityConstraint
Constructor from supertype instance.- Parameters:
 superinstance- The supertype.
 
 - 
 - 
Method Details
- 
copyMe
make a clone of the object taking into account current polymorhic type.- Specified by:
 copyMein classTimingConstraint- Returns:
 - the cloned object.
 
 - 
updateUsing
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
public static SimultaneityConstraint createSimultaneityConstraint(Consumer<SimultaneityConstraint.SimultaneityConstraintBuilder> f) 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:
 forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations- Overrides:
 forceLoadin classTimingConstraint
 - 
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
 deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
 
 -