当前页面:
在线文档首页 >
Hibernate 3.2.3 正式版 API 英文文档
UserVersionType (Hibernate API Documentation) - Hibernate 3.2.3 正式版 API 英文文档
org.hibernate.usertype
Interface UserVersionType
- All Superinterfaces:
- Comparator, UserType
- public interface UserVersionType
- extends UserType, Comparator
A user type that may be used for a version property
- Author:
- Gavin King
Methods inherited from interface org.hibernate.usertype.UserType |
assemble, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, returnedClass, sqlTypes |
seed
public Object seed(SessionImplementor session)
- Generate an initial version.
- Parameters:
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.
- Returns:
- an instance of the type
next
public Object next(Object current,
SessionImplementor session)
- Increment the version.
- Parameters:
session
- The session from which this request originates.current
- the current version
- Returns:
- an instance of the type