Class STCSpectral

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

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

    • _id

      protected Long _id
      inserted database key
    • spectral_start

      @VoDml(id="RegTAP:STCSpectral.spectral_start", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double spectral_start
      Lower limit (in Joules) of messenger energy interval covered by the resource (for the solar system barycenter). : Attribute spectral_start : multiplicity 1
    • spectral_end

      @VoDml(id="RegTAP:STCSpectral.spectral_end", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double spectral_end
      Upper limit (in Joules) of messenger energy interval covered by the resource (for the solar system barycenter). : Attribute spectral_end : multiplicity 1
  • Constructor Details

    • STCSpectral

      public STCSpectral()
      Creates a new STCSpectral
    • STCSpectral

      public STCSpectral(Double spectral_start, Double spectral_end)
      full parameter constructor.
      Parameters:
      spectral_start - Lower limit (in Joules) of messenger energy interval covered by the resource (for the solar system barycenter).
      spectral_end - Upper limit (in Joules) of messenger energy interval covered by the resource (for the solar system barycenter).
    • STCSpectral

      public STCSpectral(STCSpectral 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(STCSpectral 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.
    • getSpectral_start

      public Double getSpectral_start()
      Returns spectral_start Attribute.
      Returns:
      spectral_start Attribute
    • setSpectral_start

      public void setSpectral_start(Double pSpectral_start)
      Set spectral_start Attribute.
      Parameters:
      pSpectral_start - value to set
    • withSpectral_start

      public STCSpectral withSpectral_start(Double pSpectral_start)
      fluent setter for spectral_start Attribute.
      Parameters:
      pSpectral_start - value to set
      Returns:
      STCSpectral
    • getSpectral_end

      public Double getSpectral_end()
      Returns spectral_end Attribute.
      Returns:
      spectral_end Attribute
    • setSpectral_end

      public void setSpectral_end(Double pSpectral_end)
      Set spectral_end Attribute.
      Parameters:
      pSpectral_end - value to set
    • withSpectral_end

      public STCSpectral withSpectral_end(Double pSpectral_end)
      fluent setter for spectral_end Attribute.
      Parameters:
      pSpectral_end - value to set
      Returns:
      STCSpectral
    • createSTCSpectral

      public static STCSpectral createSTCSpectral(Consumer<STCSpectral.STCSpectralBuilder> f)
      create a STCSpectral 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>