public class SqlConnection extends SqlClient
original non RX-ified interface using Vert.x codegen.| Modifier and Type | Field and Description |
|---|---|
static TypeArg<SqlConnection> |
__TYPE_ARG |
| Constructor and Description |
|---|
SqlConnection(Object delegate) |
SqlConnection(io.vertx.sqlclient.SqlConnection delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
begin()
Begin a transaction and returns a
Transaction for controlling and tracking
this transaction. |
void |
begin(io.vertx.core.Handler<io.vertx.core.AsyncResult<Transaction>> handler)
Begin a transaction and returns a
Transaction for controlling and tracking
this transaction. |
void |
close()
Close the current connection after all the pending commands have been processed.
|
void |
close(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
Close the current connection after all the pending commands have been processed.
|
SqlConnection |
closeHandler(io.vertx.core.Handler<Void> handler)
Set an handler called when the connection is closed.
|
DatabaseMetadata |
databaseMetadata() |
boolean |
equals(Object o) |
SqlConnection |
exceptionHandler(io.vertx.core.Handler<Throwable> handler)
Set an handler called with connection errors.
|
io.vertx.sqlclient.SqlConnection |
getDelegate() |
int |
hashCode() |
boolean |
isSSL() |
static SqlConnection |
newInstance(io.vertx.sqlclient.SqlConnection arg) |
SqlConnection |
prepare(String sql)
Create a prepared statement using the given
sql string. |
SqlConnection |
prepare(String sql,
io.vertx.core.Handler<io.vertx.core.AsyncResult<PreparedStatement>> handler)
Create a prepared statement using the given
sql string. |
SqlConnection |
prepare(String sql,
io.vertx.sqlclient.PrepareOptions options)
Create a prepared statement using the given
sql string. |
SqlConnection |
prepare(String sql,
io.vertx.sqlclient.PrepareOptions options,
io.vertx.core.Handler<io.vertx.core.AsyncResult<PreparedStatement>> handler)
Create a prepared statement using the given
sql string. |
io.reactivex.Single<Transaction> |
rxBegin()
Begin a transaction and returns a
Transaction for controlling and tracking
this transaction. |
io.reactivex.Completable |
rxClose()
Close the current connection after all the pending commands have been processed.
|
io.reactivex.Single<PreparedStatement> |
rxPrepare(String sql)
Create a prepared statement using the given
sql string. |
io.reactivex.Single<PreparedStatement> |
rxPrepare(String sql,
io.vertx.sqlclient.PrepareOptions options)
Create a prepared statement using the given
sql string. |
String |
toString() |
newInstance, preparedQuery, preparedQuery, querypublic static final TypeArg<SqlConnection> __TYPE_ARG
public SqlConnection(io.vertx.sqlclient.SqlConnection delegate)
public SqlConnection(Object delegate)
public io.vertx.sqlclient.SqlConnection getDelegate()
getDelegate in class SqlClientpublic SqlConnection prepare(String sql, io.vertx.core.Handler<io.vertx.core.AsyncResult<PreparedStatement>> handler)
sql string.sql - the sqlhandler - the handler notified with the prepared query asynchronouslypublic SqlConnection prepare(String sql)
sql string.sql - the sqlpublic io.reactivex.Single<PreparedStatement> rxPrepare(String sql)
sql string.sql - the sqlpublic SqlConnection prepare(String sql, io.vertx.sqlclient.PrepareOptions options, io.vertx.core.Handler<io.vertx.core.AsyncResult<PreparedStatement>> handler)
sql string.sql - the sqloptions - handler - the handler notified with the prepared query asynchronouslypublic SqlConnection prepare(String sql, io.vertx.sqlclient.PrepareOptions options)
sql string.sql - the sqloptions - public io.reactivex.Single<PreparedStatement> rxPrepare(String sql, io.vertx.sqlclient.PrepareOptions options)
sql string.sql - the sqloptions - public SqlConnection exceptionHandler(io.vertx.core.Handler<Throwable> handler)
handler - the handlerpublic SqlConnection closeHandler(io.vertx.core.Handler<Void> handler)
handler - the handlerpublic void begin(io.vertx.core.Handler<io.vertx.core.AsyncResult<Transaction>> handler)
Transaction for controlling and tracking
this transaction.
When the connection is explicitely closed, any inflight transaction is rollbacked.handler - public void begin()
Transaction for controlling and tracking
this transaction.
When the connection is explicitely closed, any inflight transaction is rollbacked.public io.reactivex.Single<Transaction> rxBegin()
Transaction for controlling and tracking
this transaction.
When the connection is explicitely closed, any inflight transaction is rollbacked.public boolean isSSL()
public void close(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
public void close()
public io.reactivex.Completable rxClose()
public DatabaseMetadata databaseMetadata()
public static SqlConnection newInstance(io.vertx.sqlclient.SqlConnection arg)
Copyright © 2022 Eclipse. All rights reserved.