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
  • Field Details

    • _id

      protected Long _id
      inserted database key
    • name

      @VoDml(id="tool:EnvVar.name", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String name
      Environment variable name. : Attribute name type ivoa:string : multiplicity 1
    • value

      @VoDml(id="tool:EnvVar.value", role=attribute, type="ivoa:string", typeRole=primitiveType) protected String value
      Environment variable value. : Attribute value type ivoa:string : multiplicity 1
  • Constructor Details

    • EnvVar

      public EnvVar()
      Creates a new EnvVar
    • EnvVar

      public EnvVar(String name, String value)
      full parameter constructor.
      Parameters:
      name - Environment variable name.
      value - Environment variable value.
    • EnvVar

      public EnvVar(EnvVar other)
      Copy Constructor. Note that references will remain as is rather than be copied.
      Parameters:
      other - the object to be copied.
  • Method Details

    • getId

      public Long getId()
      Specified by:
      getId in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>
      Returns:
      the id
    • updateUsing

      public void updateUsing(EnvVar other)
      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

      public String getName()
      Returns name Attribute.
      Returns:
      name Attribute
    • setName

      public void setName(String pName)
      Set name Attribute.
      Parameters:
      pName - value to set
    • withName

      public EnvVar withName(String pName)
      fluent setter for name Attribute.
      Parameters:
      pName - value to set
      Returns:
      EnvVar
    • getValue

      public String getValue()
      Returns value Attribute.
      Returns:
      value Attribute
    • setValue

      public void setValue(String pValue)
      Set value Attribute.
      Parameters:
      pValue - value to set
    • withValue

      public EnvVar withValue(String pValue)
      fluent setter for value Attribute.
      Parameters:
      pValue - value to set
      Returns:
      EnvVar
    • createEnvVar

      public static EnvVar createEnvVar(Consumer<EnvVar.EnvVarBuilder> f)
      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:
      forceLoad in interface org.ivoa.vodml.jpa.JPAManipulations
    • delete

      public void delete(jakarta.persistence.EntityManager em)
      Specified by:
      delete in interface org.ivoa.vodml.jpa.JPAManipulationsForObjectType<Long>