Z
- D
- public class LocalTransactionContext<Z,D extends Database<Z>> extends Object implements TransactionContext<Z,D>
Constructor and Description |
---|
LocalTransactionContext(DatabaseCluster<Z,D> cluster) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this transaction context.
|
InvocationStrategy |
end(InvocationStrategy strategy,
Durability.Phase phase)
Decorates the specified invocation strategy with end transaction logic.
|
<T,R> Invoker<Z,D,T,R,SQLException> |
end(Invoker<Z,D,T,R,SQLException> invoker,
Durability.Phase phase)
Decorates the specified invok with end transaction logic.
|
InvocationStrategy |
start(InvocationStrategy strategy,
Connection connection)
Decorates the specified invocation strategy with start transaction logic.
|
<T,R> Invoker<Z,D,T,R,SQLException> |
start(Invoker<Z,D,T,R,SQLException> invoker,
Connection connection)
Decorates the specified invoker with start transaction logic.
|
public LocalTransactionContext(DatabaseCluster<Z,D> cluster)
cluster
- public InvocationStrategy start(InvocationStrategy strategy, Connection connection) throws SQLException
start
in interface TransactionContext<Z,D extends Database<Z>>
SQLException
TransactionContext.start(net.sf.hajdbc.invocation.InvocationStrategy, java.sql.Connection)
public <T,R> Invoker<Z,D,T,R,SQLException> start(Invoker<Z,D,T,R,SQLException> invoker, Connection connection) throws SQLException
start
in interface TransactionContext<Z,D extends Database<Z>>
SQLException
TransactionContext.start(net.sf.hajdbc.invocation.Invoker, java.sql.Connection)
public InvocationStrategy end(InvocationStrategy strategy, Durability.Phase phase)
end
in interface TransactionContext<Z,D extends Database<Z>>
TransactionContext.end(net.sf.hajdbc.invocation.InvocationStrategy, net.sf.hajdbc.durability.Durability.Phase)
public <T,R> Invoker<Z,D,T,R,SQLException> end(Invoker<Z,D,T,R,SQLException> invoker, Durability.Phase phase)
end
in interface TransactionContext<Z,D extends Database<Z>>
TransactionContext.end(net.sf.hajdbc.invocation.Invoker, net.sf.hajdbc.durability.Durability.Phase)
public void close()
TransactionContext
close
in interface TransactionContext<Z,D extends Database<Z>>
TransactionContext.close()
Copyright © 2004–2014 Paul Ferraro. All rights reserved.