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
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • name

      @VoDml(id="proposal:Telescope.name", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String name
      telescope name. : Attribute name : multiplicity 1
    • wikiId

      @VoDml(id="proposal:Telescope.wikiId", role=attribute, type="proposal:WikiDataId", typeRole=primitiveType) protected WikiDataId wikiId
      the 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 location
      the 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

      public Telescope(Telescope other)
      Copy Constructor. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
  • Method Details

    • getId

      public Long getId()
      Specified by:
      getId in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
      Returns:
      the id
    • getXmlId

      public String getXmlId()
      getter for XMLID
      Specified by:
      getXmlId in interface org.ivoa.vodml.jaxb.XmlIdManagement
    • setXmlId

      public void setXmlId(String id)
      Specified by:
      setXmlId in interface org.ivoa.vodml.jaxb.XmlIdManagement
    • hasNaturalKey

      public boolean hasNaturalKey()
      Specified by:
      hasNaturalKey in interface org.ivoa.vodml.jaxb.XmlIdManagement
    • updateUsing

      public void updateUsing(Telescope other)
      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

      public String getName()
      Returns name Attribute
      Returns:
      name Attribute
    • setName

      public void setName(String pName)
      Defines name Attribute
      Parameters:
      pName - value to set
    • withName

      public Telescope withName(String pName)
    • getWikiId

      public WikiDataId getWikiId()
      Returns wikiId Attribute
      Returns:
      wikiId Attribute
    • setWikiId

      public void setWikiId(WikiDataId pWikiId)
      Defines wikiId Attribute
      Parameters:
      pWikiId - value to set
    • withWikiId

      public Telescope withWikiId(WikiDataId pWikiId)
    • 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

      public Telescope withLocation(org.ivoa.dm.stc.coords.RealCartesianPoint pLocation)
    • createTelescope

      public static Telescope createTelescope(Consumer<Telescope.TelescopeBuilder> f)
      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 interface org.ivoa.vodml.jpa.JPAManipulations
    • jpaClone

      public void jpaClone(jakarta.persistence.EntityManager em)
      Specified by:
      jpaClone in interface org.ivoa.vodml.jpa.JPAManipulations
    • persistRefs

      public void persistRefs(jakarta.persistence.EntityManager _em)
      Specified by:
      persistRefs in interface org.ivoa.vodml.jpa.JPAManipulations