Package org.ivoa.dm.proposal.management
Class CommitteeMember
java.lang.Object
org.ivoa.dm.proposal.management.CommitteeMember
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="proposalManagement:CommitteeMember",
role=objectType)
public class CommitteeMember
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
a member of the TAC .
objectType: CommitteeMember
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder class for CommitteeMember, mainly for use in the functional builder pattern. -
Field Summary
-
Constructor Summary
ConstructorDescriptionCreates a new CommitteeMemberCommitteeMember
(CommitteeMember other) Copy Constructor.CommitteeMember
(Reviewer member, TacRole role) full parameter constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic CommitteeMember
create a CommitteeMember in functional builder style.void
getId()
Returns member ReferencegetRole()
Returns role Attribute.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
Defines member Referencevoid
Set role Attribute.void
updateUsing
(CommitteeMember other) Update this object with the content of the given object.fluent setter for role Attribute.
-
Field Details
-
_id
inserted database key -
role
@VoDml(id="proposalManagement:CommitteeMember.role", role=attribute, type="proposalManagement:TacRole", typeRole=enumeration) protected TacRole role. : Attribute role : multiplicity 1 -
member
@VoDml(id="proposalManagement:CommitteeMember.member", role=reference, type="proposalManagement:Reviewer", typeRole=objectType) protected Reviewer memberReferenceObject member : the member. ( Multiplicity : 1 )
-
-
Constructor Details
-
CommitteeMember
public CommitteeMember()Creates a new CommitteeMember -
CommitteeMember
full parameter constructor.- Parameters:
member
- the member.role
- .
-
CommitteeMember
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
-
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.
-
getMember
Returns member Reference- Returns:
- member Reference
-
setMember
Defines member Reference- Parameters:
pMember
- reference to set
-
getRole
Returns role Attribute.- Returns:
- role Attribute
-
setRole
Set role Attribute.- Parameters:
pRole
- value to set
-
withRole
fluent setter for role Attribute.- Parameters:
pRole
- value to set- Returns:
- CommitteeMember
-
createCommitteeMember
public static CommitteeMember createCommitteeMember(Consumer<CommitteeMember.CommitteeMemberBuilder> f) create a CommitteeMember 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
-