public final class SQLStatementUpdate
extends java.lang.Object
Constructor | Description |
---|---|
SQLStatementUpdate(SQLEngine engine) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.Object |
executeStatement(CastorConnection conn,
Identity identity,
ProposedEntity newentity,
ProposedEntity oldentity) |
Stores the identity to the database using JDBC Connection.
|
public SQLStatementUpdate(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 java.lang.Object executeStatement(CastorConnection conn, Identity identity, ProposedEntity newentity, ProposedEntity oldentity) throws PersistenceException
conn
- CastorConnection holding connection and PersistenceFactory to be used to create
statement.identity
- Identity of the object to update.newentity
- Entity holding the new values to set with update.oldentity
- Entity holding the old values to check for concurrent modifications.null
.PersistenceException
- If failed to update object in database. This could happen
if a database access error occurs, type of one of the values to bind is ambiguous,
identity or column size mismatch or object to be updated does not exist.Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com