| 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
commit() with an handler to be notified when the transaction commit has completed |
Transaction |
prepare(String sql,
Handler<AsyncResult<PreparedStatement>> handler)
Create a prepared query.
|
void |
rollback()
Rollback the current transaction.
|
void |
rollback(Handler<AsyncResult<Void>> handler)
Like
rollback() with an handler to be notified when the transaction rollback has completed |
preparedQuery, queryTransaction prepare(String sql, Handler<AsyncResult<PreparedStatement>> handler)
sql - the sqlhandler - the handler notified with the prepared query asynchronouslyvoid commit()
void commit(Handler<AsyncResult<Void>> handler)
commit() with an handler to be notified when the transaction commit has completedvoid rollback()
void rollback(Handler<AsyncResult<Void>> handler)
rollback() with an handler to be notified when the transaction rollback has completedTransaction abortHandler(Handler<Void> handler)
handler - the handlerCopyright © 2021 Eclipse. All rights reserved.