Class ScienceSpectralWindow

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

@Entity @VoDml(id="proposal:ScienceSpectralWindow", role=objectType) public class ScienceSpectralWindow extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A spectral window for science use. objectType: ScienceSpectralWindow
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • spectralWindowSetup

      @VoDml(id="proposal:ScienceSpectralWindow.spectralWindowSetup", role=attribute, type="proposal:SpectralWindowSetup", typeRole=dataType) protected SpectralWindowSetup spectralWindowSetup
      . : Attribute spectralWindowSetup : multiplicity 0..1
    • expectedSpectralLine

      @VoDml(id="proposal:ScienceSpectralWindow.expectedSpectralLine", role=composition, type="proposal:ExpectedSpectralLine", typeRole=objectType) protected List<ExpectedSpectralLine> expectedSpectralLine
      . composition expectedSpectralLine : ( Multiplicity : 0..* )
  • Constructor Details

    • ScienceSpectralWindow

      public ScienceSpectralWindow()
      Creates a new ScienceSpectralWindow
    • ScienceSpectralWindow

      public ScienceSpectralWindow(SpectralWindowSetup spectralWindowSetup, List<ExpectedSpectralLine> expectedSpectralLine)
      full parameter constructor.
      Parameters:
      spectralWindowSetup - .
      expectedSpectralLine - .
    • ScienceSpectralWindow

      public ScienceSpectralWindow(ScienceSpectralWindow 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(ScienceSpectralWindow 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.
    • getSpectralWindowSetup

      public SpectralWindowSetup getSpectralWindowSetup()
      Returns spectralWindowSetup Attribute.
      Returns:
      spectralWindowSetup Attribute
    • setSpectralWindowSetup

      public void setSpectralWindowSetup(SpectralWindowSetup pSpectralWindowSetup)
      Set spectralWindowSetup Attribute.
      Parameters:
      pSpectralWindowSetup - value to set
    • withSpectralWindowSetup

      public ScienceSpectralWindow withSpectralWindowSetup(SpectralWindowSetup pSpectralWindowSetup)
      fluent setter for spectralWindowSetup Attribute.
      Parameters:
      pSpectralWindowSetup - value to set
      Returns:
      ScienceSpectralWindow
    • getExpectedSpectralLine

      public List<ExpectedSpectralLine> getExpectedSpectralLine()
      Returns expectedSpectralLine composition as an immutable list.
      Returns:
      expectedSpectralLine composition.
    • setExpectedSpectralLine

      public void setExpectedSpectralLine(List<ExpectedSpectralLine> pExpectedSpectralLine)
      Defines whole expectedSpectralLine composition.
      Parameters:
      pExpectedSpectralLine - composition to set.
    • addToExpectedSpectralLine

      public void addToExpectedSpectralLine(ExpectedSpectralLine p)
      Add a org.ivoa.dm.proposal.prop.ExpectedSpectralLine to the composition.
      Parameters:
      p - org.ivoa.dm.proposal.prop.ExpectedSpectralLine to add
    • removeFromExpectedSpectralLine

      public void removeFromExpectedSpectralLine(ExpectedSpectralLine p)
      Remove a org.ivoa.dm.proposal.prop.ExpectedSpectralLine from the composition.
      Parameters:
      p - org.ivoa.dm.proposal.prop.ExpectedSpectralLine to remove
    • replaceInExpectedSpectralLine

      public void replaceInExpectedSpectralLine(ExpectedSpectralLine _p)
      update a org.ivoa.dm.proposal.prop.ExpectedSpectralLine in the composition.
      Parameters:
      _p - org.ivoa.dm.proposal.prop.ExpectedSpectralLine to update the match is done via the database key
    • createScienceSpectralWindow

      create a ScienceSpectralWindow 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