public interface UserVersionType extends UserType, Comparator
Modifier and Type | Method and Description |
---|---|
Object |
next(Object current,
SharedSessionContractImplementor session)
Increment the version.
|
Object |
seed(SharedSessionContractImplementor session)
Generate an initial version.
|
assemble, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, returnedClass, sqlTypes
compare, comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
Object seed(SharedSessionContractImplementor session)
session
- The session from which this request originates. May be
null; currently this only happens during startup when trying to determine
the "unsaved value" of entities.Object next(Object current, SharedSessionContractImplementor session)
session
- The session from which this request originates.current
- the current versionCopyright © 2021 JBoss by Red Hat. All rights reserved.