Package org.ivoa.dm.proposal.management
Class Telescope
java.lang.Object
org.ivoa.dm.proposal.management.ObservingPlatform
org.ivoa.dm.proposal.management.Telescope
- All Implemented Interfaces:
org.ivoa.vodml.jaxb.XmlIdManagement
,org.ivoa.vodml.jpa.JPAManipulations
,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="proposalManagement:Telescope",
role=objectType)
public class Telescope
extends ObservingPlatform
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
Modifier and TypeFieldDescriptionprotected org.ivoa.dm.stc.coords.RealCartesianPoint
the location of the telescope.protected String
telescope name.protected WikiDataId
the wikidata id for the Telescope.Fields inherited from class org.ivoa.dm.proposal.management.ObservingPlatform
_id
-
Constructor Summary
ConstructorDescriptionCreates a new TelescopeTelescope
(String name, WikiDataId wikiId, org.ivoa.dm.stc.coords.RealCartesianPoint location) full parameter constructor.Telescope
(ObservingPlatform superinstance, String name, WikiDataId wikiId, org.ivoa.dm.stc.coords.RealCartesianPoint location) Constructor from supertype instance.Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncopyMe()
make a clone of the object taking into account current polymorhic type.static Telescope
create a Telescope in functional builder style.void
org.ivoa.dm.stc.coords.RealCartesianPoint
Returns location Attribute.getName()
Returns name Attribute.Returns wikiId Attribute.void
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
setLocation
(org.ivoa.dm.stc.coords.RealCartesianPoint pLocation) Set location Attribute.void
Set name Attribute.void
setWikiId
(WikiDataId pWikiId) Set wikiId Attribute.void
updateUsing
(Telescope other) Update this object with the content of the given object.withLocation
(org.ivoa.dm.stc.coords.RealCartesianPoint pLocation) fluent setter for location Attribute.fluent setter for name Attribute.withWikiId
(WikiDataId pWikiId) fluent setter for wikiId Attribute.Methods inherited from class org.ivoa.dm.proposal.management.ObservingPlatform
getId, getXmlId, hasNaturalKey, setXmlId, updateClonedReferences, updateUsing
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType
getId
Methods inherited from interface org.ivoa.vodml.jaxb.XmlIdManagement
getXmlId, hasNaturalKey, setXmlId
-
Field Details
-
name
@VoDml(id="proposalManagement:Telescope.name", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String nametelescope name. : Attribute name : multiplicity 1 -
wikiId
@VoDml(id="proposalManagement: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="proposalManagement: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.
-
Telescope
public Telescope(ObservingPlatform superinstance, String name, WikiDataId wikiId, org.ivoa.dm.stc.coords.RealCartesianPoint location) Constructor from supertype instance.- Parameters:
superinstance
- The supertype.name
- telescope name.wikiId
- the wikidata id for the Telescope.location
- the location of the telescope.
-
-
Method Details
-
copyMe
make a clone of the object taking into account current polymorhic type.- Specified by:
copyMe
in classObservingPlatform
- Returns:
- the cloned object.
-
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
Set name Attribute.- Parameters:
pName
- value to set
-
withName
fluent setter for name Attribute.- Parameters:
pName
- value to set- Returns:
- Telescope
-
getWikiId
Returns wikiId Attribute.- Returns:
- wikiId Attribute
-
setWikiId
Set wikiId Attribute.- Parameters:
pWikiId
- value to set
-
withWikiId
fluent setter for wikiId Attribute.- Parameters:
pWikiId
- value to set- Returns:
- Telescope
-
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) Set location Attribute.- Parameters:
pLocation
- value to set
-
withLocation
fluent setter for location Attribute.- Parameters:
pLocation
- value to set- Returns:
- Telescope
-
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
- Overrides:
forceLoad
in classObservingPlatform
-
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
- Overrides:
persistRefs
in classObservingPlatform
-