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
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for TimingWindow, mainly for use in the functional builder pattern. -
Field Summary
FieldsFields 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 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 TimingWindowcreate a TimingWindow in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns endTime Attribute.Returns startTime Attribute.voidsetEndTime(Date pEndTime) Set endTime Attribute.voidsetStartTime(Date pStartTime) Set startTime Attribute.voidupdateUsing(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, 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
-
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:
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.
-
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:
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>
-