Package net.sf.basedb.core.data
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 Summary
Fields Modifier and Type Field Description private String
name
The name of the parameter.private static long
serialVersionUID
private int
version
The version of the parameter. -
Constructor Summary
Constructors Constructor Description VersionedParameter()
Used by Hibernate to create an instance.VersionedParameter(String name, int version)
Create a new instance. -
Method Summary
Modifier and Type Method Description boolean
equals(Object o)
Check if this object is equal to anotherVersionedParameter
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.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
- Constant Field Values
-
name
The name of the parameter. -
version
private int versionThe version of the parameter.
-
-
Constructor Details
-
VersionedParameter
VersionedParameter()Used by Hibernate to create an instance. -
VersionedParameter
Create a new instance.
-
-
Method Details
-
getName
Get the parameter name.- Hibernate: property
- column="`name`" not-null="true" type="string" length="255"
-
setName
-
getVersion
public int getVersion()Get the parameter version.- Hibernate: property
- column="`parameter_version`" type="int" not-null="true"
-
setVersion
void setVersion(int version) -
equals
Check if this object is equal to anotherVersionedParameter
object. They are considered to be the same if the have the same name and version. -
hashCode
public int hashCode()Calculate the hash code for the object. -
toString
Convert the value to a string.
-