|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.castor.cpa.persistence.sql.engine.SQLStatementUpdateCheck
public final class SQLStatementUpdateCheck
SQLStatementUpdatCheck class to check whether the new SQL update statement has failed because entity has been removed previously from persistent storage or the object has been modified before. If the object has been modified an ObjectModifiedException and if object has been deleted an ObjectDeletedException is raised.
| Constructor Summary | |
|---|---|
SQLStatementUpdateCheck(SQLEngine engine)
Constructor. |
|
| Method Summary | |
|---|---|
void |
updateFailureCheck(CastorConnection conn,
Identity identity)
This function checks whether the object specified in the statement has been previously removed from the persistent storage or has been modified. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SQLStatementUpdateCheck(SQLEngine engine)
engine - SQL engine for all persistence operations at entities of the type this
class is responsible for. Holds all required information of the entity type.| Method Detail |
|---|
public void updateFailureCheck(CastorConnection conn,
Identity identity)
throws PersistenceException
conn - CastorConnection holding connection and PersistenceFactory to be used to create
statement.identity - Identity of the object to check for availability.
PersistenceException - If a database access error occurs, identity size mismatches,
column length mismatches, ObjectDeletedException if object had been deleted or
ObjectModifiedException if object had been modified before.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||