Class STCSpatial

java.lang.Object
org.ivoa.dm.regtap.STCSpatial
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="RegTAP:STCSpatial", role=objectType) public class STCSpatial extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
The spatial coverage of resources. objectType: STCSpatial
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • coverage

      @VoDml(id="RegTAP:STCSpatial.coverage", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String coverage
      A geometry representing the area a resource contains data for; this should be tight at least with a resolution of degrees. : Attribute coverage : multiplicity 1
    • ref_system_name

      @VoDml(id="RegTAP:STCSpatial.ref_system_name", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String ref_system_name
      The reference frame coverage is written in. This is currently reserved and fixed to NULL. Clients should always add a constraint to NULL for this to avoid matching non-celestial resources later. : Attribute ref_system_name : multiplicity 1
  • Constructor Details

    • STCSpatial

      public STCSpatial()
      Creates a new STCSpatial
    • STCSpatial

      public STCSpatial(String coverage, String ref_system_name)
      full parameter constructor.
      Parameters:
      coverage - A geometry representing the area a resource contains data for; this should be tight at least with a resolution of degrees.
      ref_system_name - The reference frame coverage is written in. This is currently reserved and fixed to NULL. Clients should always add a constraint to NULL for this to avoid matching non-celestial resources later.
    • STCSpatial

      public STCSpatial(STCSpatial 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(STCSpatial 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.
    • getCoverage

      public String getCoverage()
      Returns coverage Attribute.
      Returns:
      coverage Attribute
    • setCoverage

      public void setCoverage(String pCoverage)
      Set coverage Attribute.
      Parameters:
      pCoverage - value to set
    • withCoverage

      public STCSpatial withCoverage(String pCoverage)
      fluent setter for coverage Attribute.
      Parameters:
      pCoverage - value to set
      Returns:
      STCSpatial
    • getRef_system_name

      public String getRef_system_name()
      Returns ref_system_name Attribute.
      Returns:
      ref_system_name Attribute
    • setRef_system_name

      public void setRef_system_name(String pRef_system_name)
      Set ref_system_name Attribute.
      Parameters:
      pRef_system_name - value to set
    • withRef_system_name

      public STCSpatial withRef_system_name(String pRef_system_name)
      fluent setter for ref_system_name Attribute.
      Parameters:
      pRef_system_name - value to set
      Returns:
      STCSpatial
    • createSTCSpatial

      public static STCSpatial createSTCSpatial(Consumer<STCSpatial.STCSpatialBuilder> f)
      create a STCSpatial 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>