Class SimpleExecutionSession

java.lang.Object
org.ivoa.dm.executionbroker.AbstractExecutionSession
org.ivoa.dm.executionbroker.SimpleExecutionSession
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Direct Known Subclasses:
ScheduledExecutionSession

@Entity @VoDml(id="execbroker:SimpleExecutionSession", role=objectType) public class SimpleExecutionSession extends AbstractExecutionSession implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A simple execution session. objectType: SimpleExecutionSession
  • Field Details

    • phase

      @VoDml(id="execbroker:SimpleExecutionSession.phase", role=attribute, type="execbroker:SimpleExecutionSessionPhase", typeRole=enumeration) protected SimpleExecutionSessionPhase phase
      . : Attribute phase : multiplicity 1
    • expires

      @VoDml(id="execbroker:SimpleExecutionSession.expires", role=attribute, type="ivoa:datetime", typeRole=primitiveType) protected Date expires
      The date and time when this offer expires. Only valid while the state is OFFERED. : Attribute expires : multiplicity 1
    • components

      @VoDml(id="execbroker:SimpleExecutionSession.components", role=composition, type="execbroker:SimpleExecutionComponents", typeRole=objectType) protected SimpleExecutionComponents components
      . composition components : ( Multiplicity : 1 )
    • connectors

      @VoDml(id="execbroker:SimpleExecutionSession.connectors", role=composition, type="execbroker:SimpleSessionConnector", typeRole=objectType) protected List<SimpleSessionConnector> connectors
      A list of connectors to interact with the session. composition connectors : ( Multiplicity : 1..* )
  • Constructor Details

    • SimpleExecutionSession

      public SimpleExecutionSession()
      Creates a new SimpleExecutionSession
    • SimpleExecutionSession

      public SimpleExecutionSession(SimpleExecutionSessionPhase phase, Date expires, SimpleExecutionComponents components, List<SimpleSessionConnector> connectors)
      full parameter constructor.
      Parameters:
      phase - .
      expires - The date and time when this offer expires. Only valid while the state is OFFERED.
      components - .
      connectors - A list of connectors to interact with the session.
    • SimpleExecutionSession

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

      public SimpleExecutionSession(AbstractExecutionSession superinstance, SimpleExecutionSessionPhase phase, Date expires, SimpleExecutionComponents components, List<SimpleSessionConnector> connectors)
      Constructor from supertype instance.
      Parameters:
      superinstance - The supertype.
      phase - .
      expires - The date and time when this offer expires. Only valid while the state is OFFERED.
      components - .
      connectors - A list of connectors to interact with the session.
  • Method Details

    • copyMe

      public AbstractExecutionSession copyMe()
      make a clone of the object taking into account current polymorhic type.
      Overrides:
      copyMe in class AbstractExecutionSession
      Returns:
      the cloned object.
    • updateUsing

      public void updateUsing(SimpleExecutionSession 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.
    • getPhase

      public SimpleExecutionSessionPhase getPhase()
      Returns phase Attribute.
      Returns:
      phase Attribute
    • setPhase

      public void setPhase(SimpleExecutionSessionPhase pPhase)
      Set phase Attribute.
      Parameters:
      pPhase - value to set
    • withPhase

      fluent setter for phase Attribute.
      Parameters:
      pPhase - value to set
      Returns:
      SimpleExecutionSession
    • getExpires

      public Date getExpires()
      Returns expires Attribute.
      Returns:
      expires Attribute
    • setExpires

      public void setExpires(Date pExpires)
      Set expires Attribute.
      Parameters:
      pExpires - value to set
    • withExpires

      public SimpleExecutionSession withExpires(Date pExpires)
      fluent setter for expires Attribute.
      Parameters:
      pExpires - value to set
      Returns:
      SimpleExecutionSession
    • getComponents

      public SimpleExecutionComponents getComponents()
      Returns components Attribute.
      Returns:
      components Attribute
    • setComponents

      public void setComponents(SimpleExecutionComponents pComponents)
      Set components Attribute.
      Parameters:
      pComponents - value to set
    • withComponents

      public SimpleExecutionSession withComponents(SimpleExecutionComponents pComponents)
      fluent setter for components Attribute.
      Parameters:
      pComponents - value to set
      Returns:
      SimpleExecutionSession
    • getConnectors

      public List<SimpleSessionConnector> getConnectors()
      Returns connectors composition as an immutable list.
      Returns:
      connectors composition.
    • setConnectors

      public void setConnectors(List<SimpleSessionConnector> pConnectors)
      Defines whole connectors composition.
      Parameters:
      pConnectors - composition to set.
    • addToConnectors

      public void addToConnectors(SimpleSessionConnector p)
      Add a org.ivoa.dm.executionbroker.SimpleSessionConnector to the composition.
      Parameters:
      p - org.ivoa.dm.executionbroker.SimpleSessionConnector to add
    • removeFromConnectors

      public void removeFromConnectors(SimpleSessionConnector p)
      Remove a org.ivoa.dm.executionbroker.SimpleSessionConnector from the composition.
      Parameters:
      p - org.ivoa.dm.executionbroker.SimpleSessionConnector to remove
    • replaceInConnectors

      public void replaceInConnectors(SimpleSessionConnector _p)
      update a org.ivoa.dm.executionbroker.SimpleSessionConnector in the composition.
      Parameters:
      _p - org.ivoa.dm.executionbroker.SimpleSessionConnector to update the match is done via the database key
    • createSimpleExecutionSession

      create a SimpleExecutionSession 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
      Overrides:
      forceLoad in class AbstractExecutionSession
    • delete

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