Package org.ivoa.dm.caom2
Class Provenance
java.lang.Object
org.ivoa.dm.caom2.Provenance
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="caom2:Provenance",
role=objectType)
public class Provenance
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
description of how this data was produced.
objectType: Provenance
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for Provenance, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keylocal identifier for input planes; these are the actual inputs that went into the product.additional keywords that describe the processing; this may include both general descriptive words and those specific to this particular execution of the processing; keywords cannot contain the pipe (|) character - it is reserved for use in persistence systems (e.g.protected Stringtimestamp describing when this process last ran and produced data.protected Stringcollection-specific common name of the process.protected Stringcommon name of the entity (person, institute, etc) responsible for producing the data.protected Stringname of the project that produced the data; data produced in a uniform way are typically labelled with the same project name.protected Stringidentifier for external resource with proposal details.protected Stringcollection-specific identifier for the processing instance that produced the data; this identifier can typcially be traced in log files or logging systems.protected Stringversion of the software or process that produced the data. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new ProvenanceProvenance(String name, String reference, String version, String project, String producer, String runID, String lastExecuted, List<String> keywords, List<String> inputs) full parameter constructor.Provenance(Provenance other) Copy Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic Provenancecreate a Provenance in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidgetId()Returns inputs Attribute.Returns keywords Attribute.Returns lastExecuted Attribute.getName()Returns name Attribute.Returns producer Attribute.Returns project Attribute.Returns reference Attribute.getRunID()Returns runID Attribute.Returns version Attribute.voidSet inputs Attribute.voidsetKeywords(List<String> pKeywords) Set keywords Attribute.voidsetLastExecuted(String pLastExecuted) Set lastExecuted Attribute.voidSet name Attribute.voidsetProducer(String pProducer) Set producer Attribute.voidsetProject(String pProject) Set project Attribute.voidsetReference(String pReference) Set reference Attribute.voidSet runID Attribute.voidsetVersion(String pVersion) Set version Attribute.voidupdateUsing(Provenance other) Update this object with the content of the given object.withInputs(List<String> pInputs) fluent setter for inputs Attribute.withKeywords(List<String> pKeywords) fluent setter for keywords Attribute.withLastExecuted(String pLastExecuted) fluent setter for lastExecuted Attribute.fluent setter for name Attribute.withProducer(String pProducer) fluent setter for producer Attribute.withProject(String pProject) fluent setter for project Attribute.withReference(String pReference) fluent setter for reference Attribute.fluent setter for runID Attribute.withVersion(String pVersion) fluent setter for version Attribute.
-
Field Details
-
_id
inserted database key -
name
@VoDml(id="caom2:Provenance.name", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String namecollection-specific common name of the process. : Attribute name : multiplicity 1 -
reference
@VoDml(id="caom2:Provenance.reference", role=attribute, type="ivoa:anyURI", typeRole=primitiveType) protected String referenceidentifier for external resource with proposal details. : Attribute reference : multiplicity 0..1 -
version
@VoDml(id="caom2:Provenance.version", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String versionversion of the software or process that produced the data. : Attribute version : multiplicity 0..1 -
project
@VoDml(id="caom2:Provenance.project", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String projectname of the project that produced the data; data produced in a uniform way are typically labelled with the same project name. : Attribute project : multiplicity 0..1 -
producer
@VoDml(id="caom2:Provenance.producer", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String producercommon name of the entity (person, institute, etc) responsible for producing the data. : Attribute producer : multiplicity 0..1 -
runID
@VoDml(id="caom2:Provenance.runID", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String runIDcollection-specific identifier for the processing instance that produced the data; this identifier can typcially be traced in log files or logging systems. : Attribute runID : multiplicity 0..1 -
lastExecuted
@VoDml(id="caom2:Provenance.lastExecuted", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String lastExecutedtimestamp describing when this process last ran and produced data. : Attribute lastExecuted : multiplicity 0..1 -
keywords
@VoDml(id="caom2:Provenance.keywords", role=attribute, type="ivoa:string", typeRole=primitiveType) protected List<String> keywordsadditional keywords that describe the processing; this may include both general descriptive words and those specific to this particular execution of the processing; 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..* -
inputs
@VoDml(id="caom2:Provenance.inputs", role=attribute, type="ivoa:anyURI", typeRole=primitiveType) protected List<String> inputslocal identifier for input planes; these are the actual inputs that went into the product. : Attribute inputs : multiplicity 0..*
-
-
Constructor Details
-
Provenance
public Provenance()Creates a new Provenance -
Provenance
public Provenance(String name, String reference, String version, String project, String producer, String runID, String lastExecuted, List<String> keywords, List<String> inputs) full parameter constructor.- Parameters:
name- collection-specific common name of the process.reference- identifier for external resource with proposal details.version- version of the software or process that produced the data.project- name of the project that produced the data; data produced in a uniform way are typically labelled with the same project name.producer- common name of the entity (person, institute, etc) responsible for producing the data.runID- collection-specific identifier for the processing instance that produced the data; this identifier can typcially be traced in log files or logging systems.lastExecuted- timestamp describing when this process last ran and produced data.keywords- additional keywords that describe the processing; this may include both general descriptive words and those specific to this particular execution of the processing; 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).inputs- local identifier for input planes; these are the actual inputs that went into the product.
-
Provenance
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.
-
getName
Returns name Attribute.- Returns:
- name Attribute
-
setName
Set name Attribute.- Parameters:
pName- value to set
-
withName
fluent setter for name Attribute.- Parameters:
pName- value to set- Returns:
- Provenance
-
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:
- Provenance
-
getVersion
Returns version Attribute.- Returns:
- version Attribute
-
setVersion
Set version Attribute.- Parameters:
pVersion- value to set
-
withVersion
fluent setter for version Attribute.- Parameters:
pVersion- value to set- Returns:
- Provenance
-
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:
- Provenance
-
getProducer
Returns producer Attribute.- Returns:
- producer Attribute
-
setProducer
Set producer Attribute.- Parameters:
pProducer- value to set
-
withProducer
fluent setter for producer Attribute.- Parameters:
pProducer- value to set- Returns:
- Provenance
-
getRunID
Returns runID Attribute.- Returns:
- runID Attribute
-
setRunID
Set runID Attribute.- Parameters:
pRunID- value to set
-
withRunID
fluent setter for runID Attribute.- Parameters:
pRunID- value to set- Returns:
- Provenance
-
getLastExecuted
Returns lastExecuted Attribute.- Returns:
- lastExecuted Attribute
-
setLastExecuted
Set lastExecuted Attribute.- Parameters:
pLastExecuted- value to set
-
withLastExecuted
fluent setter for lastExecuted Attribute.- Parameters:
pLastExecuted- value to set- Returns:
- Provenance
-
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:
- Provenance
-
getInputs
Returns inputs Attribute.- Returns:
- inputs Attribute
-
setInputs
Set inputs Attribute.- Parameters:
pInputs- value to set
-
withInputs
fluent setter for inputs Attribute.- Parameters:
pInputs- value to set- Returns:
- Provenance
-
createProvenance
create a Provenance 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>
-