2.17.2: 2011-06-17

net.sf.basedb.core.data
Class VersionedParameter

java.lang.Object
  extended by 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:
Plugins, Serialized Form
Last modified
$Date: 2008-09-11 22:11:02 +0200 (Thu, 11 Sep 2008) $

Field Summary
private  String name
          The name of the parameter.
private static long serialVersionUID
           
private  int version
          The version of the parameter.
 
Constructor Summary
VersionedParameter()
          Used by Hibernate to create an instance.
VersionedParameter(String name, int version)
          Create a new instance.
 
Method Summary
 boolean equals(Object o)
          Check if this object is equal to another VersionedParameter object.
 String getName()
          Get the parameter name.
 int getVersion()
          Get the parameter version.
 int hashCode()
          Calculate the hash code for the object.
(package private)  void setName(String name)
           
(package private)  void setVersion(int version)
           
 String toString()
          Convert the value to a string.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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 Detail

VersionedParameter

VersionedParameter()
Used by Hibernate to create an instance.


VersionedParameter

public VersionedParameter(String name,
                          int version)
Create a new instance.

Method Detail

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

2.17.2: 2011-06-17