Package org.ivoa.dm.proposal.prop
Class TimingWindow
java.lang.Object
org.ivoa.dm.proposal.prop.ObservingConstraint
org.ivoa.dm.proposal.prop.TimingConstraint
org.ivoa.dm.proposal.prop.TimingWindow
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="proposal:TimingWindow",
role=objectType)
public class TimingWindow
extends TimingConstraint
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
particular time range.
objectType: TimingWindow
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder class for TimingWindow, mainly for use in the functional builder pattern. -
Field Summary
Fields inherited from class org.ivoa.dm.proposal.prop.TimingConstraint
isAvoidConstraint, note
Fields inherited from class org.ivoa.dm.proposal.prop.ObservingConstraint
_id
-
Constructor Summary
ConstructorDescriptionCreates a new TimingWindowTimingWindow
(Date startTime, Date endTime, String note, Boolean isAvoidConstraint) full parameter constructor.TimingWindow
(TimingConstraint superinstance, Date startTime, Date endTime) Constructor from supertype instance.TimingWindow
(TimingWindow other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncopyMe()
make a clone of the object taking into account current polymorhic type.static TimingWindow
create a TimingWindow in functional builder style.void
Returns endTime Attribute.Returns startTime 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
setEndTime
(Date pEndTime) Set endTime Attribute.void
setStartTime
(Date pStartTime) Set startTime Attribute.void
updateUsing
(TimingWindow other) Update this object with the content of the given object.withEndTime
(Date pEndTime) fluent setter for endTime Attribute.withStartTime
(Date pStartTime) fluent setter for startTime Attribute.Methods inherited from class org.ivoa.dm.proposal.prop.TimingConstraint
getIsAvoidConstraint, getNote, setIsAvoidConstraint, setNote, updateUsing, withIsAvoidConstraint, withNote
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
-
startTime
@VoDml(id="proposal:TimingWindow.startTime", role=attribute, type="ivoa:datetime", typeRole=primitiveType) protected Date startTime. : Attribute startTime : multiplicity 0..1 -
endTime
@VoDml(id="proposal:TimingWindow.endTime", role=attribute, type="ivoa:datetime", typeRole=primitiveType) protected Date endTime. : Attribute endTime : multiplicity 0..1
-
-
Constructor Details
-
TimingWindow
public TimingWindow()Creates a new TimingWindow -
TimingWindow
full parameter constructor.- Parameters:
startTime
- .endTime
- .note
- .isAvoidConstraint
- .
-
TimingWindow
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other
- the object to be copied.
-
TimingWindow
Constructor from supertype instance.- Parameters:
superinstance
- The supertype.startTime
- .endTime
- .
-
-
Method Details
-
copyMe
make a clone of the object taking into account current polymorhic type.- Specified by:
copyMe
in 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.
-
getStartTime
Returns startTime Attribute.- Returns:
- startTime Attribute
-
setStartTime
Set startTime Attribute.- Parameters:
pStartTime
- value to set
-
withStartTime
fluent setter for startTime Attribute.- Parameters:
pStartTime
- value to set- Returns:
- TimingWindow
-
getEndTime
Returns endTime Attribute.- Returns:
- endTime Attribute
-
setEndTime
Set endTime Attribute.- Parameters:
pEndTime
- value to set
-
withEndTime
fluent setter for endTime Attribute.- Parameters:
pEndTime
- value to set- Returns:
- TimingWindow
-
createTimingWindow
create a TimingWindow in functional builder style.- Parameters:
f
- the functional builder.- Returns:
- an object initialized from the builder.
-
forceLoad
public void forceLoad()- Specified by:
forceLoad
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
- Overrides:
forceLoad
in classTimingConstraint
-
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 classTimingConstraint
-