Package org.ivoa.dm.proposal.management
Class TAC
java.lang.Object
org.ivoa.dm.proposal.management.TAC
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations
,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="proposalManagement:TAC",
role=objectType)
public class TAC
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
time allocation committee.
objectType: TAC
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder class for TAC, mainly for use in the functional builder pattern. -
Field Summary
Modifier and TypeFieldDescriptionprotected Long
inserted database keyprotected List<CommitteeMember>
members of the committee. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a org.ivoa.dm.proposal.management.CommitteeMember to the composition.static TAC
create a TAC in functional builder style.void
getId()
Returns members composition as an immutable list.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
Remove a org.ivoa.dm.proposal.management.CommitteeMember from the composition.void
update a org.ivoa.dm.proposal.management.CommitteeMember in the composition.void
setMembers
(List<CommitteeMember> pMembers) Defines whole members composition.void
updateUsing
(TAC other) Update this object with the content of the given object.
-
Field Details
-
_id
inserted database key -
members
@VoDml(id="proposalManagement:TAC.members", role=composition, type="proposalManagement:CommitteeMember", typeRole=objectType) protected List<CommitteeMember> membersmembers of the committee. composition members : ( Multiplicity : 1..* )
-
-
Constructor Details
-
TAC
public TAC()Creates a new TAC -
TAC
full parameter constructor.- Parameters:
members
- members of the committee.
-
TAC
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.
-
getMembers
Returns members composition as an immutable list.- Returns:
- members composition.
-
setMembers
Defines whole members composition.- Parameters:
pMembers
- composition to set.
-
addToMembers
Add a org.ivoa.dm.proposal.management.CommitteeMember to the composition.- Parameters:
p
- org.ivoa.dm.proposal.management.CommitteeMember to add
-
removeFromMembers
Remove a org.ivoa.dm.proposal.management.CommitteeMember from the composition.- Parameters:
p
- org.ivoa.dm.proposal.management.CommitteeMember to remove
-
replaceInMembers
update a org.ivoa.dm.proposal.management.CommitteeMember in the composition.- Parameters:
_p
- org.ivoa.dm.proposal.management.CommitteeMember to update the match is done via the database key
-
createTAC
create a TAC 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
-