D
- public class StatementInvocationStrategy<D> extends DriverWriteInvocationStrategy<D,java.sql.Connection,java.sql.Statement>
Constructor and Description |
---|
StatementInvocationStrategy(java.sql.Connection connection,
TransactionContext<D> transactionContext) |
Modifier and Type | Method and Description |
---|---|
java.sql.Statement |
invoke(SQLProxy<D,java.sql.Connection> proxy,
Invoker<D,java.sql.Connection,java.sql.Statement> invoker)
Invoke the specified invoker against the specified proxy.
|
invokeAll
public StatementInvocationStrategy(java.sql.Connection connection, TransactionContext<D> transactionContext)
connection
- transactionContext
- public java.sql.Statement invoke(SQLProxy<D,java.sql.Connection> proxy, Invoker<D,java.sql.Connection,java.sql.Statement> invoker) throws java.lang.Exception
InvocationStrategy
invoke
in interface InvocationStrategy<D,java.sql.Connection,java.sql.Statement>
invoke
in class DriverWriteInvocationStrategy<D,java.sql.Connection,java.sql.Statement>
proxy
- a JDBC object proxyinvoker
- an invokerjava.lang.Exception
- if the invocation failsDriverWriteInvocationStrategy.invoke(net.sf.hajdbc.sql.SQLProxy, net.sf.hajdbc.sql.Invoker)