|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.flyway.core.util.jdbc.TransactionTemplate
public class TransactionTemplate
Spring-like template for executing transactions.
| Constructor Summary | |
|---|---|
TransactionTemplate(java.sql.Connection connection)
Creates a new transaction template for this connection. |
|
| Method Summary | ||
|---|---|---|
|
execute(TransactionCallback<T> transactionCallback)
Executes this callback within a transaction. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransactionTemplate(java.sql.Connection connection)
connection - The connection for the transaction.| Method Detail |
|---|
public <T> T execute(TransactionCallback<T> transactionCallback)
throws TransactionException
transactionCallback - The callback to execute.
TransactionException - when the transaction execution failed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||