|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.hibernate.engine.Versioning
Utility methods for managing versions and timestamps
Field Summary | |
static int |
OPTIMISTIC_LOCK_ALL
|
static int |
OPTIMISTIC_LOCK_DIRTY
|
static int |
OPTIMISTIC_LOCK_NONE
|
static int |
OPTIMISTIC_LOCK_VERSION
|
Method Summary | |
static Object |
getVersion(Object[] fields,
ClassPersister persister)
Get the version number of the given instance state snapshot |
static Object |
increment(Object version,
VersionType versionType)
Increment the given version number |
static boolean |
seedVersion(Object[] fields,
int versionProperty,
VersionType versionType)
Seed the given instance state snapshot with an initial version number |
static void |
setVersion(Object[] fields,
Object version,
ClassPersister persister)
Set the version number of the given instance state snapshot |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int OPTIMISTIC_LOCK_NONE
public static final int OPTIMISTIC_LOCK_ALL
public static final int OPTIMISTIC_LOCK_DIRTY
public static final int OPTIMISTIC_LOCK_VERSION
Method Detail |
public static Object increment(Object version, VersionType versionType)
public static boolean seedVersion(Object[] fields, int versionProperty, VersionType versionType)
public static void setVersion(Object[] fields, Object version, ClassPersister persister)
public static Object getVersion(Object[] fields, ClassPersister persister) throws HibernateException
HibernateException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |