public class SqlConnection extends SqlClient
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<SqlConnection> |
__TYPE_ARG |
Constructor and Description |
---|
SqlConnection(Object delegate) |
SqlConnection(SqlConnection delegate) |
Modifier and Type | Method and Description |
---|---|
Transaction |
begin()
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.
|
SqlConnection |
closeHandler(Handler<Void> handler)
Set an handler called when the connection is closed.
|
DatabaseMetadata |
databaseMetadata() |
boolean |
equals(Object o) |
SqlConnection |
exceptionHandler(Handler<Throwable> handler)
Set an handler called with connection errors.
|
SqlConnection |
getDelegate() |
int |
hashCode() |
boolean |
isSSL() |
static SqlConnection |
newInstance(SqlConnection arg) |
SqlConnection |
prepare(String sql,
Handler<AsyncResult<PreparedStatement>> handler)
Create a prepared query.
|
Single<PreparedStatement> |
rxPrepare(String sql)
Create a prepared query.
|
String |
toString() |
newInstance, preparedQuery, query
public static final io.vertx.lang.rx.TypeArg<SqlConnection> __TYPE_ARG
public SqlConnection(SqlConnection delegate)
public SqlConnection(Object delegate)
public SqlConnection getDelegate()
getDelegate
in class SqlClient
public SqlConnection 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 SqlConnection exceptionHandler(Handler<Throwable> handler)
handler
- the handlerpublic SqlConnection closeHandler(Handler<Void> handler)
handler
- the handlerpublic Transaction begin()
Transaction
for controlling and tracking
this transaction.
When the connection is explicitely closed, any inflight transaction is rollbacked.public boolean isSSL()
public void close()
public DatabaseMetadata databaseMetadata()
public static SqlConnection newInstance(SqlConnection arg)
Copyright © 2023 Eclipse. All rights reserved.