FileDocCategorySizeDatePackage
VersionType.javaAPI DocHibernate 3.2.51160Wed Aug 03 15:03:34 BST 2005org.hibernate.type

VersionType

public interface VersionType implements Type
A Type that may be used to version data.
author
Gavin King

Fields Summary
Constructors Summary
Methods Summary
public java.util.ComparatorgetComparator()
Get a comparator for version values.

return
The comparator to use to compare different version values.

public booleanisEqual(java.lang.Object x, java.lang.Object y)
Are the two version values considered equal?

param
x One value to check.
param
y The other value to check.
return
true if the values are equal, false otherwise.

public java.lang.Objectnext(java.lang.Object current, org.hibernate.engine.SessionImplementor session)
Increment the version.

param
session The session from which this request originates.
param
current the current version
return
an instance of the type

public java.lang.Objectseed(org.hibernate.engine.SessionImplementor session)
Generate an initial version.

param
session The session from which this request originates.
return
an instance of the type