org.hibernate.usertype
Interface UserVersionType

All Superinterfaces:
Comparator, UserType

public interface UserVersionType
extends UserType, Comparator

A user type that may be used for a version property

Author:
Gavin King

Method Summary
 Object next(Object current)
          Increment the version.
 Object seed()
          Generate an initial version.
 
Methods inherited from interface org.hibernate.usertype.UserType
assemble, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, returnedClass, sqlTypes
 
Methods inherited from interface java.util.Comparator
compare, equals
 

Method Detail

seed

public Object seed()
Generate an initial version.

Returns:
an instance of the type

next

public Object next(Object current)
Increment the version.

Parameters:
current - the current version
Returns:
an instance of the type