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 AttributegetId()
Returns reviewDate AttributeReturns reviewer ReferencegetScore()
Returns score AttributeReturns technicalFeasibility Attributevoid
jpaClone
(jakarta.persistence.EntityManager em) void
persistRefs
(jakarta.persistence.EntityManager _em) void
setComment
(String pComment) Defines comment Attributevoid
setReviewDate
(Date pReviewDate) Defines reviewDate Attributevoid
setReviewer
(Reviewer pReviewer) Defines reviewer Referencevoid
Defines score Attributevoid
setTechnicalFeasibility
(Boolean pTechnicalFeasibility) Defines technicalFeasibility Attributevoid
updateUsing
(ProposalReview other) Update this object with the content of the given object.withComment
(String pComment) withReviewDate
(Date pReviewDate) withTechnicalFeasibility
(Boolean pTechnicalFeasibility)
-
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
Defines comment Attribute- Parameters:
pComment
- value to set
-
withComment
-
getScore
Returns score Attribute- Returns:
- score Attribute
-
setScore
Defines score Attribute- Parameters:
pScore
- value to set
-
withScore
-
getTechnicalFeasibility
Returns technicalFeasibility Attribute- Returns:
- technicalFeasibility Attribute
-
setTechnicalFeasibility
Defines technicalFeasibility Attribute- Parameters:
pTechnicalFeasibility
- value to set
-
withTechnicalFeasibility
-
getReviewDate
Returns reviewDate Attribute- Returns:
- reviewDate Attribute
-
setReviewDate
Defines reviewDate Attribute- Parameters:
pReviewDate
- value to set
-
withReviewDate
-
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
-
jpaClone
public void jpaClone(jakarta.persistence.EntityManager em) - Specified by:
jpaClone
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
-
persistRefs
public void persistRefs(jakarta.persistence.EntityManager _em) - Specified by:
persistRefs
in interfaceorg.ivoa.vodml.jpa.JPAManipulations
-