Package org.ivoa.dm.proposal.prop
Class ObservingConfiguration
java.lang.Object
org.ivoa.dm.proposal.prop.ObservingConfiguration
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="proposal:ObservingConfiguration",
role=objectType)
public class ObservingConfiguration
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A particular observation combination that is possible.
objectType: ObservingConfiguration
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder class for ObservingConfiguration, mainly for use in the functional builder pattern. -
Field Summary
Modifier and TypeFieldDescriptionprotected Long
inserted database keyprotected Backend
ReferenceObject backend : .protected Instrument
ReferenceObject instrument : .protected Telescope
ReferenceObject telescope : . -
Constructor Summary
ConstructorDescriptionCreates a new ObservingConfigurationCopy Constructor.ObservingConfiguration
(Telescope telescope, Instrument instrument, Backend backend) full parameter constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic ObservingConfiguration
create a ObservingConfiguration in functional builder style.void
Returns backend ReferencegetId()
Returns instrument ReferenceReturns telescope Referencevoid
jpaClone
(jakarta.persistence.EntityManager em) void
persistRefs
(jakarta.persistence.EntityManager _em) void
setBackend
(Backend pBackend) Defines backend Referencevoid
setInstrument
(Instrument pInstrument) Defines instrument Referencevoid
setTelescope
(Telescope pTelescope) Defines telescope 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 -
telescope
@VoDml(id="proposal:ObservingConfiguration.telescope", role=reference, type="proposal:Telescope", typeRole=objectType) protected Telescope telescopeReferenceObject telescope : . ( Multiplicity : 1 ) -
instrument
@VoDml(id="proposal:ObservingConfiguration.instrument", role=reference, type="proposal:Instrument", typeRole=objectType) protected Instrument instrumentReferenceObject instrument : . ( Multiplicity : 1 ) -
backend
@VoDml(id="proposal:ObservingConfiguration.backend", role=reference, type="proposal:Backend", typeRole=objectType) protected Backend backendReferenceObject backend : . ( Multiplicity : 1 )
-
-
Constructor Details
-
ObservingConfiguration
public ObservingConfiguration()Creates a new ObservingConfiguration -
ObservingConfiguration
full parameter constructor.- Parameters:
telescope
- .instrument
- .backend
- .
-
ObservingConfiguration
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.
-
getTelescope
Returns telescope Reference- Returns:
- telescope Reference
-
setTelescope
Defines telescope Reference- Parameters:
pTelescope
- reference to set
-
getInstrument
Returns instrument Reference- Returns:
- instrument Reference
-
setInstrument
Defines instrument Reference- Parameters:
pInstrument
- reference to set
-
getBackend
Returns backend Reference- Returns:
- backend Reference
-
setBackend
Defines backend Reference- Parameters:
pBackend
- reference to set
-
createObservingConfiguration
public static ObservingConfiguration createObservingConfiguration(Consumer<ObservingConfiguration.ObservingConfigurationBuilder> f) create a ObservingConfiguration 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
-
jpaClone
public void jpaClone(jakarta.persistence.EntityManager em) - Specified by:
jpaClone
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
persistRefs
public void persistRefs(jakarta.persistence.EntityManager _em) - Specified by:
persistRefs
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
-