Package org.ivoa.dm.proposal.management
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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder class for ObservationConfiguration, mainly for use in the functional builder pattern. -
Field Summary
Modifier and TypeFieldDescriptionprotected Long
inserted database keyprotected ObservingMode
ReferenceObject mode : The observing mode.protected List<Observation>
ReferenceObject observation : . -
Constructor Summary
ConstructorDescriptionCreates a new ObservationConfigurationObservationConfiguration
(List<Observation> observation, ObservingMode mode) full parameter constructor.Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic ObservationConfiguration
createObservationConfiguration
(Consumer<ObservationConfiguration.ObservationConfigurationBuilder> f) create a ObservationConfiguration in functional builder style.void
getId()
getMode()
Returns mode ReferenceReturns observation Referencevoid
persistRefs
(jakarta.persistence.EntityManager _em) Deprecated.generally better to use the model level reference persistence as only this can deal with "contained" references properly.void
setMode
(ObservingMode pMode) Defines mode Referencevoid
setObservation
(List<Observation> pObservation) Defines observation Referencevoid
updates any cloned references that are contained within the hierarchy.void
Update this object with the content of the given object.
-
Field Details
-
_id
inserted database key -
observation
@VoDml(id="proposalManagement:ObservationConfiguration.observation", role=reference, type="proposal:Observation", typeRole=objectType) protected List<Observation> observationReferenceObject observation : . ( Multiplicity : 1..* ) -
mode
@VoDml(id="proposalManagement:ObservationConfiguration.mode", role=reference, type="proposalManagement:ObservingMode", typeRole=objectType) protected ObservingMode modeReferenceObject mode : The observing mode. ( Multiplicity : 1 )
-
-
Constructor Details
-
ObservationConfiguration
public ObservationConfiguration()Creates a new ObservationConfiguration -
ObservationConfiguration
full parameter constructor.- Parameters:
observation
- .mode
- The observing mode.
-
ObservationConfiguration
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:
getId
in interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
- Returns:
- the id
-
updateClonedReferences
public void updateClonedReferences()updates any cloned references that are contained within the hierarchy. -
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.
-
getObservation
Returns observation Reference- Returns:
- observation Reference
-
setObservation
Defines observation Reference- Parameters:
pObservation
- references to set
-
getMode
Returns mode Reference- Returns:
- mode Reference
-
setMode
Defines mode Reference- Parameters:
pMode
- reference to set
-
createObservationConfiguration
public static ObservationConfiguration createObservationConfiguration(Consumer<ObservationConfiguration.ObservationConfigurationBuilder> f) 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 interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
persistRefs
Deprecated.generally better to use the model level reference persistence as only this can deal with "contained" references properly.- Specified by:
persistRefs
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
-