Class ObservationConfiguration

java.lang.Object
org.ivoa.dm.proposal.management.ObservationConfiguration
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="proposalManagement:ObservationConfiguration", role=objectType) public class ObservationConfiguration extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
the configuration of an observation specific to a submission to a particular cycle. objectType: ObservationConfiguration
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • observation

      @VoDml(id="proposalManagement:ObservationConfiguration.observation", role=reference, type="proposal:Observation", typeRole=objectType) protected List<Observation> observation
      ReferenceObject observation : . ( Multiplicity : 1..* )
    • mode

      @VoDml(id="proposalManagement:ObservationConfiguration.mode", role=reference, type="proposalManagement:ObservingMode", typeRole=objectType) protected ObservingMode mode
      ReferenceObject mode : The observing mode. ( Multiplicity : 1 )
  • Constructor Details

    • ObservationConfiguration

      public ObservationConfiguration()
      Creates a new ObservationConfiguration
    • ObservationConfiguration

      public ObservationConfiguration(List<Observation> observation, ObservingMode mode)
      full parameter constructor.
      Parameters:
      observation - .
      mode - The observing mode.
    • ObservationConfiguration

      public ObservationConfiguration(ObservationConfiguration 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
    • updateClonedReferences

      public void updateClonedReferences()
      updates any cloned references that are contained within the hierarchy.
    • updateUsing

      public void updateUsing(ObservationConfiguration 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.
    • getObservation

      public List<Observation> getObservation()
      Returns observation Reference
      Returns:
      observation Reference
    • setObservation

      public void setObservation(List<Observation> pObservation)
      Defines observation Reference
      Parameters:
      pObservation - references to set
    • getMode

      public ObservingMode getMode()
      Returns mode Reference
      Returns:
      mode Reference
    • setMode

      public void setMode(ObservingMode pMode)
      Defines mode Reference
      Parameters:
      pMode - reference to set
    • createObservationConfiguration

      create a ObservationConfiguration 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
    • persistRefs

      @Deprecated public void persistRefs(jakarta.persistence.EntityManager _em)
      Deprecated.
      generally better to use the model level reference persistence as only this can deal with "contained" references properly.
      Specified by:
      persistRefs in interface org.ivoa.vodml.jpa.JPAManipulations