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
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • duration

      @VoDml(id="execbroker:RequestedScheduleItem.duration", role=attribute, type="execbroker:ISO8601Duration", typeRole=primitiveType) protected ISO8601Duration duration
      The requested duration. : Attribute duration : multiplicity 1
    • start

      @VoDml(id="execbroker:RequestedScheduleItem.start", role=attribute, type="execbroker:ISO8601Interval", typeRole=primitiveType) protected ISO8601Interval start
      The requested start interval. : Attribute start : multiplicity 1
  • Constructor Details

    • RequestedScheduleItem

      public RequestedScheduleItem()
      Creates a new RequestedScheduleItem
    • RequestedScheduleItem

      public RequestedScheduleItem(ISO8601Duration duration, ISO8601Interval start)
      full parameter constructor.
      Parameters:
      duration - The requested duration.
      start - The requested start interval.
    • RequestedScheduleItem

      public RequestedScheduleItem(RequestedScheduleItem other)
      Copy Constructor. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
  • Method Details

    • getId

      public Long getId()
      Specified by:
      getId in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
      Returns:
      the id
    • updateUsing

      public void updateUsing(RequestedScheduleItem other)
      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

      public ISO8601Duration getDuration()
      Returns duration Attribute.
      Returns:
      duration Attribute
    • setDuration

      public void setDuration(ISO8601Duration pDuration)
      Set duration Attribute.
      Parameters:
      pDuration - value to set
    • withDuration

      public RequestedScheduleItem withDuration(ISO8601Duration pDuration)
      fluent setter for duration Attribute.
      Parameters:
      pDuration - value to set
      Returns:
      RequestedScheduleItem
    • getStart

      public ISO8601Interval getStart()
      Returns start Attribute.
      Returns:
      start Attribute
    • setStart

      public void setStart(ISO8601Interval pStart)
      Set start Attribute.
      Parameters:
      pStart - value to set
    • withStart

      public RequestedScheduleItem withStart(ISO8601Interval pStart)
      fluent setter for start Attribute.
      Parameters:
      pStart - value to set
      Returns:
      RequestedScheduleItem
    • createRequestedScheduleItem

      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:
      forceLoad in interface org.ivoa.vodml.jpa.JPAManipulations
    • delete

      public void delete(jakarta.persistence.EntityManager em)
      Specified by:
      delete in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>