|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.castor.cpa.persistence.sql.engine.SQLStatementDelete
public final class SQLStatementDelete
SQLStatementDelete class that makes use of delete class hierarchy to generate SQL query structure. Execute method prepares a SQL statement, binds identity values to parameters of the query and executes it.
| Constructor Summary | |
|---|---|
SQLStatementDelete(SQLEngine engine)
Constructor. |
|
| Method Summary | |
|---|---|
void |
executeStatement(CastorConnection conn,
Identity identity)
Execute statement to remove entity with given identity from database using given JDBC connection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SQLStatementDelete(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 executeStatement(CastorConnection conn,
Identity identity)
throws PersistenceException
conn - CastorConnection holding connection and PersistenceFactory to be used to create
statement.identity - Identity of the object to remove.
PersistenceException - If failed to remove object from database. This could happen
if a database access error occurs, type of one of the values to bind is ambiguous
or object to be deleted does not exist.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||