Class PhysicalLocation

java.lang.Object
org.ivoa.dm.execution.PhysicalLocation
All Implemented Interfaces:
org.ivoa.vodml.jaxb.XmlIdManagement, org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="execution:PhysicalLocation", role=objectType) public class PhysicalLocation extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>, org.ivoa.vodml.jaxb.XmlIdManagement
The physical location of a resource. objectType: PhysicalLocation
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • name

      @VoDml(id="execution:PhysicalLocation.name", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String name
      A human readable name for the location. : Attribute name type ivoa:string : multiplicity 1
    • country

      @VoDml(id="execution:PhysicalLocation.country", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String country
      Country name. : Attribute country type ivoa:string : multiplicity 1
    • longitude

      @VoDml(id="execution:PhysicalLocation.longitude", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double longitude
      Longitude in degrees. : Attribute longitude type ivoa:real : multiplicity 1
    • latitude

      @VoDml(id="execution:PhysicalLocation.latitude", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double latitude
      Latitude in degrees. : Attribute latitude type ivoa:real : multiplicity 1
  • Constructor Details

    • PhysicalLocation

      public PhysicalLocation()
      Creates a new PhysicalLocation
    • PhysicalLocation

      public PhysicalLocation(String name, String country, Double longitude, Double latitude)
      full parameter constructor.
      Parameters:
      name - A human readable name for the location.
      country - Country name.
      longitude - Longitude in degrees.
      latitude - Latitude in degrees.
    • PhysicalLocation

      public PhysicalLocation(PhysicalLocation 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(PhysicalLocation 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)
      Set name Attribute.
      Parameters:
      pName - value to set
    • withName

      public PhysicalLocation withName(String pName)
      fluent setter for name Attribute.
      Parameters:
      pName - value to set
      Returns:
      PhysicalLocation
    • getCountry

      public String getCountry()
      Returns country Attribute.
      Returns:
      country Attribute
    • setCountry

      public void setCountry(String pCountry)
      Set country Attribute.
      Parameters:
      pCountry - value to set
    • withCountry

      public PhysicalLocation withCountry(String pCountry)
      fluent setter for country Attribute.
      Parameters:
      pCountry - value to set
      Returns:
      PhysicalLocation
    • getLongitude

      public Double getLongitude()
      Returns longitude Attribute.
      Returns:
      longitude Attribute
    • setLongitude

      public void setLongitude(Double pLongitude)
      Set longitude Attribute.
      Parameters:
      pLongitude - value to set
    • withLongitude

      public PhysicalLocation withLongitude(Double pLongitude)
      fluent setter for longitude Attribute.
      Parameters:
      pLongitude - value to set
      Returns:
      PhysicalLocation
    • getLatitude

      public Double getLatitude()
      Returns latitude Attribute.
      Returns:
      latitude Attribute
    • setLatitude

      public void setLatitude(Double pLatitude)
      Set latitude Attribute.
      Parameters:
      pLatitude - value to set
    • withLatitude

      public PhysicalLocation withLatitude(Double pLatitude)
      fluent setter for latitude Attribute.
      Parameters:
      pLatitude - value to set
      Returns:
      PhysicalLocation
    • createPhysicalLocation

      public static PhysicalLocation createPhysicalLocation(Consumer<PhysicalLocation.PhysicalLocationBuilder> f)
      create a PhysicalLocation 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>