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
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for TAC, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected List<CommitteeMember>members of the committee. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a org.ivoa.dm.proposal.management.CommitteeMember to the composition.static TACcreate a TAC in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidgetId()Returns members composition as an immutable list.voidRemove a org.ivoa.dm.proposal.management.CommitteeMember from the composition.voidupdate a org.ivoa.dm.proposal.management.CommitteeMember in the composition.voidsetMembers(List<CommitteeMember> pMembers) Defines whole members composition.voidupdateUsing(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:
getIdin 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:
forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-