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
Modifier and TypeClassDescriptionstatic class
A builder class for ProposalReview, mainly for use in the functional builder pattern. -
Field Summary
Modifier and TypeFieldDescriptionprotected Long
inserted database keyprotected String
Description.protected Date
the date that the review is submitted.protected Reviewer
ReferenceObject reviewer : the reviewer making this review.protected Double
the review score.protected Boolean
is the proposal technically feasible. -
Constructor Summary
ConstructorDescriptionCreates 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 ProposalReview
create a ProposalReview in functional builder style.void
Returns comment Attribute.getId()
Returns reviewDate Attribute.Returns reviewer ReferencegetScore()
Returns score Attribute.Returns technicalFeasibility Attribute.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.void
setComment
(String pComment) Set comment Attribute.void
setReviewDate
(Date pReviewDate) Set reviewDate Attribute.void
setReviewer
(Reviewer pReviewer) Defines reviewer Referencevoid
Set score Attribute.void
setTechnicalFeasibility
(Boolean pTechnicalFeasibility) Set technicalFeasibility Attribute.void
updateUsing
(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 -
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 -
reviewer
@VoDml(id="proposalManagement:ProposalReview.reviewer", role=reference, type="proposalManagement:Reviewer", typeRole=objectType) protected Reviewer reviewerReferenceObject 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
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:
getId
in 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:
forceLoad
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
persistRefs
Deprecated.generally better to use the model level reference persistence as only this can deal with "contained" references properly.- Specified by:
persistRefs
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
-