Class SkyPos

java.lang.Object
org.ivoa.dm.registry.sia.SkyPos
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="SIA:SkyPos", role=objectType) public class SkyPos extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
. objectType: SkyPos
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • long_

      @VoDml(id="SIA:SkyPos.long", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double long_
      The sky position in the longitude (R.A.) direction . : Attribute long_ : multiplicity 1
    • lat

      @VoDml(id="SIA:SkyPos.lat", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double lat
      The sky position in the latitude (Dec.) direction . : Attribute lat : multiplicity 1
  • Constructor Details

    • SkyPos

      public SkyPos()
      Creates a new SkyPos
    • SkyPos

      public SkyPos(Double long_, Double lat)
      full parameter constructor.
      Parameters:
      long_ - The sky position in the longitude (R.A.) direction .
      lat - The sky position in the latitude (Dec.) direction .
    • SkyPos

      public SkyPos(SkyPos 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
    • updateUsing

      public void updateUsing(SkyPos 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.
    • getLong

      public Double getLong()
      Returns long Attribute.
      Returns:
      long Attribute
    • setLong

      public void setLong(Double pLong)
      Set long Attribute.
      Parameters:
      pLong - value to set
    • withLong

      public SkyPos withLong(Double pLong)
      fluent setter for long Attribute.
      Parameters:
      pLong - value to set
      Returns:
      SkyPos
    • getLat

      public Double getLat()
      Returns lat Attribute.
      Returns:
      lat Attribute
    • setLat

      public void setLat(Double pLat)
      Set lat Attribute.
      Parameters:
      pLat - value to set
    • withLat

      public SkyPos withLat(Double pLat)
      fluent setter for lat Attribute.
      Parameters:
      pLat - value to set
      Returns:
      SkyPos
    • createSkyPos

      public static SkyPos createSkyPos(Consumer<SkyPos.SkyPosBuilder> f)
      create a SkyPos 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
    • delete

      public void delete(jakarta.persistence.EntityManager em)
      Specified by:
      delete in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>