Class AllocationGrade

java.lang.Object
org.ivoa.dm.proposal.management.AllocationGrade
All Implemented Interfaces:
org.ivoa.vodml.jaxb.XmlIdManagement, org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="proposalManagement:AllocationGrade", role=objectType) public class AllocationGrade extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>, org.ivoa.vodml.jaxb.XmlIdManagement
The final grade given by the TAC. objectType: AllocationGrade
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • name

      @VoDml(id="proposalManagement:AllocationGrade.name", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String name
      the name of the grade. : Attribute name : multiplicity 1
    • description

      @VoDml(id="proposalManagement:AllocationGrade.description", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String description
      what this grade means. : Attribute description : multiplicity 1
  • Constructor Details

    • AllocationGrade

      public AllocationGrade()
      Creates a new AllocationGrade
    • AllocationGrade

      public AllocationGrade(String name, String description)
      full parameter constructor.
      Parameters:
      name - the name of the grade.
      description - what this grade means.
    • AllocationGrade

      public AllocationGrade(AllocationGrade 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
    • getXmlId

      public String getXmlId()
      getter for XMLID
      Specified by:
      getXmlId in interface org.ivoa.vodml.jaxb.XmlIdManagement
    • setXmlId

      public void setXmlId(String id)
      Specified by:
      setXmlId in interface org.ivoa.vodml.jaxb.XmlIdManagement
    • hasNaturalKey

      public boolean hasNaturalKey()
      Specified by:
      hasNaturalKey in interface org.ivoa.vodml.jaxb.XmlIdManagement
    • updateUsing

      public void updateUsing(AllocationGrade 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.
    • getName

      public String getName()
      Returns name Attribute
      Returns:
      name Attribute
    • setName

      public void setName(String pName)
      Defines name Attribute
      Parameters:
      pName - value to set
    • withName

      public AllocationGrade withName(String pName)
    • getDescription

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

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

      public AllocationGrade withDescription(String pDescription)
    • createAllocationGrade

      public static AllocationGrade createAllocationGrade(Consumer<AllocationGrade.AllocationGradeBuilder> f)
      create a AllocationGrade 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
    • jpaClone

      public void jpaClone(jakarta.persistence.EntityManager em)
      Specified by:
      jpaClone in interface org.ivoa.vodml.jpa.JPAManipulations
    • persistRefs

      public void persistRefs(jakarta.persistence.EntityManager _em)
      Specified by:
      persistRefs in interface org.ivoa.vodml.jpa.JPAManipulations