Class STCTemporal

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

@Entity @VoDml(id="RegTAP:STCTemporal", role=objectType) public class STCTemporal extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
The temporal coverage of resources, given as one or more intervals. objectType: STCTemporal
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • time_start

      @VoDml(id="RegTAP:STCTemporal.time_start", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double time_start
      Lower limit of a time interval covered by the resource in MJD. : Attribute time_start : multiplicity 1
    • time_end

      @VoDml(id="RegTAP:STCTemporal.time_end", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double time_end
      Upper limit of a time interval covered by the resource in MJD. : Attribute time_end : multiplicity 1
  • Constructor Details

    • STCTemporal

      public STCTemporal()
      Creates a new STCTemporal
    • STCTemporal

      public STCTemporal(Double time_start, Double time_end)
      full parameter constructor.
      Parameters:
      time_start - Lower limit of a time interval covered by the resource in MJD.
      time_end - Upper limit of a time interval covered by the resource in MJD.
    • STCTemporal

      public STCTemporal(STCTemporal 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(STCTemporal 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.
    • getTime_start

      public Double getTime_start()
      Returns time_start Attribute.
      Returns:
      time_start Attribute
    • setTime_start

      public void setTime_start(Double pTime_start)
      Set time_start Attribute.
      Parameters:
      pTime_start - value to set
    • withTime_start

      public STCTemporal withTime_start(Double pTime_start)
      fluent setter for time_start Attribute.
      Parameters:
      pTime_start - value to set
      Returns:
      STCTemporal
    • getTime_end

      public Double getTime_end()
      Returns time_end Attribute.
      Returns:
      time_end Attribute
    • setTime_end

      public void setTime_end(Double pTime_end)
      Set time_end Attribute.
      Parameters:
      pTime_end - value to set
    • withTime_end

      public STCTemporal withTime_end(Double pTime_end)
      fluent setter for time_end Attribute.
      Parameters:
      pTime_end - value to set
      Returns:
      STCTemporal
    • createSTCTemporal

      public static STCTemporal createSTCTemporal(Consumer<STCTemporal.STCTemporalBuilder> f)
      create a STCTemporal 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>