Class ProposalReview

java.lang.Object
org.ivoa.dm.proposal.management.ProposalReview
All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations, org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>

@Entity @VoDml(id="proposalManagement:ProposalReview", role=objectType) public class ProposalReview extends Object implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
A review of a proposal. objectType: ProposalReview
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • comment

      @VoDml(id="proposalManagement:ProposalReview.comment", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String comment
      Description. : Attribute comment : multiplicity 1
    • score

      @VoDml(id="proposalManagement:ProposalReview.score", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double score
      the review score. : Attribute score : multiplicity 1
    • technicalFeasibility

      @VoDml(id="proposalManagement:ProposalReview.technicalFeasibility", role=attribute, type="ivoa:boolean", typeRole=primitiveType) protected Boolean technicalFeasibility
      is the proposal technically feasible. : Attribute technicalFeasibility : multiplicity 1
    • reviewDate

      @VoDml(id="proposalManagement:ProposalReview.reviewDate", role=attribute, type="ivoa:datetime", typeRole=primitiveType) protected Date reviewDate
      the date that the review is submitted. : Attribute reviewDate : multiplicity 1
    • reviewer

      @VoDml(id="proposalManagement:ProposalReview.reviewer", role=reference, type="proposalManagement:Reviewer", typeRole=objectType) protected Reviewer reviewer
      ReferenceObject reviewer : the reviewer making this review. ( Multiplicity : 1 )
  • Constructor Details

    • ProposalReview

      public ProposalReview()
      Creates a new ProposalReview
    • ProposalReview

      public ProposalReview(Reviewer reviewer, String comment, Double score, Boolean technicalFeasibility, Date reviewDate)
      full parameter constructor.
      Parameters:
      reviewer - the reviewer making this review.
      comment - Description.
      score - the review score.
      technicalFeasibility - is the proposal technically feasible.
      reviewDate - the date that the review is submitted.
    • ProposalReview

      public ProposalReview(ProposalReview 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(ProposalReview 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.
    • getReviewer

      public Reviewer getReviewer()
      Returns reviewer Reference
      Returns:
      reviewer Reference
    • setReviewer

      public void setReviewer(Reviewer pReviewer)
      Defines reviewer Reference
      Parameters:
      pReviewer - reference to set
    • getComment

      public String getComment()
      Returns comment Attribute.
      Returns:
      comment Attribute
    • setComment

      public void setComment(String pComment)
      Set comment Attribute.
      Parameters:
      pComment - value to set
    • withComment

      public ProposalReview withComment(String pComment)
      fluent setter for comment Attribute.
      Parameters:
      pComment - value to set
      Returns:
      ProposalReview
    • getScore

      public Double getScore()
      Returns score Attribute.
      Returns:
      score Attribute
    • setScore

      public void setScore(Double pScore)
      Set score Attribute.
      Parameters:
      pScore - value to set
    • withScore

      public ProposalReview withScore(Double pScore)
      fluent setter for score Attribute.
      Parameters:
      pScore - value to set
      Returns:
      ProposalReview
    • getTechnicalFeasibility

      public Boolean getTechnicalFeasibility()
      Returns technicalFeasibility Attribute.
      Returns:
      technicalFeasibility Attribute
    • setTechnicalFeasibility

      public void setTechnicalFeasibility(Boolean pTechnicalFeasibility)
      Set technicalFeasibility Attribute.
      Parameters:
      pTechnicalFeasibility - value to set
    • withTechnicalFeasibility

      public ProposalReview withTechnicalFeasibility(Boolean pTechnicalFeasibility)
      fluent setter for technicalFeasibility Attribute.
      Parameters:
      pTechnicalFeasibility - value to set
      Returns:
      ProposalReview
    • getReviewDate

      public Date getReviewDate()
      Returns reviewDate Attribute.
      Returns:
      reviewDate Attribute
    • setReviewDate

      public void setReviewDate(Date pReviewDate)
      Set reviewDate Attribute.
      Parameters:
      pReviewDate - value to set
    • withReviewDate

      public ProposalReview withReviewDate(Date pReviewDate)
      fluent setter for reviewDate Attribute.
      Parameters:
      pReviewDate - value to set
      Returns:
      ProposalReview
    • createProposalReview

      public static ProposalReview createProposalReview(Consumer<ProposalReview.ProposalReviewBuilder> f)
      create a ProposalReview 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