public final class SQLStatementLoad extends Object
Constructor and Description |
---|
SQLStatementLoad(SQLEngine engine,
PersistenceFactory factory)
Constructor creating new SQLStatementLoad.
|
Modifier and Type | Method and Description |
---|---|
void |
executeStatement(CastorConnection conn,
Identity identity,
ProposedEntity entity,
AccessMode accessMode)
Execute statement to load entity with given identity from database using given JDBC
connection.
|
public SQLStatementLoad(SQLEngine engine, PersistenceFactory factory) throws MappingException
engine
- SQLEngine to be used.factory
- PersistenceFactory to be used.MappingException
- If we get into trouble.public void executeStatement(CastorConnection conn, Identity identity, ProposedEntity entity, AccessMode accessMode) throws PersistenceException
conn
- CastorConnection holding connection and PersistenceFactory to be used to create
statement.identity
- Identity of the object to remove.entity
- The proposed entity to be filled with results.accessMode
- Used to determine if query level locking should be used or not.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.Copyright © 2013. All rights reserved.