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,
SharedSessionContractImplementor session)
Increment the version.
|
T |
seed(SharedSessionContractImplementor 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, resolve, semiResolve, sqlTypes, toColumnNullness, toLoggableString
T seed(SharedSessionContractImplementor session)
session
- The session from which this request originates.T next(T current, SharedSessionContractImplementor session)
session
- The session from which this request originates.current
- the current versionComparator<T> getComparator()
Copyright © 2021 JBoss by Red Hat. All rights reserved.