Class ParameterOrGroup

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

@Entity @VoDml(id="pdl:ParameterOrGroup", role=objectType) public class ParameterOrGroup extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
a 'choice' type . objectType: ParameterOrGroup
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • param

      @VoDml(id="pdl:ParameterOrGroup.param", role=reference, type="pdl:ParameterDefinition", typeRole=objectType) protected ParameterDefinition param
      ReferenceObject param : . ( Multiplicity : 0..1 )
    • group

      @VoDml(id="pdl:ParameterOrGroup.group", role=reference, type="pdl:ParameterGroup", typeRole=objectType) protected ParameterGroup group
      ReferenceObject group : . ( Multiplicity : 0..1 )
  • Constructor Details

    • ParameterOrGroup

      public ParameterOrGroup()
      Creates a new ParameterOrGroup
    • ParameterOrGroup

      public ParameterOrGroup(ParameterDefinition param, ParameterGroup group)
      full parameter constructor.
      Parameters:
      param - .
      group - .
    • ParameterOrGroup

      public ParameterOrGroup(ParameterOrGroup 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
    • updateClonedReferences

      public void updateClonedReferences()
      updates any cloned references that are contained within the hierarchy.
    • updateUsing

      public void updateUsing(ParameterOrGroup 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.
    • getParam

      public ParameterDefinition getParam()
      Returns param Reference
      Returns:
      param Reference
    • setParam

      public void setParam(ParameterDefinition pParam)
      Defines param Reference
      Parameters:
      pParam - reference to set
    • getGroup

      public ParameterGroup getGroup()
      Returns group Reference
      Returns:
      group Reference
    • setGroup

      public void setGroup(ParameterGroup pGroup)
      Defines group Reference
      Parameters:
      pGroup - reference to set
    • createParameterOrGroup

      public static ParameterOrGroup createParameterOrGroup(Consumer<ParameterOrGroup.ParameterOrGroupBuilder> f)
      create a ParameterOrGroup 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>