Package org.ivoa.dm.caom2
Class Proposal
java.lang.Object
org.ivoa.dm.caom2.Proposal
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<String>
@Entity
@VoDml(id="caom2:Proposal",
role=objectType)
public class Proposal
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<String>
description of the science proposal or programme that initiated the observation.
objectType: Proposal
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Proposal, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringcollection-specific identifier for the proposal.additional keywords that describe the science goals of the proposal; keywords cannot contain the pipe (|) character - it is reserved for use in persistence systems (e.g.protected Stringproper name of the principal investigator.protected Stringcommon name of the project this proposal belongs to; typically used for larger or long-running projects that include mutliple proposals.protected Stringidentifier for external resource with proposal details.protected Stringtitle of the proposal. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Proposalcreate a Proposal in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidgetId()Returns id Attribute.Returns keywords Attribute.getPi()Returns pi Attribute.Returns project Attribute.Returns reference Attribute.getTitle()Returns title Attribute.voidSet id Attribute.voidsetKeywords(List<String> pKeywords) Set keywords Attribute.voidSet pi Attribute.voidsetProject(String pProject) Set project Attribute.voidsetReference(String pReference) Set reference Attribute.voidSet title Attribute.voidupdateUsing(Proposal other) Update this object with the content of the given object.fluent setter for id Attribute.withKeywords(List<String> pKeywords) fluent setter for keywords Attribute.fluent setter for pi Attribute.withProject(String pProject) fluent setter for project Attribute.withReference(String pReference) fluent setter for reference Attribute.fluent setter for title Attribute.
-
Field Details
-
id
@VoDml(id="caom2:Proposal.id", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String idcollection-specific identifier for the proposal. : Attribute id : multiplicity 1 -
pi
@VoDml(id="caom2:Proposal.pi", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String piproper name of the principal investigator. : Attribute pi : multiplicity 0..1 -
project
@VoDml(id="caom2:Proposal.project", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String projectcommon name of the project this proposal belongs to; typically used for larger or long-running projects that include mutliple proposals. : Attribute project : multiplicity 0..1 -
title
@VoDml(id="caom2:Proposal.title", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String titletitle of the proposal. : Attribute title : multiplicity 0..1 -
keywords
@VoDml(id="caom2:Proposal.keywords", role=attribute, type="ivoa:string", typeRole=primitiveType) protected List<String> keywordsadditional keywords that describe the science goals of the proposal; keywords cannot contain the pipe (|) character - it is reserved for use in persistence systems (e.g. to store all keywords in a single column in a table). : Attribute keywords : multiplicity 0..* -
reference
@VoDml(id="caom2:Proposal.reference", role=attribute, type="ivoa:anyURI", typeRole=primitiveType) protected String referenceidentifier for external resource with proposal details. : Attribute reference : multiplicity 0..1
-
-
Constructor Details
-
Proposal
public Proposal()Creates a new Proposal -
Proposal
public Proposal(String id, String pi, String project, String title, List<String> keywords, String reference) full parameter constructor.- Parameters:
id- collection-specific identifier for the proposal.pi- proper name of the principal investigator.project- common name of the project this proposal belongs to; typically used for larger or long-running projects that include mutliple proposals.title- title of the proposal.keywords- additional keywords that describe the science goals of the proposal; keywords cannot contain the pipe (|) character - it is reserved for use in persistence systems (e.g. to store all keywords in a single column in a table).reference- identifier for external resource with proposal details.
-
Proposal
Copy Constructor. Note that references will remain as is rather than be copied.- Parameters:
other- the object to be copied.
-
-
Method Details
-
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.
-
getId
Returns id Attribute.- Specified by:
getIdin interfaceorg.ivoa.vodml.jpa.JPAManipulationsForObjectType<String>- Returns:
- id Attribute
-
setId
Set id Attribute.- Parameters:
pId- value to set
-
withId
fluent setter for id Attribute.- Parameters:
pId- value to set- Returns:
- Proposal
-
getPi
Returns pi Attribute.- Returns:
- pi Attribute
-
setPi
Set pi Attribute.- Parameters:
pPi- value to set
-
withPi
fluent setter for pi Attribute.- Parameters:
pPi- value to set- Returns:
- Proposal
-
getProject
Returns project Attribute.- Returns:
- project Attribute
-
setProject
Set project Attribute.- Parameters:
pProject- value to set
-
withProject
fluent setter for project Attribute.- Parameters:
pProject- value to set- Returns:
- Proposal
-
getTitle
Returns title Attribute.- Returns:
- title Attribute
-
setTitle
Set title Attribute.- Parameters:
pTitle- value to set
-
withTitle
fluent setter for title Attribute.- Parameters:
pTitle- value to set- Returns:
- Proposal
-
getKeywords
Returns keywords Attribute.- Returns:
- keywords Attribute
-
setKeywords
Set keywords Attribute.- Parameters:
pKeywords- value to set
-
withKeywords
fluent setter for keywords Attribute.- Parameters:
pKeywords- value to set- Returns:
- Proposal
-
getReference
Returns reference Attribute.- Returns:
- reference Attribute
-
setReference
Set reference Attribute.- Parameters:
pReference- value to set
-
withReference
fluent setter for reference Attribute.- Parameters:
pReference- value to set- Returns:
- Proposal
-
createProposal
create a Proposal 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<String>
-