Package org.ivoa.dm.tool
Class EnvVar
java.lang.Object
org.ivoa.dm.tool.EnvVar
- All Implemented Interfaces:
org.ivoa.vodml.jpa.JPAManipulations,org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
@Entity
@VoDml(id="tool:EnvVar",
role=objectType)
public class EnvVar
extends Object
implements org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
Environment variable map entry.
objectType: EnvVar
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class for EnvVar, mainly for use in the functional builder pattern. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EnvVarcreate a EnvVar in functional builder style.voiddelete(jakarta.persistence.EntityManager em) voidgetId()getName()Returns name Attribute.getValue()Returns value Attribute.voidSet name Attribute.voidSet value Attribute.voidupdateUsing(EnvVar other) Update this object with the content of the given object.fluent setter for name Attribute.fluent setter for value Attribute.
-
Field Details
-
_id
inserted database key -
name
@VoDml(id="tool:EnvVar.name", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String nameEnvironment variable name. : Attribute name type ivoa:string : multiplicity 1 -
value
@VoDml(id="tool:EnvVar.value", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String valueEnvironment variable value. : Attribute value type ivoa:string : multiplicity 1
-
-
Constructor Details
-
EnvVar
public EnvVar()Creates a new EnvVar -
EnvVar
full parameter constructor.- Parameters:
name- Environment variable name.value- Environment variable value.
-
EnvVar
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:
- EnvVar
-
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:
- EnvVar
-
createEnvVar
create a EnvVar 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>
-