| Modifier and Type | Field and Description |
|---|---|
static io.vertx.lang.rx.TypeArg<Transaction> |
__TYPE_ARG |
| Constructor and Description |
|---|
Transaction(Transaction delegate) |
| 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 |
boolean |
equals(Object o) |
Transaction |
getDelegate() |
int |
hashCode() |
static Transaction |
newInstance(Transaction arg) |
Transaction |
prepare(String sql,
Handler<AsyncResult<PreparedQuery>> handler)
Create a prepared query.
|
Transaction |
preparedBatch(String sql,
List<Tuple> batch,
Handler<AsyncResult<RowSet<Row>>> handler)
Prepare and execute a createBatch.
|
Transaction |
preparedQuery(String sql,
Handler<AsyncResult<RowSet<Row>>> handler)
Prepare and execute a query.
|
Transaction |
preparedQuery(String sql,
Tuple arguments,
Handler<AsyncResult<RowSet<Row>>> handler)
Prepare and execute a query.
|
Transaction |
query(String sql,
Handler<AsyncResult<RowSet<Row>>> handler)
Execute a simple 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 |
Completable |
rxCommit()
Like
commit() with an handler to be notified when the transaction commit has completed |
Single<PreparedQuery> |
rxPrepare(String sql)
Create a prepared query.
|
Single<RowSet<Row>> |
rxPreparedBatch(String sql,
List<Tuple> batch)
Prepare and execute a createBatch.
|
Single<RowSet<Row>> |
rxPreparedQuery(String sql)
Prepare and execute a query.
|
Single<RowSet<Row>> |
rxPreparedQuery(String sql,
Tuple arguments)
Prepare and execute a query.
|
Single<RowSet<Row>> |
rxQuery(String sql)
Execute a simple query.
|
Completable |
rxRollback()
Like
rollback() with an handler to be notified when the transaction rollback has completed |
String |
toString() |
newInstancepublic static final io.vertx.lang.rx.TypeArg<Transaction> __TYPE_ARG
public Transaction(Transaction delegate)
public Transaction getDelegate()
getDelegate in class SqlClientpublic Transaction prepare(String sql, Handler<AsyncResult<PreparedQuery>> handler)
sql - the sqlhandler - the handler notified with the prepared query asynchronouslypublic Single<PreparedQuery> rxPrepare(String sql)
sql - the sqlpublic void commit()
public void commit(Handler<AsyncResult<Void>> handler)
commit() with an handler to be notified when the transaction commit has completedhandler - public Completable rxCommit()
commit() with an handler to be notified when the transaction commit has completedpublic void rollback()
public void rollback(Handler<AsyncResult<Void>> handler)
rollback() with an handler to be notified when the transaction rollback has completedhandler - public Completable rxRollback()
rollback() with an handler to be notified when the transaction rollback has completedpublic Transaction abortHandler(Handler<Void> handler)
handler - the handlerpublic Transaction query(String sql, Handler<AsyncResult<RowSet<Row>>> handler)
SqlClientpublic Single<RowSet<Row>> rxQuery(String sql)
SqlClientpublic Transaction preparedQuery(String sql, Handler<AsyncResult<RowSet<Row>>> handler)
SqlClientpreparedQuery in class SqlClientsql - the prepared query SQLhandler - the handler notified with the execution resultpublic Single<RowSet<Row>> rxPreparedQuery(String sql)
SqlClientrxPreparedQuery in class SqlClientsql - the prepared query SQLpublic Transaction preparedQuery(String sql, Tuple arguments, Handler<AsyncResult<RowSet<Row>>> handler)
SqlClientpreparedQuery in class SqlClientsql - the prepared query SQLarguments - the list of argumentshandler - the handler notified with the execution resultpublic Single<RowSet<Row>> rxPreparedQuery(String sql, Tuple arguments)
SqlClientrxPreparedQuery in class SqlClientsql - the prepared query SQLarguments - the list of argumentspublic Transaction preparedBatch(String sql, List<Tuple> batch, Handler<AsyncResult<RowSet<Row>>> handler)
SqlClientpreparedBatch in class SqlClientsql - the prepared query SQLbatch - the batch of tupleshandler - the handler notified with the execution resultpublic Single<RowSet<Row>> rxPreparedBatch(String sql, List<Tuple> batch)
SqlClientrxPreparedBatch in class SqlClientsql - the prepared query SQLbatch - the batch of tuplespublic void close()
public static Transaction newInstance(Transaction arg)
Copyright © 2019 Eclipse. All rights reserved.