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() |
getUnlabeledMessage
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected 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 CayenneRuntimeException
public ObjectId getFailedObjectId()
Copyright © 2001–2018 Apache Cayenne. All rights reserved.