Class ExpectedSpectralLine

java.lang.Object
org.ivoa.dm.proposal.prop.ExpectedSpectralLine
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="proposal:ExpectedSpectralLine", role=objectType) public class ExpectedSpectralLine extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Brief description of a spectral line. objectType: ExpectedSpectralLine
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • restFrequency

      @VoDml(id="proposal:ExpectedSpectralLine.restFrequency", role=attribute, type="ivoa:RealQuantity", typeRole=dataType) protected org.ivoa.dm.ivoa.RealQuantity restFrequency
      . : Attribute restFrequency : multiplicity 1
    • transition

      @VoDml(id="proposal:ExpectedSpectralLine.transition", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String transition
      . : Attribute transition : multiplicity 0..1
    • splatalogId

      @VoDml(id="proposal:ExpectedSpectralLine.splatalogId", role=attribute, type="ivoa:stringIdentifier", typeRole=primitiveType) protected org.ivoa.dm.ivoa.StringIdentifier splatalogId
      . : Attribute splatalogId : multiplicity 1
    • description

      @VoDml(id="proposal:ExpectedSpectralLine.description", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String description
      . : Attribute description : multiplicity 1
  • Constructor Details

    • ExpectedSpectralLine

      public ExpectedSpectralLine()
      Creates a new ExpectedSpectralLine
    • ExpectedSpectralLine

      public ExpectedSpectralLine(org.ivoa.dm.ivoa.RealQuantity restFrequency, String transition, org.ivoa.dm.ivoa.StringIdentifier splatalogId, String description)
      full parameter constructor.
      Parameters:
      restFrequency - .
      transition - .
      splatalogId - .
      description - .
    • ExpectedSpectralLine

      public ExpectedSpectralLine(ExpectedSpectralLine 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(ExpectedSpectralLine 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.
    • getRestFrequency

      public org.ivoa.dm.ivoa.RealQuantity getRestFrequency()
      Returns restFrequency Attribute.
      Returns:
      restFrequency Attribute
    • setRestFrequency

      public void setRestFrequency(org.ivoa.dm.ivoa.RealQuantity pRestFrequency)
      Set restFrequency Attribute.
      Parameters:
      pRestFrequency - value to set
    • withRestFrequency

      public ExpectedSpectralLine withRestFrequency(org.ivoa.dm.ivoa.RealQuantity pRestFrequency)
      fluent setter for restFrequency Attribute.
      Parameters:
      pRestFrequency - value to set
      Returns:
      ExpectedSpectralLine
    • getTransition

      public String getTransition()
      Returns transition Attribute.
      Returns:
      transition Attribute
    • setTransition

      public void setTransition(String pTransition)
      Set transition Attribute.
      Parameters:
      pTransition - value to set
    • withTransition

      public ExpectedSpectralLine withTransition(String pTransition)
      fluent setter for transition Attribute.
      Parameters:
      pTransition - value to set
      Returns:
      ExpectedSpectralLine
    • getSplatalogId

      public org.ivoa.dm.ivoa.StringIdentifier getSplatalogId()
      Returns splatalogId Attribute.
      Returns:
      splatalogId Attribute
    • setSplatalogId

      public void setSplatalogId(org.ivoa.dm.ivoa.StringIdentifier pSplatalogId)
      Set splatalogId Attribute.
      Parameters:
      pSplatalogId - value to set
    • withSplatalogId

      public ExpectedSpectralLine withSplatalogId(org.ivoa.dm.ivoa.StringIdentifier pSplatalogId)
      fluent setter for splatalogId Attribute.
      Parameters:
      pSplatalogId - value to set
      Returns:
      ExpectedSpectralLine
    • getDescription

      public String getDescription()
      Returns description Attribute.
      Returns:
      description Attribute
    • setDescription

      public void setDescription(String pDescription)
      Set description Attribute.
      Parameters:
      pDescription - value to set
    • withDescription

      public ExpectedSpectralLine withDescription(String pDescription)
      fluent setter for description Attribute.
      Parameters:
      pDescription - value to set
      Returns:
      ExpectedSpectralLine
    • createExpectedSpectralLine

      create a ExpectedSpectralLine 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
    • persistRefs

      @Deprecated public void persistRefs(jakarta.persistence.EntityManager _em)
      Deprecated.
      generally better to use the model level reference persistence as only this can deal with "contained" references properly.
      Specified by:
      persistRefs in interface org.ivoa.vodml.jpa.JPAManipulations