Package org.ivoa.dm.proposal.prop
Class TelescopeArrayMember
java.lang.Object
org.ivoa.dm.proposal.prop.TelescopeArrayMember
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="proposal: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
jpaClone
(jakarta.persistence.EntityManager em) void
persistRefs
(jakarta.persistence.EntityManager _em) 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="proposal:TelescopeArrayMember.telescope", role=reference, type="proposal: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
-
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
-