public class TransactionImpl extends SqlConnectionBase<TransactionImpl> implements Transaction
conn, context| Constructor and Description |
|---|
TransactionImpl(Context context,
Connection conn,
Handler<Void> disposeHandler) |
| Modifier and Type | Method and Description |
|---|---|
Transaction |
abortHandler(Handler<Void> handler)
Set an handler to be called when the transaction is aborted.
|
void |
close()
Rollback the transaction and release the associated resources.
|
void |
commit()
Commit the current transaction.
|
void |
commit(Handler<AsyncResult<Void>> handler)
Like
Transaction.commit() with an handler to be notified when the transaction commit has completed |
void |
rollback()
Rollback the current transaction.
|
void |
rollback(Handler<AsyncResult<Void>> handler)
Like
Transaction.rollback() with an handler to be notified when the transaction rollback has completed |
void |
schedule(CommandBase<?> cmd) |
<R> void |
schedule(CommandBase<R> cmd,
Handler<? super CommandResponse<R>> handler) |
preparepreparedBatch, preparedBatch, preparedQuery, preparedQuery, preparedQuery, preparedQuery, query, queryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprepare, preparedBatch, preparedBatch, preparedQuery, preparedQuery, preparedQuery, preparedQuery, query, querypublic TransactionImpl(Context context, Connection conn, Handler<Void> disposeHandler)
public <R> void schedule(CommandBase<R> cmd, Handler<? super CommandResponse<R>> handler)
schedule in interface CommandSchedulerpublic void schedule(CommandBase<?> cmd)
public void commit()
Transactioncommit in interface Transactionpublic void commit(Handler<AsyncResult<Void>> handler)
TransactionTransaction.commit() with an handler to be notified when the transaction commit has completedcommit in interface Transactionpublic void rollback()
Transactionrollback in interface Transactionpublic void rollback(Handler<AsyncResult<Void>> handler)
TransactionTransaction.rollback() with an handler to be notified when the transaction rollback has completedrollback in interface Transactionpublic void close()
Transactionclose in interface SqlClientclose in interface Transactionpublic Transaction abortHandler(Handler<Void> handler)
TransactionabortHandler in interface Transactionhandler - the handlerCopyright © 2020. All rights reserved.