接口 UserVersionType
-
- 所有超级接口:
Comparator,UserType
public interface UserVersionType extends UserType, Comparator
A user type that may be used for a version property- 作者:
- Gavin King
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 Objectnext(Object current, SharedSessionContractImplementor session)Increment the version.Objectseed(SharedSessionContractImplementor session)Generate an initial version.-
从接口继承的方法 java.util.Comparator
compare, equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
从接口继承的方法 org.hibernate.usertype.UserType
assemble, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, returnedClass, sqlTypes
-
-
-
-
方法详细资料
-
seed
Object seed(SharedSessionContractImplementor session)
Generate an initial version.- 参数:
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.- 返回:
- an instance of the type
-
next
Object next(Object current, SharedSessionContractImplementor session)
Increment the version.- 参数:
session- The session from which this request originates.current- the current version- 返回:
- an instance of the type
-
-