Package org.ivoa.dm.proposal.prop
Class TimingConstraint
java.lang.Object
org.ivoa.dm.proposal.prop.ObservingConstraint
org.ivoa.dm.proposal.prop.TimingConstraint
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
- Direct Known Subclasses:
SimultaneityConstraint
,TimingWindow
@Entity
@VoDml(id="proposal:TimingConstraint",
role=objectType)
public abstract class TimingConstraint
extends ObservingConstraint
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Any specific timing requirements for the observing.
objectType: TimingConstraint
-
Field Summary
Fields inherited from class org.ivoa.dm.proposal.prop.ObservingConstraint
_id
-
Constructor Summary
ConstructorDescriptionCreates a new TimingConstraintTimingConstraint
(String note, Boolean isAvoidConstraint) full parameter constructor. -
Method Summary
Modifier and TypeMethodDescriptionabstract ObservingConstraint
copyMe()
make a clone of the object taking into account current polymorhic type.void
Returns isAvoidConstraint Attribute.getNote()
Returns note Attribute.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.void
setIsAvoidConstraint
(Boolean pIsAvoidConstraint) Set isAvoidConstraint Attribute.void
Set note Attribute.void
updateUsing
(TimingConstraint other) Update this object with the content of the given object.withIsAvoidConstraint
(Boolean pIsAvoidConstraint) fluent setter for isAvoidConstraint Attribute.fluent setter for note Attribute.Methods inherited from class org.ivoa.dm.proposal.prop.ObservingConstraint
getId, updateUsing
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType
getId
-
Field Details
-
note
@VoDml(id="proposal:TimingConstraint.note", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String note. : Attribute note : multiplicity 0..1 -
isAvoidConstraint
@VoDml(id="proposal:TimingConstraint.isAvoidConstraint", role=attribute, type="ivoa:boolean", typeRole=primitiveType) protected Boolean isAvoidConstraint. : Attribute isAvoidConstraint : multiplicity 0..1
-
-
Constructor Details
-
TimingConstraint
public TimingConstraint()Creates a new TimingConstraint -
TimingConstraint
full parameter constructor.- Parameters:
note
- .isAvoidConstraint
- .
-
-
Method Details
-
copyMe
make a clone of the object taking into account current polymorhic type.- Specified by:
copyMe
in classObservingConstraint
- 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.
-
getNote
Returns note Attribute.- Returns:
- note Attribute
-
setNote
Set note Attribute.- Parameters:
pNote
- value to set
-
withNote
fluent setter for note Attribute.- Parameters:
pNote
- value to set- Returns:
- TimingConstraint
-
getIsAvoidConstraint
Returns isAvoidConstraint Attribute.- Returns:
- isAvoidConstraint Attribute
-
setIsAvoidConstraint
Set isAvoidConstraint Attribute.- Parameters:
pIsAvoidConstraint
- value to set
-
withIsAvoidConstraint
fluent setter for isAvoidConstraint Attribute.- Parameters:
pIsAvoidConstraint
- value to set- Returns:
- TimingConstraint
-
forceLoad
public void forceLoad()- Specified by:
forceLoad
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
- Overrides:
forceLoad
in classObservingConstraint
-
persistRefs
Deprecated.generally better to use the model level reference persistence as only this can deal with "contained" references properly.- Specified by:
persistRefs
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
- Overrides:
persistRefs
in classObservingConstraint
-