Package org.ivoa.dm.proposal.management
Class TelescopeArrayMember
java.lang.Object
org.ivoa.dm.proposal.management.TelescopeArrayMember
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="proposalManagement:TelescopeArrayMember",
role=objectType)
public class TelescopeArrayMember
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
.
objectType: TelescopeArrayMember
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder class for TelescopeArrayMember, mainly for use in the functional builder pattern. -
Field Summary
-
Constructor Summary
ConstructorDescriptionCreates a new TelescopeArrayMemberTelescopeArrayMember
(Telescope telescope) full parameter constructor.Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic TelescopeArrayMember
create a TelescopeArrayMember in functional builder style.void
getId()
Returns telescope 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
setTelescope
(Telescope pTelescope) Defines telescope Referencevoid
updates any cloned references that are contained within the hierarchy.void
updateUsing
(TelescopeArrayMember other) Update this object with the content of the given object.
-
Field Details
-
_id
inserted database key -
telescope
@VoDml(id="proposalManagement:TelescopeArrayMember.telescope", role=reference, type="proposalManagement:Telescope", typeRole=objectType) protected Telescope telescopeReferenceObject telescope : . ( Multiplicity : 1 )
-
-
Constructor Details
-
TelescopeArrayMember
public TelescopeArrayMember()Creates a new TelescopeArrayMember -
TelescopeArrayMember
full parameter constructor.- Parameters:
telescope
- .
-
TelescopeArrayMember
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
-
createTelescopeArrayMember
public static TelescopeArrayMember createTelescopeArrayMember(Consumer<TelescopeArrayMember.TelescopeArrayMemberBuilder> f) create a TelescopeArrayMember 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
-