D - DataSource or Driverpublic interface TransactionContext<D>
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this transaction context.
|
<T,R> InvocationStrategy<D,T,R> |
end(InvocationStrategy<D,T,R> strategy)
Decorates the specified invocation strategy with end transaction logic.
|
<T,R> InvocationStrategy<D,T,R> |
start(InvocationStrategy<D,T,R> strategy,
java.sql.Connection connection)
Decorates the specified invocation strategy with start transaction logic.
|
<T,R> InvocationStrategy<D,T,R> start(InvocationStrategy<D,T,R> strategy, java.sql.Connection connection) throws java.sql.SQLException
T - Target object type of the invocationR - Return type of this invocationstrategy - connection - java.sql.SQLException<T,R> InvocationStrategy<D,T,R> end(InvocationStrategy<D,T,R> strategy) throws java.sql.SQLException
T - Target object type of the invocationR - Return type of this invocationstrategy - java.sql.SQLExceptionvoid close()