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, getColumnSpan, getHashCode, getHashCode, getName, getReturnedClass, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isDirty, isEntityType, isEqual, isEqual, isModified, isMutable, isSame, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet, replace, replace, resolve, semiResolve, 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 © 2016 JBoss by Red Hat. All rights reserved.