Package net.sf.basedb.core.data
Class VersionedParameter
java.lang.Object
net.sf.basedb.core.data.VersionedParameter
- All Implemented Interfaces:
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:
- Last modified
- $Date: 2012-09-14 09:28:35 +0200 (fr, 14 sep 2012) $
-
Field Summary
Modifier and TypeFieldDescriptionprivate String
The name of the parameter.private static final long
private int
The version of the parameter. -
Constructor Summary
ConstructorDescriptionUsed by Hibernate to create an instance.VersionedParameter
(String name, int version) Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Check if this object is equal to anotherVersionedParameter
object.getName()
Get the parameter name.int
Get the parameter version.int
hashCode()
Calculate the hash code for the object.(package private) void
(package private) void
setVersion
(int version) toString()
Convert the value to a string.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
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.
-