Package org.ivoa.dm.proposal.management
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for AllocationGrade, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new AllocationGradeAllocationGrade(String name, String description) full parameter constructor.AllocationGrade(AllocationGrade other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic AllocationGradecreate a AllocationGrade in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns description Attribute.getId()getName()Returns name Attribute.getXmlId()getter for XMLIDbooleanvoidsetDescription(String pDescription) Set description Attribute.voidSet name Attribute.voidvoidupdateUsing(AllocationGrade other) Update this object with the content of the given object.withDescription(String pDescription) fluent setter for description Attribute.fluent setter for name Attribute.
-
Field Details
-
_id
inserted database key -
name
@VoDml(id="proposalManagement:AllocationGrade.name", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String namethe name of the grade. : Attribute name : multiplicity 1 -
description
@VoDml(id="proposalManagement:AllocationGrade.description", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String descriptionwhat this grade means. : Attribute description : multiplicity 1
-
-
Constructor Details
-
AllocationGrade
public AllocationGrade()Creates a new AllocationGrade -
AllocationGrade
full parameter constructor.- Parameters:
name- the name of the grade.description- what this grade means.
-
AllocationGrade
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>- Returns:
- the id
-
getXmlId
getter for XMLID- Specified by:
getXmlIdin interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
setXmlId
- Specified by:
setXmlIdin interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
hasNaturalKey
public boolean hasNaturalKey()- Specified by:
hasNaturalKeyin interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
updateUsing
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
Returns name Attribute.- Returns:
- name Attribute
-
setName
Set name Attribute.- Parameters:
pName- value to set
-
withName
fluent setter for name Attribute.- Parameters:
pName- value to set- Returns:
- AllocationGrade
-
getDescription
Returns description Attribute.- Returns:
- description Attribute
-
setDescription
Set description Attribute.- Parameters:
pDescription- value to set
-
withDescription
fluent setter for description Attribute.- Parameters:
pDescription- value to set- Returns:
- AllocationGrade
-
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:
forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-