com.iplanet.jato.model.sql
Interface SQLModelExecutionContext
- All Superinterfaces:
- ModelExecutionContext
- All Known Implementing Classes:
- DatasetSQLModelExecutionContext, ModifyingQueryExecutionContext
- public interface SQLModelExecutionContext
- extends ModelExecutionContext
An extension to the basic execution context that allows passing of JDBC
Connection
and/or Statement
objects to the target
model. In general, if a connection object is provided, a statment object
need not be provided (and vice versa).
One of the main uses for SQLMOdelExecutionContexts
is in
allowing developers to execute QueryModel operations inside transactions. By
manually providing the JDBC connection or statement that a model should use
during execution, a developer can cause the model to execute within an
established transaction. Several model executions can share the same
connection or statement object, which can then be committed or rolled back
manually by the developer.
- Version:
- JATO/1.2.2 $Id: SQLModelExecutionContext.java,v 1.7 2002/03/16 03:26:34 todd Exp $
Method Summary |
java.sql.Connection |
getConnection()
Returns the JDBC connection object that should be used for execution. |
java.sql.Statement |
getStatement()
Returns the JDBC statement object that should be used for execution. |
getConnection
public java.sql.Connection getConnection()
- Returns the JDBC connection object that should be used for execution. In
general, if a connection object is provided, a statment object need not
be provided (and vice versa).
getStatement
public java.sql.Statement getStatement()
- Returns the JDBC statement object that should be used for execution. In
general, if a statement object is provided, a connection object need not
be provided (and vice versa).