Class SkySize

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

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

    • _id

      protected Long _id
      inserted database key
    • long_

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

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

    • SkySize

      public SkySize()
      Creates a new SkySize
    • SkySize

      public SkySize(Double long_, Double lat)
      full parameter constructor.
      Parameters:
      long_ - The maximum size in the longitude (R.A.) direction given in degrees .
      lat - The maximum size in the latitude (Dec.) direction given in degrees .
    • SkySize

      public SkySize(SkySize 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(SkySize 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 SkySize withLong(Double pLong)
      fluent setter for long Attribute.
      Parameters:
      pLong - value to set
      Returns:
      SkySize
    • 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 SkySize withLat(Double pLat)
      fluent setter for lat Attribute.
      Parameters:
      pLat - value to set
      Returns:
      SkySize
    • createSkySize

      public static SkySize createSkySize(Consumer<SkySize.SkySizeBuilder> f)
      create a SkySize 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>