Class VersionedParameter

java.lang.Object
net.sf.basedb.core.data.VersionedParameter
All Implemented Interfaces:
Serializable

public class VersionedParameter
extends Object
implements Serializable
The key to a plugin configuration parameter. The parameters are versioned because we need to remember exactly which parameters that was passed to a job.
Version:
2.0
Author:
nicklas
See Also:
Developer documentation: Plug-ins, jobs and job agents, Serialized Form
Last modified
$Date: 2012-09-14 09:28:35 +0200 (fr, 14 sep 2012) $
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
      Constant Field Values
    • name

      private String name
      The name of the parameter.
    • version

      private int version
      The version of the parameter.
  • Constructor Details

    • VersionedParameter

      VersionedParameter()
      Used by Hibernate to create an instance.
    • VersionedParameter

      public VersionedParameter​(String name, int version)
      Create a new instance.
  • Method Details

    • getName

      public String getName()
      Get the parameter name.
      Hibernate: property
      column="`name`" not-null="true" type="string" length="255"
    • setName

      void setName​(String name)
    • getVersion

      public int getVersion()
      Get the parameter version.
      Hibernate: property
      column="`parameter_version`" type="int" not-null="true"
    • setVersion

      void setVersion​(int version)
    • equals

      public boolean equals​(Object o)
      Check if this object is equal to another VersionedParameter object. They are considered to be the same if the have the same name and version.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Calculate the hash code for the object.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Convert the value to a string.
      Overrides:
      toString in class Object