Package org.ivoa.dm.executionbroker
Class ScheduledExecutionSchedule
java.lang.Object
org.ivoa.dm.executionbroker.ScheduledExecutionSchedule
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="execbroker:ScheduledExecutionSchedule",
role=objectType)
public class ScheduledExecutionSchedule
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
An Execution Session schedule.
objectType: ScheduledExecutionSchedule
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for ScheduledExecutionSchedule, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected ScheduleStartDurationInterval.protected ScheduleStartDurationInstant.protected ScheduleStartDurationInstant. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new ScheduledExecutionScheduleCopy Constructor.ScheduledExecutionSchedule(ScheduleStartDurationInstant preparing, ScheduleStartDurationInterval available, ScheduleStartDurationInstant releasing) full parameter constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic ScheduledExecutionSchedulecreateScheduledExecutionSchedule(Consumer<ScheduledExecutionSchedule.ScheduledExecutionScheduleBuilder> f) create a ScheduledExecutionSchedule in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns available Attribute.getId()Returns preparing Attribute.Returns releasing Attribute.voidsetAvailable(ScheduleStartDurationInterval pAvailable) Set available Attribute.voidsetPreparing(ScheduleStartDurationInstant pPreparing) Set preparing Attribute.voidsetReleasing(ScheduleStartDurationInstant pReleasing) Set releasing Attribute.voidUpdate this object with the content of the given object.withAvailable(ScheduleStartDurationInterval pAvailable) fluent setter for available Attribute.withPreparing(ScheduleStartDurationInstant pPreparing) fluent setter for preparing Attribute.withReleasing(ScheduleStartDurationInstant pReleasing) fluent setter for releasing Attribute.
-
Field Details
-
_id
inserted database key -
preparing
@VoDml(id="execbroker:ScheduledExecutionSchedule.preparing", role=attribute, type="execbroker:ScheduleStartDurationInstant", typeRole=dataType) protected ScheduleStartDurationInstant preparing. : Attribute preparing : multiplicity 1 -
available
@VoDml(id="execbroker:ScheduledExecutionSchedule.available", role=attribute, type="execbroker:ScheduleStartDurationInterval", typeRole=dataType) protected ScheduleStartDurationInterval available. : Attribute available : multiplicity 1 -
releasing
@VoDml(id="execbroker:ScheduledExecutionSchedule.releasing", role=attribute, type="execbroker:ScheduleStartDurationInstant", typeRole=dataType) protected ScheduleStartDurationInstant releasing. : Attribute releasing : multiplicity 1
-
-
Constructor Details
-
ScheduledExecutionSchedule
public ScheduledExecutionSchedule()Creates a new ScheduledExecutionSchedule -
ScheduledExecutionSchedule
public ScheduledExecutionSchedule(ScheduleStartDurationInstant preparing, ScheduleStartDurationInterval available, ScheduleStartDurationInstant releasing) full parameter constructor.- Parameters:
preparing- .available- .releasing- .
-
ScheduledExecutionSchedule
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.
-
getPreparing
Returns preparing Attribute.- Returns:
- preparing Attribute
-
setPreparing
Set preparing Attribute.- Parameters:
pPreparing- value to set
-
withPreparing
fluent setter for preparing Attribute.- Parameters:
pPreparing- value to set- Returns:
- ScheduledExecutionSchedule
-
getAvailable
Returns available Attribute.- Returns:
- available Attribute
-
setAvailable
Set available Attribute.- Parameters:
pAvailable- value to set
-
withAvailable
fluent setter for available Attribute.- Parameters:
pAvailable- value to set- Returns:
- ScheduledExecutionSchedule
-
getReleasing
Returns releasing Attribute.- Returns:
- releasing Attribute
-
setReleasing
Set releasing Attribute.- Parameters:
pReleasing- value to set
-
withReleasing
fluent setter for releasing Attribute.- Parameters:
pReleasing- value to set- Returns:
- ScheduledExecutionSchedule
-
createScheduledExecutionSchedule
public static ScheduledExecutionSchedule createScheduledExecutionSchedule(Consumer<ScheduledExecutionSchedule.ScheduledExecutionScheduleBuilder> f) create a ScheduledExecutionSchedule 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>
-