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()
static TimingWindow
create a TimingWindow in functional builder style.void
Returns endTime AttributeReturns startTime Attributevoid
jpaClone
(jakarta.persistence.EntityManager em) void
persistRefs
(jakarta.persistence.EntityManager _em) void
setEndTime
(Date pEndTime) Defines endTime Attributevoid
setStartTime
(Date pStartTime) Defines startTime Attributevoid
updateUsing
(TimingWindow other) Update this object with the content of the given object.withEndTime
(Date pEndTime) withStartTime
(Date pStartTime) 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
- Specified by:
copyMe
in classTimingConstraint
-
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
Defines startTime Attribute- Parameters:
pStartTime
- value to set
-
withStartTime
-
getEndTime
Returns endTime Attribute- Returns:
- endTime Attribute
-
setEndTime
Defines endTime Attribute- Parameters:
pEndTime
- value to set
-
withEndTime
-
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
-
jpaClone
public void jpaClone(jakarta.persistence.EntityManager em) - Specified by:
jpaClone
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
- Overrides:
jpaClone
in classTimingConstraint
-
persistRefs
public void persistRefs(jakarta.persistence.EntityManager _em) - Specified by:
persistRefs
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
- Overrides:
persistRefs
in classTimingConstraint
-