org.apache.cayenne.access
Class OptimisticLockException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.cayenne.CayenneRuntimeException
org.apache.cayenne.access.OptimisticLockException
- All Implemented Interfaces:
- Serializable
public class OptimisticLockException
- extends CayenneRuntimeException
An exception thrown on optimistic lock failure.
- Since:
- 1.1
- Author:
- Andrus Adamchik
- See Also:
- Serialized Form
querySQL
protected String querySQL
rootEntity
protected DbEntity rootEntity
qualifierSnapshot
protected Map qualifierSnapshot
OptimisticLockException
public OptimisticLockException(DbEntity rootEntity,
String querySQL,
Map qualifierSnapshot)
getQualifierSnapshot
public Map getQualifierSnapshot()
getQuerySQL
public String getQuerySQL()
getFreshSnapshot
public Map getFreshSnapshot(QueryEngine engine)
- Retrieves fresh snapshot for the failed row. Null row indicates that it was
deleted.
getMessage
public String getMessage()
- Returns descriptive message for this exception.
- Overrides:
getMessage
in class CayenneRuntimeException
Copyright © 2001-2007 Apache Cayenne. All Rights Reserved.