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(name="Telescope")
@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
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Telescope, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CartesianPointthe location of the telescope.protected Stringtelescope name.protected WikiDataIdthe wikidata id for the Telescope.Fields inherited from class org.ivoa.dm.proposal.management.ObservingPlatform
_id -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new TelescopeTelescope(String name, WikiDataId wikiId, CartesianPoint location) full parameter constructor.Telescope(ObservingPlatform superinstance, String name, WikiDataId wikiId, CartesianPoint 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 Telescopecreate a Telescope in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns location Attribute.getName()Returns name Attribute.Returns wikiId Attribute.voidsetLocation(CartesianPoint pLocation) Set location Attribute.voidSet name Attribute.voidsetWikiId(WikiDataId pWikiId) Set wikiId Attribute.voidupdateUsing(Telescope other) Update this object with the content of the given object.withLocation(CartesianPoint 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, updateUsingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType
getIdMethods 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 type ivoa:string : 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 type proposal:WikiDataId : multiplicity 0..1 -
location
@VoDml(id="proposalManagement:Telescope.location", role=attribute, type="proposal:coords.CartesianPoint", typeRole=dataType) protected CartesianPoint locationthe location of the telescope. : Attribute location type proposal:coords.CartesianPoint : multiplicity 1
-
-
Constructor Details
-
Telescope
public Telescope()Creates a new Telescope -
Telescope
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, CartesianPoint 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:
copyMein 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
Returns location Attribute.- Returns:
- location Attribute
-
setLocation
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:
forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations- Overrides:
forceLoadin classObservingPlatform
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-