All Packages This Package Previous Next
java.lang.Object | +----sqlj.runtime.profile.ref.ProfileWrapper | +----sqlj.runtime.profile.ref.TransactionControlProfile
public TransactionControlProfile(ConnectedProfile profile)
public TransactionControlProfile(ConnectedProfile profile, boolean handleCommit, boolean handleRollback, boolean handleSetTransaction)
public RTStatement getStatement(int ndx) throws SQLException
getStatement
method of the underlying connected profile.
If the role is COMMIT, the object returned is a statement that,
when executed, calls the commit
method on the connection
with which this connected profile was created.
If the role is ROLLBACK, the object returned is a statement that,
when executed, calls the rollback
method on the
connection with which this connected profile was created.
If the role is SET_TRANSACTION, the object returned is a statement
that, when executed, calls the setTransactionIsolation
and setReadOnly
methods on the connection with which this
connected profile was created, passing values as described in the
SetTransactionDescriptor value of the entry.
It is assumed that COMMIT, ROLLBACK, and SET_TRANSACTION are always handled with PREPARED statements via the executeUpdate method. Moreover, it is assumed that such statements never recieve any input parameters. If the entry info describes otherwise, this method will raise an exception.
All Packages This Package Previous Next