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
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • members

      @VoDml(id="proposalManagement:TAC.members", role=composition, type="proposalManagement:CommitteeMember", typeRole=objectType) protected List<CommitteeMember> members
      members of the committee. composition members : ( Multiplicity : 1..* )
  • Constructor Details

    • TAC

      public TAC()
      Creates a new TAC
    • TAC

      public TAC(List<CommitteeMember> members)
      full parameter constructor.
      Parameters:
      members - members of the committee.
    • TAC

      public TAC(TAC other)
      Copy Constructor. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
  • Method Details

    • getId

      public Long getId()
      Specified by:
      getId in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
      Returns:
      the id
    • updateUsing

      public void updateUsing(TAC other)
      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

      public List<CommitteeMember> getMembers()
      Returns members composition as an immutable list.
      Returns:
      members composition.
    • setMembers

      public void setMembers(List<CommitteeMember> pMembers)
      Defines whole members composition.
      Parameters:
      pMembers - composition to set.
    • addToMembers

      public void addToMembers(CommitteeMember p)
      Add a org.ivoa.dm.proposal.management.CommitteeMember to the composition.
      Parameters:
      p - org.ivoa.dm.proposal.management.CommitteeMember to add
    • removeFromMembers

      public void removeFromMembers(CommitteeMember p)
      Remove a org.ivoa.dm.proposal.management.CommitteeMember from the composition.
      Parameters:
      p - org.ivoa.dm.proposal.management.CommitteeMember to remove
    • replaceInMembers

      public void replaceInMembers(CommitteeMember _p)
      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

      public static TAC createTAC(Consumer<TAC.TACBuilder> f)
      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 interface org.ivoa.vodml.jpa.JPAManipulations
    • persistRefs

      @Deprecated public 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.
      Specified by:
      persistRefs in interface org.ivoa.vodml.jpa.JPAManipulations