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
Modifier and TypeClassDescriptionstatic class
A builder class for AllocationGrade, mainly for use in the functional builder pattern. -
Field Summary
-
Constructor Summary
ConstructorDescriptionCreates a new AllocationGradeAllocationGrade
(String name, String description) full parameter constructor.AllocationGrade
(AllocationGrade other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic AllocationGrade
create a AllocationGrade in functional builder style.void
Returns description Attribute.getId()
getName()
Returns name Attribute.getXmlId()
getter for XMLIDboolean
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.void
setDescription
(String pDescription) Set description Attribute.void
Set name Attribute.void
void
updateUsing
(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:
getId
in interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
- Returns:
- the id
-
getXmlId
getter for XMLID- Specified by:
getXmlId
in interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
setXmlId
- Specified by:
setXmlId
in interfaceorg.ivoa.vodml.jaxb.XmlIdManagement
-
hasNaturalKey
public boolean hasNaturalKey()- Specified by:
hasNaturalKey
in 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:
forceLoad
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
persistRefs
Deprecated.generally better to use the model level reference persistence as only this can deal with "contained" references properly.- Specified by:
persistRefs
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
-