API Note
This enumeration is mainly for internal use, since it
is isomorphic to OptimisticLockType. In the
future, it would be nice to replace them both with a
new org.hibernate.OptimisticLockCheck enum.
| Modifier and Type | Field and Description |
|---|---|
| public static final OptimisticLockStyle | ALL
Optimistic locking via comparison of all columns. |
| public static final OptimisticLockStyle | DIRTY
Optimistic locking via comparison of dirty columns. |
| public static final OptimisticLockStyle | NONE
No optimistic locking. |
| public static final OptimisticLockStyle | VERSION
Optimistic locking via a dedicated version or timestamp column. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | getOldCode()
Deprecated
for removal since 6.2. these integer codes have not been used for a long time
|
| public static OptimisticLockStyle | Returns: The interpreted enum valueThe old int constant code oldCode)
Deprecated
for removal since 6.2. these integer codes have not been used for a long time
Given an old code (one of the int constants from Cascade),
interpret it as one of the new enums.
|
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public static OptimisticLockStyle | |
| public static OptimisticLockStyle[] |
| ALL | back to summary |
|---|---|
| public static final OptimisticLockStyle ALL Optimistic locking via comparison of all columns. | |
| DIRTY | back to summary |
|---|---|
| public static final OptimisticLockStyle DIRTY Optimistic locking via comparison of dirty columns. | |
| NONE | back to summary |
|---|---|
| public static final OptimisticLockStyle NONE No optimistic locking. | |
| VERSION | back to summary |
|---|---|
| public static final OptimisticLockStyle VERSION Optimistic locking via a dedicated version or timestamp column. | |
| OptimisticLockStyle | back to summary |
|---|---|
| private OptimisticLockStyle() | |
| getOldCode | back to summary |
|---|---|
| public int getOldCode()
Deprecated for removal since 6.2. these integer codes have not been used for a long time
| |
| interpretOldCode | back to summary |
|---|---|
| public static OptimisticLockStyle interpretOldCode(int oldCode)
Deprecated for removal since 6.2. these integer codes have not been used for a long time Given an old code (one of the int constants from Cascade), interpret it as one of the new enums.
| |
| isAll | back to summary |
|---|---|
| public boolean isAll() | |
| isAllOrDirty | back to summary |
|---|---|
| public boolean isAllOrDirty() | |
| isDirty | back to summary |
|---|---|
| public boolean isDirty() | |
| isNone | back to summary |
|---|---|
| public boolean isNone() | |
| isVersion | back to summary |
|---|---|
| public boolean isVersion() | |
| valueOf | back to summary |
|---|---|
| public static OptimisticLockStyle valueOf(String name) | |
| values | back to summary |
|---|---|
| public static OptimisticLockStyle[] values() | |