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

    • _id

      protected Long _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 member
      ReferenceObject member : the member. ( Multiplicity : 1 )
  • Constructor Details

    • CommitteeMember

      public CommitteeMember()
      Creates a new CommitteeMember
    • CommitteeMember

      public CommitteeMember(Reviewer member, TacRole role)
      full parameter constructor.
      Parameters:
      member - the member.
      role - .
    • CommitteeMember

      public CommitteeMember(CommitteeMember 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(CommitteeMember 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.
    • getMember

      public Reviewer getMember()
      Returns member Reference
      Returns:
      member Reference
    • setMember

      public void setMember(Reviewer pMember)
      Defines member Reference
      Parameters:
      pMember - reference to set
    • getRole

      public TacRole getRole()
      Returns role Attribute.
      Returns:
      role Attribute
    • setRole

      public void setRole(TacRole pRole)
      Set role Attribute.
      Parameters:
      pRole - value to set
    • withRole

      public CommitteeMember withRole(TacRole pRole)
      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 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