|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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,
EntityPersister persister)
Get the version number of the given instance state snapshot |
static Object |
increment(Object version,
VersionType versionType,
SessionImplementor session)
Increment the given version number |
static boolean |
isVersionIncrementRequired(int[] dirtyProperties,
boolean hasDirtyCollections,
boolean[] propertyVersionability)
Do we need to increment the version number, given the dirty properties? |
static boolean |
seedVersion(Object[] fields,
int versionProperty,
VersionType versionType,
SessionImplementor session)
Seed the given instance state snapshot with an initial version number |
static void |
setVersion(Object[] fields,
Object version,
EntityPersister 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, SessionImplementor session)
public static boolean seedVersion(Object[] fields, int versionProperty, VersionType versionType, SessionImplementor session)
public static void setVersion(Object[] fields, Object version, EntityPersister persister)
public static Object getVersion(Object[] fields, EntityPersister persister) throws HibernateException
HibernateException
public static boolean isVersionIncrementRequired(int[] dirtyProperties, boolean hasDirtyCollections, boolean[] propertyVersionability)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |