Modifier and Type | Method and Description |
---|---|
PgTransaction |
abortHandler(io.vertx.core.Handler<Void> handler)
Set an handler to be called when the transaction is aborted.
|
void |
commit()
Commit the current transaction.
|
void |
commit(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
Like
commit() with an handler to be notified when the transaction commit has completed |
PgTransaction |
prepare(String sql,
io.vertx.core.Handler<io.vertx.core.AsyncResult<PgPreparedQuery>> handler)
Create a prepared query.
|
<R> PgTransaction |
preparedBatch(String sql,
List<Tuple> batch,
Collector<Row,?,R> collector,
io.vertx.core.Handler<io.vertx.core.AsyncResult<PgResult<R>>> handler)
Prepare and execute a createBatch.
|
PgTransaction |
preparedBatch(String sql,
List<Tuple> batch,
io.vertx.core.Handler<io.vertx.core.AsyncResult<PgRowSet>> handler)
Prepare and execute a createBatch.
|
<R> PgTransaction |
preparedQuery(String sql,
Collector<Row,?,R> collector,
io.vertx.core.Handler<io.vertx.core.AsyncResult<PgResult<R>>> handler)
Prepare and execute a query.
|
PgTransaction |
preparedQuery(String sql,
io.vertx.core.Handler<io.vertx.core.AsyncResult<PgRowSet>> handler)
Prepare and execute a query.
|
<R> PgTransaction |
preparedQuery(String sql,
Tuple arguments,
Collector<Row,?,R> collector,
io.vertx.core.Handler<io.vertx.core.AsyncResult<PgResult<R>>> handler)
Prepare and execute a query.
|
PgTransaction |
preparedQuery(String sql,
Tuple arguments,
io.vertx.core.Handler<io.vertx.core.AsyncResult<PgRowSet>> handler)
Prepare and execute a query.
|
<R> PgTransaction |
query(String sql,
Collector<Row,?,R> collector,
io.vertx.core.Handler<io.vertx.core.AsyncResult<PgResult<R>>> handler)
Execute a simple query.
|
PgTransaction |
query(String sql,
io.vertx.core.Handler<io.vertx.core.AsyncResult<PgRowSet>> handler)
Execute a simple query.
|
void |
rollback()
Rollback the current transaction.
|
void |
rollback(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
Like
rollback() with an handler to be notified when the transaction rollback has completed |
PgTransaction prepare(String sql, io.vertx.core.Handler<io.vertx.core.AsyncResult<PgPreparedQuery>> handler)
sql
- the sqlhandler
- the handler notified with the prepared query asynchronouslyvoid commit()
void commit(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
commit()
with an handler to be notified when the transaction commit has completedvoid rollback()
void rollback(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
rollback()
with an handler to be notified when the transaction rollback has completedPgTransaction abortHandler(io.vertx.core.Handler<Void> handler)
handler
- the handlerPgTransaction query(String sql, io.vertx.core.Handler<io.vertx.core.AsyncResult<PgRowSet>> handler)
PgClient
<R> PgTransaction query(String sql, Collector<Row,?,R> collector, io.vertx.core.Handler<io.vertx.core.AsyncResult<PgResult<R>>> handler)
PgClient
PgTransaction preparedQuery(String sql, io.vertx.core.Handler<io.vertx.core.AsyncResult<PgRowSet>> handler)
PgClient
preparedQuery
in interface PgClient
sql
- the prepared query SQLhandler
- the handler notified with the execution result<R> PgTransaction preparedQuery(String sql, Collector<Row,?,R> collector, io.vertx.core.Handler<io.vertx.core.AsyncResult<PgResult<R>>> handler)
PgClient
preparedQuery
in interface PgClient
sql
- the prepared query SQLcollector
- the collectorhandler
- the handler notified with the execution resultPgTransaction preparedQuery(String sql, Tuple arguments, io.vertx.core.Handler<io.vertx.core.AsyncResult<PgRowSet>> handler)
PgClient
preparedQuery
in interface PgClient
sql
- the prepared query SQLarguments
- the list of argumentshandler
- the handler notified with the execution result<R> PgTransaction preparedQuery(String sql, Tuple arguments, Collector<Row,?,R> collector, io.vertx.core.Handler<io.vertx.core.AsyncResult<PgResult<R>>> handler)
PgClient
preparedQuery
in interface PgClient
sql
- the prepared query SQLarguments
- the list of argumentscollector
- the collectorhandler
- the handler notified with the execution resultPgTransaction preparedBatch(String sql, List<Tuple> batch, io.vertx.core.Handler<io.vertx.core.AsyncResult<PgRowSet>> handler)
PgClient
preparedBatch
in interface PgClient
sql
- the prepared query SQLbatch
- the batch of tupleshandler
- the handler notified with the execution result<R> PgTransaction preparedBatch(String sql, List<Tuple> batch, Collector<Row,?,R> collector, io.vertx.core.Handler<io.vertx.core.AsyncResult<PgResult<R>>> handler)
PgClient
preparedBatch
in interface PgClient
sql
- the prepared query SQLbatch
- the batch of tuplescollector
- the collectorhandler
- the handler notified with the execution resultCopyright © 2019 Eclipse. All rights reserved.