| Modifier and Type | Field and Description | 
|---|---|
static io.vertx.lang.rx.TypeArg<Transaction> | 
__TYPE_ARG  | 
| Constructor and Description | 
|---|
Transaction(Object delegate)  | 
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<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 | 
Completable | 
rxCommit()
Like  
commit() with an handler to be notified when the transaction commit has completed | 
Single<PreparedStatement> | 
rxPrepare(String sql)
Create a prepared query. 
 | 
Completable | 
rxRollback()
Like  
rollback() with an handler to be notified when the transaction rollback has completed | 
String | 
toString()  | 
newInstance, preparedQuery, querypublic static final io.vertx.lang.rx.TypeArg<Transaction> __TYPE_ARG
public Transaction(Transaction delegate)
public Transaction(Object delegate)
public Transaction getDelegate()
getDelegate in class SqlClientpublic Transaction prepare(String sql, Handler<AsyncResult<PreparedStatement>> handler)
sql - the sqlhandler - the handler notified with the prepared query asynchronouslypublic Single<PreparedStatement> 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 void close()
public static Transaction newInstance(Transaction arg)
Copyright © 2020 Eclipse. All rights reserved.