Package org.ivoa.dm.proposal.management
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for ProposalReview, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected StringDescription.protected Datethe date that the review is submitted.protected ReviewerReferenceObject reviewer : the reviewer making this review.protected Doublethe review score.protected Booleanis the proposal technically feasible. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new ProposalReviewProposalReview(ProposalReview other) Copy Constructor.ProposalReview(Reviewer reviewer, String comment, Double score, Boolean technicalFeasibility, Date reviewDate) full parameter constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic ProposalReviewcreate a ProposalReview in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns comment Attribute.getId()Returns reviewDate Attribute.Returns reviewer ReferencegetScore()Returns score Attribute.Returns technicalFeasibility Attribute.voidsetComment(String pComment) Set comment Attribute.voidsetReviewDate(Date pReviewDate) Set reviewDate Attribute.voidsetReviewer(Reviewer pReviewer) Defines reviewer ReferencevoidSet score Attribute.voidsetTechnicalFeasibility(Boolean pTechnicalFeasibility) Set technicalFeasibility Attribute.voidupdateUsing(ProposalReview other) Update this object with the content of the given object.withComment(String pComment) fluent setter for comment Attribute.withReviewDate(Date pReviewDate) fluent setter for reviewDate Attribute.fluent setter for score Attribute.withTechnicalFeasibility(Boolean pTechnicalFeasibility) fluent setter for technicalFeasibility Attribute.
-
Field Details
-
_id
inserted database key -
reviewer
@VoDml(id="proposalManagement:ProposalReview.reviewer", role=reference, type="proposalManagement:Reviewer", typeRole=objectType) protected Reviewer reviewerReferenceObject reviewer : the reviewer making this review. ( Multiplicity : 1 ) -
comment
@VoDml(id="proposalManagement:ProposalReview.comment", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String commentDescription. : Attribute comment : multiplicity 1 -
score
@VoDml(id="proposalManagement:ProposalReview.score", role=attribute, type="ivoa:real", typeRole=primitiveType) protected Double scorethe review score. : Attribute score : multiplicity 1 -
technicalFeasibility
@VoDml(id="proposalManagement:ProposalReview.technicalFeasibility", role=attribute, type="ivoa:boolean", typeRole=primitiveType) protected Boolean technicalFeasibilityis the proposal technically feasible. : Attribute technicalFeasibility : multiplicity 1 -
reviewDate
@VoDml(id="proposalManagement:ProposalReview.reviewDate", role=attribute, type="ivoa:datetime", typeRole=primitiveType) protected Date reviewDatethe date that the review is submitted. : Attribute reviewDate : 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
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.
-
getReviewer
Returns reviewer Reference- Returns:
- reviewer Reference
-
setReviewer
Defines reviewer Reference- Parameters:
pReviewer- reference to set
-
getComment
Returns comment Attribute.- Returns:
- comment Attribute
-
setComment
Set comment Attribute.- Parameters:
pComment- value to set
-
withComment
fluent setter for comment Attribute.- Parameters:
pComment- value to set- Returns:
- ProposalReview
-
getScore
Returns score Attribute.- Returns:
- score Attribute
-
setScore
Set score Attribute.- Parameters:
pScore- value to set
-
withScore
fluent setter for score Attribute.- Parameters:
pScore- value to set- Returns:
- ProposalReview
-
getTechnicalFeasibility
Returns technicalFeasibility Attribute.- Returns:
- technicalFeasibility Attribute
-
setTechnicalFeasibility
Set technicalFeasibility Attribute.- Parameters:
pTechnicalFeasibility- value to set
-
withTechnicalFeasibility
fluent setter for technicalFeasibility Attribute.- Parameters:
pTechnicalFeasibility- value to set- Returns:
- ProposalReview
-
getReviewDate
Returns reviewDate Attribute.- Returns:
- reviewDate Attribute
-
setReviewDate
Set reviewDate Attribute.- Parameters:
pReviewDate- value to set
-
withReviewDate
fluent setter for reviewDate Attribute.- Parameters:
pReviewDate- value to set- Returns:
- ProposalReview
-
createProposalReview
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:
forceLoadin interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
delete
public void delete(jakarta.persistence.EntityManager em) - Specified by:
deletein interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
-