Package org.ivoa.dm.executionbroker
Class RequestedScheduleItem
java.lang.Object
org.ivoa.dm.executionbroker.RequestedScheduleItem
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="execbroker:RequestedScheduleItem",
role=objectType)
public class RequestedScheduleItem
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
The requested schedule.
objectType: RequestedScheduleItem
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for RequestedScheduleItem, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected ISO8601DurationThe requested duration.protected ISO8601IntervalThe requested start interval. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new RequestedScheduleItemRequestedScheduleItem(ISO8601Duration duration, ISO8601Interval start) full parameter constructor.Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestedScheduleItemcreate a RequestedScheduleItem in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns duration Attribute.getId()getStart()Returns start Attribute.voidsetDuration(ISO8601Duration pDuration) Set duration Attribute.voidsetStart(ISO8601Interval pStart) Set start Attribute.voidupdateUsing(RequestedScheduleItem other) Update this object with the content of the given object.withDuration(ISO8601Duration pDuration) fluent setter for duration Attribute.withStart(ISO8601Interval pStart) fluent setter for start Attribute.
-
Field Details
-
_id
inserted database key -
duration
@VoDml(id="execbroker:RequestedScheduleItem.duration", role=attribute, type="execbroker:ISO8601Duration", typeRole=primitiveType) protected ISO8601Duration durationThe requested duration. : Attribute duration : multiplicity 1 -
start
@VoDml(id="execbroker:RequestedScheduleItem.start", role=attribute, type="execbroker:ISO8601Interval", typeRole=primitiveType) protected ISO8601Interval startThe requested start interval. : Attribute start : multiplicity 1
-
-
Constructor Details
-
RequestedScheduleItem
public RequestedScheduleItem()Creates a new RequestedScheduleItem -
RequestedScheduleItem
full parameter constructor.- Parameters:
duration- The requested duration.start- The requested start interval.
-
RequestedScheduleItem
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>- Returns:
- the id
-
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.
-
getDuration
Returns duration Attribute.- Returns:
- duration Attribute
-
setDuration
Set duration Attribute.- Parameters:
pDuration- value to set
-
withDuration
fluent setter for duration Attribute.- Parameters:
pDuration- value to set- Returns:
- RequestedScheduleItem
-
getStart
Returns start Attribute.- Returns:
- start Attribute
-
setStart
Set start Attribute.- Parameters:
pStart- value to set
-
withStart
fluent setter for start Attribute.- Parameters:
pStart- value to set- Returns:
- RequestedScheduleItem
-
createRequestedScheduleItem
public static RequestedScheduleItem createRequestedScheduleItem(Consumer<RequestedScheduleItem.RequestedScheduleItemBuilder> f) create a RequestedScheduleItem 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
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-