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