public class OptimisticLockException extends CayenneRuntimeException
| Modifier and Type | Field and Description | 
|---|---|
| protected ObjectId | failedObjectId | 
| protected Map | qualifierSnapshot | 
| protected String | querySQL | 
| protected DbEntity | rootEntity | 
| Constructor and Description | 
|---|
| OptimisticLockException(ObjectId id,
                       DbEntity rootEntity,
                       String querySQL,
                       Map qualifierSnapshot) | 
| Modifier and Type | Method and Description | 
|---|---|
| ObjectId | getFailedObjectId()Returns the ObjectId of the object that caused the OptimisticLockException. | 
| Map<?,?> | getFreshSnapshot(ObjectContext context)Retrieves fresh snapshot for the failed row. | 
| String | getMessage()Returns descriptive message for this exception. | 
| Map | getQualifierSnapshot() | 
| String | getQuerySQL() | 
getUnlabeledMessageaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprotected ObjectId failedObjectId
protected String querySQL
protected DbEntity rootEntity
protected Map qualifierSnapshot
public Map getQualifierSnapshot()
public String getQuerySQL()
public Map<?,?> getFreshSnapshot(ObjectContext context)
public String getMessage()
getMessage in class CayenneRuntimeExceptionpublic ObjectId getFailedObjectId()
Copyright © 2001–2023 Apache Cayenne. All rights reserved.