Package org.ivoa.dm.executionbroker
Class RequestedScheduleBlock
java.lang.Object
org.ivoa.dm.executionbroker.RequestedScheduleBlock
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="execbroker:RequestedScheduleBlock",
role=objectType)
public class RequestedScheduleBlock
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
The requested schedule.
objectType: RequestedScheduleBlock
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for RequestedScheduleBlock, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected RequestedScheduleItem. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new RequestedScheduleBlockCopy Constructor.RequestedScheduleBlock(RequestedScheduleItem requested) full parameter constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestedScheduleBlockcreate a RequestedScheduleBlock in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidgetId()Returns requested Attribute.voidsetRequested(RequestedScheduleItem pRequested) Set requested Attribute.voidUpdate this object with the content of the given object.withRequested(RequestedScheduleItem pRequested) fluent setter for requested Attribute.
-
Field Details
-
_id
inserted database key -
requested
@VoDml(id="execbroker:RequestedScheduleBlock.requested", role=composition, type="execbroker:RequestedScheduleItem", typeRole=objectType) protected RequestedScheduleItem requested. composition requested : ( Multiplicity : 1 )
-
-
Constructor Details
-
RequestedScheduleBlock
public RequestedScheduleBlock()Creates a new RequestedScheduleBlock -
RequestedScheduleBlock
full parameter constructor.- Parameters:
requested- .
-
RequestedScheduleBlock
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.
-
getRequested
Returns requested Attribute.- Returns:
- requested Attribute
-
setRequested
Set requested Attribute.- Parameters:
pRequested- value to set
-
withRequested
fluent setter for requested Attribute.- Parameters:
pRequested- value to set- Returns:
- RequestedScheduleBlock
-
createRequestedScheduleBlock
public static RequestedScheduleBlock createRequestedScheduleBlock(Consumer<RequestedScheduleBlock.RequestedScheduleBlockBuilder> f) create a RequestedScheduleBlock 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>
-