public interface VersionType<T> extends Type
Modifier and Type | Method and Description |
---|---|
Comparator<T> |
getComparator()
Get a comparator for version values.
|
T |
next(T current,
SessionImplementor session)
Increment the version.
|
T |
seed(SessionImplementor session)
Generate an initial version.
|
assemble, beforeAssemble, compare, deepCopy, defaultSizes, dictatedSizes, 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
T seed(SessionImplementor session)
session
- The session from which this request originates.T next(T current, SessionImplementor session)
session
- The session from which this request originates.current
- the current versionComparator<T> getComparator()
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.