| 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<PreparedQuery>> handler)
Create a prepared query.
|
<R> Transaction |
preparedBatch(String sql,
List<Tuple> batch,
java.util.stream.Collector<Row,?,R> collector,
Handler<AsyncResult<SqlResult<R>>> handler)
Prepare and execute a createBatch.
|
Transaction |
preparedBatch(String sql,
List<Tuple> batch,
Handler<AsyncResult<RowSet<Row>>> handler)
Prepare and execute a createBatch.
|
<R> Transaction |
preparedQuery(String sql,
java.util.stream.Collector<Row,?,R> collector,
Handler<AsyncResult<SqlResult<R>>> handler)
Prepare and execute a query.
|
Transaction |
preparedQuery(String sql,
Handler<AsyncResult<RowSet<Row>>> handler)
Prepare and execute a query.
|
<R> Transaction |
preparedQuery(String sql,
Tuple arguments,
java.util.stream.Collector<Row,?,R> collector,
Handler<AsyncResult<SqlResult<R>>> handler)
Prepare and execute a query.
|
Transaction |
preparedQuery(String sql,
Tuple arguments,
Handler<AsyncResult<RowSet<Row>>> handler)
Prepare and execute a query.
|
<R> Transaction |
query(String sql,
java.util.stream.Collector<Row,?,R> collector,
Handler<AsyncResult<SqlResult<R>>> handler)
Execute a simple 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 |
Transaction prepare(String sql, Handler<AsyncResult<PreparedQuery>> 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 handlerTransaction query(String sql, Handler<AsyncResult<RowSet<Row>>> handler)
SqlClient<R> Transaction query(String sql, java.util.stream.Collector<Row,?,R> collector, Handler<AsyncResult<SqlResult<R>>> handler)
SqlClientTransaction preparedQuery(String sql, Handler<AsyncResult<RowSet<Row>>> handler)
SqlClientpreparedQuery in interface SqlClientsql - the prepared query SQLhandler - the handler notified with the execution result<R> Transaction preparedQuery(String sql, java.util.stream.Collector<Row,?,R> collector, Handler<AsyncResult<SqlResult<R>>> handler)
SqlClientpreparedQuery in interface SqlClientsql - the prepared query SQLcollector - the collectorhandler - the handler notified with the execution resultTransaction preparedQuery(String sql, Tuple arguments, Handler<AsyncResult<RowSet<Row>>> handler)
SqlClientpreparedQuery in interface SqlClientsql - the prepared query SQLarguments - the list of argumentshandler - the handler notified with the execution result<R> Transaction preparedQuery(String sql, Tuple arguments, java.util.stream.Collector<Row,?,R> collector, Handler<AsyncResult<SqlResult<R>>> handler)
SqlClientpreparedQuery in interface SqlClientsql - the prepared query SQLarguments - the list of argumentscollector - the collectorhandler - the handler notified with the execution resultTransaction preparedBatch(String sql, List<Tuple> batch, Handler<AsyncResult<RowSet<Row>>> handler)
SqlClientpreparedBatch in interface SqlClientsql - the prepared query SQLbatch - the batch of tupleshandler - the handler notified with the execution result<R> Transaction preparedBatch(String sql, List<Tuple> batch, java.util.stream.Collector<Row,?,R> collector, Handler<AsyncResult<SqlResult<R>>> handler)
SqlClientpreparedBatch in interface SqlClientsql - the prepared query SQLbatch - the batch of tuplescollector - the collectorhandler - the handler notified with the execution resultCopyright © 2019 Eclipse. All rights reserved.