Class Requirements

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

@Entity @VoDml(id="caom2:Requirements", role=objectType) public class Requirements extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
the observational requirements specified by the proposal. objectType: Requirements
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • flag

      @VoDml(id="caom2:Requirements.flag", role=attribute, type="caom2:Status", typeRole=dataType) protected Status flag
      flag indicating degree to which requirements were satisfied by the observation. : Attribute flag : multiplicity 1
  • Constructor Details

    • Requirements

      public Requirements()
      Creates a new Requirements
    • Requirements

      public Requirements(Status flag)
      full parameter constructor.
      Parameters:
      flag - flag indicating degree to which requirements were satisfied by the observation.
    • Requirements

      public Requirements(Requirements 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(Requirements 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.
    • getFlag

      public Status getFlag()
      Returns flag Attribute.
      Returns:
      flag Attribute
    • setFlag

      public void setFlag(Status pFlag)
      Set flag Attribute.
      Parameters:
      pFlag - value to set
    • withFlag

      public Requirements withFlag(Status pFlag)
      fluent setter for flag Attribute.
      Parameters:
      pFlag - value to set
      Returns:
      Requirements
    • createRequirements

      public static Requirements createRequirements(Consumer<Requirements.RequirementsBuilder> f)
      create a Requirements 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>