| org.hibernate.type.VersionType
All known Subclasses: org.hibernate.type.ByteType, org.hibernate.type.DbTimestampType, org.hibernate.type.CustomType, org.hibernate.type.IntegerType, org.hibernate.type.AbstractBynaryType, org.hibernate.type.TimestampType, org.hibernate.type.ShortType, org.hibernate.type.CalendarType, org.hibernate.type.LongType,
VersionType | public interface VersionType extends Type(Code) | | A Type that may be used to version data.
author: Gavin King |
getComparator | public Comparator getComparator()(Code) | | Get a comparator for version values.
The comparator to use to compare different version values. |
isEqual | public boolean isEqual(Object x, Object y)(Code) | | Are the two version values considered equal?
Parameters: x - One value to check. Parameters: y - The other value to check. true if the values are equal, false otherwise. |
next | public Object next(Object current, SessionImplementor session)(Code) | | Increment the version.
Parameters: session - The session from which this request originates. Parameters: current - the current version an instance of the type |
seed | public Object seed(SessionImplementor session)(Code) | | Generate an initial version.
Parameters: session - The session from which this request originates. an instance of the type |
|
|