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 AttributegetId()
getName()
Returns name AttributegetXmlId()
getter for XMLIDboolean
void
jpaClone
(jakarta.persistence.EntityManager em) void
persistRefs
(jakarta.persistence.EntityManager _em) void
setDescription
(String pDescription) Defines description Attributevoid
Defines name Attributevoid
void
updateUsing
(AllocationGrade other) Update this object with the content of the given object.withDescription
(String pDescription)
-
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
Defines name Attribute- Parameters:
pName
- value to set
-
withName
-
getDescription
Returns description Attribute- Returns:
- description Attribute
-
setDescription
Defines description Attribute- Parameters:
pDescription
- value to set
-
withDescription
-
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
-
jpaClone
public void jpaClone(jakarta.persistence.EntityManager em) - Specified by:
jpaClone
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
persistRefs
public void persistRefs(jakarta.persistence.EntityManager _em) - Specified by:
persistRefs
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
-