Package org.ivoa.dm.execution
Class ParameterValue
java.lang.Object
org.ivoa.dm.execution.ParameterValue
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="execution:ParameterValue",
role=objectType)
public class ParameterValue
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
the value of a parameter for a job execution.
objectType: ParameterValue
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for ParameterValue, mainly for use in the functional builder pattern. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Longinserted database keyprotected ParameterDefinitionReferenceObject definition : the definition of the parameter.protected Booleanwhether the value is an indirect reference to the actual value - e.g.protected Stringthe value of the parameter - this is intentionally very flexible to allow for different types of parameters - e.g. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new ParameterValueParameterValue(ParameterValue other) Copy Constructor.ParameterValue(ParameterDefinition definition, String value, Boolean isIndirect) full parameter constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic ParameterValuecreate a ParameterValue in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidReturns definition ReferencegetId()Returns isIndirect Attribute.getValue()Returns value Attribute.voidsetDefinition(ParameterDefinition pDefinition) Defines definition ReferencevoidsetIsIndirect(Boolean pIsIndirect) Set isIndirect Attribute.voidSet value Attribute.voidupdates any cloned references that are contained within the hierarchy.voidupdateUsing(ParameterValue other) Update this object with the content of the given object.withIsIndirect(Boolean pIsIndirect) fluent setter for isIndirect Attribute.fluent setter for value Attribute.
-
Field Details
-
_id
inserted database key -
definition
@VoDml(id="execution:ParameterValue.definition", role=reference, type="pdl:ParameterDefinition", typeRole=objectType) protected ParameterDefinition definitionReferenceObject definition : the definition of the parameter. ( Multiplicity : 1 ) -
value
@VoDml(id="execution:ParameterValue.value", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String valuethe value of the parameter - this is intentionally very flexible to allow for different types of parameters - e.g. atomic values, files, etc. : Attribute value type ivoa:string : multiplicity 1 -
isIndirect
@VoDml(id="execution:ParameterValue.isIndirect", role=attribute, type="ivoa:boolean", typeRole=primitiveType) protected Boolean isIndirectwhether the value is an indirect reference to the actual value - e.g. a file path or a URL. : Attribute isIndirect type ivoa:boolean : multiplicity 1
-
-
Constructor Details
-
ParameterValue
public ParameterValue()Creates a new ParameterValue -
ParameterValue
full parameter constructor.- Parameters:
definition- the definition of the parameter.value- the value of the parameter - this is intentionally very flexible to allow for different types of parameters - e.g. atomic values, files, etc.isIndirect- whether the value is an indirect reference to the actual value - e.g. a file path or a URL.
-
ParameterValue
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
-
updateClonedReferences
public void updateClonedReferences()updates any cloned references that are contained within the hierarchy. -
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.
-
getDefinition
Returns definition Reference- Returns:
- definition Reference
-
setDefinition
Defines definition Reference- Parameters:
pDefinition- reference to set
-
getValue
Returns value Attribute.- Returns:
- value Attribute
-
setValue
Set value Attribute.- Parameters:
pValue- value to set
-
withValue
fluent setter for value Attribute.- Parameters:
pValue- value to set- Returns:
- ParameterValue
-
getIsIndirect
Returns isIndirect Attribute.- Returns:
- isIndirect Attribute
-
setIsIndirect
Set isIndirect Attribute.- Parameters:
pIsIndirect- value to set
-
withIsIndirect
fluent setter for isIndirect Attribute.- Parameters:
pIsIndirect- value to set- Returns:
- ParameterValue
-
createParameterValue
create a ParameterValue 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>
-