org.hibernate.type
Interface VersionType
- Serializable, Type
- AbstractBynaryType, BinaryType, ByteType, CalendarType, CustomType, DbTimestampType, IntegerType, LongType, ShortType, TimestampType, WrapperBinaryType
public interface VersionType
A Type that may be used to version data.
assemble, beforeAssemble, compare, deepCopy, disassemble, fromXMLNode, getColumnSpan, getHashCode, getHashCode, getName, getReturnedClass, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, isXMLElement, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, replace, replace, resolve, semiResolve, setToXMLNode, sqlTypes, toColumnNullness, toLoggableString |
getComparator
public Comparator getComparator()
Get a comparator for version values.
- The comparator to use to compare different version values.
isEqual
public boolean isEqual(Object x,
Object y) Are the two version values considered equal?
x - One value to check.y - The other value to check.
- true if the values are equal, false otherwise.
next
public Object next(Object current,
SessionImplementor session) Increment the version.
current - the current versionsession - The session from which this request originates.
seed
public Object seed(SessionImplementor session)
Generate an initial version.
session - The session from which this request originates.