public final class SQLStatementDelete
extends java.lang.Object
Constructor | Description |
---|---|
SQLStatementDelete(SQLEngine engine) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
void |
executeStatement(CastorConnection conn,
Identity identity) |
Execute statement to remove entity with given identity from database using given JDBC
connection.
|
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.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.Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com