Package org.ivoa.dm.proposal.prop
Class Telescope
java.lang.Object
org.ivoa.dm.proposal.prop.Telescope
- All Implemented Interfaces:
org.ivoa.vodml.jaxb.XmlIdManagement
,org.ivoa.vodml.jpa.JPAManipulations
,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="proposal:Telescope",
role=objectType)
public class Telescope
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>, org.ivoa.vodml.jaxb.XmlIdManagement
.
objectType: Telescope
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder class for Telescope, mainly for use in the functional builder pattern. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Telescope
create a Telescope in functional builder style.void
getId()
org.ivoa.dm.stc.coords.RealCartesianPoint
Returns location AttributegetName()
Returns name AttributeReturns wikiId AttributegetXmlId()
getter for XMLIDboolean
void
jpaClone
(jakarta.persistence.EntityManager em) void
persistRefs
(jakarta.persistence.EntityManager _em) void
setLocation
(org.ivoa.dm.stc.coords.RealCartesianPoint pLocation) Defines location Attributevoid
Defines name Attributevoid
setWikiId
(WikiDataId pWikiId) Defines wikiId Attributevoid
void
updateUsing
(Telescope other) Update this object with the content of the given object.withLocation
(org.ivoa.dm.stc.coords.RealCartesianPoint pLocation) withWikiId
(WikiDataId pWikiId)
-
Field Details
-
_id
inserted database key -
name
@VoDml(id="proposal:Telescope.name", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String nametelescope name. : Attribute name : multiplicity 1 -
wikiId
@VoDml(id="proposal:Telescope.wikiId", role=attribute, type="proposal:WikiDataId", typeRole=primitiveType) protected WikiDataId wikiIdthe wikidata id for the Telescope. : Attribute wikiId : multiplicity 0..1 -
location
@VoDml(id="proposal:Telescope.location", role=attribute, type="coords:RealCartesianPoint", typeRole=dataType) protected org.ivoa.dm.stc.coords.RealCartesianPoint locationthe location of the telescope. : Attribute location : multiplicity 1
-
-
Constructor Details
-
Telescope
public Telescope()Creates a new Telescope -
Telescope
public Telescope(String name, WikiDataId wikiId, org.ivoa.dm.stc.coords.RealCartesianPoint location) full parameter constructor.- Parameters:
name
- telescope name.wikiId
- the wikidata id for the Telescope.location
- the location of the telescope.
-
Telescope
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
-
getXmlId
getter for XMLID- Specified by:
getXmlId
in interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
setXmlId
- Specified by:
setXmlId
in interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
hasNaturalKey
public boolean hasNaturalKey()- Specified by:
hasNaturalKey
in interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
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.
-
getName
Returns name Attribute- Returns:
- name Attribute
-
setName
Defines name Attribute- Parameters:
pName
- value to set
-
withName
-
getWikiId
Returns wikiId Attribute- Returns:
- wikiId Attribute
-
setWikiId
Defines wikiId Attribute- Parameters:
pWikiId
- value to set
-
withWikiId
-
getLocation
public org.ivoa.dm.stc.coords.RealCartesianPoint getLocation()Returns location Attribute- Returns:
- location Attribute
-
setLocation
public void setLocation(org.ivoa.dm.stc.coords.RealCartesianPoint pLocation) Defines location Attribute- Parameters:
pLocation
- value to set
-
withLocation
-
createTelescope
create a Telescope 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
-