public class DB2Connection extends SqlConnection
original non RX-ified interface using Vert.x codegen.| Modifier and Type | Field and Description |
|---|---|
static io.vertx.lang.rx.TypeArg<DB2Connection> |
__TYPE_ARG |
| Constructor and Description |
|---|
DB2Connection(io.vertx.db2client.DB2Connection delegate) |
| Modifier and Type | Method and Description |
|---|---|
DB2Connection |
closeHandler(Handler<Void> handler)
Set an handler called when the connection is closed.
|
static void |
connect(Vertx vertx,
io.vertx.db2client.DB2ConnectOptions connectOptions)
Create a connection to DB2 server with the given
connectOptions. |
static void |
connect(Vertx vertx,
io.vertx.db2client.DB2ConnectOptions connectOptions,
Handler<AsyncResult<DB2Connection>> handler)
Create a connection to DB2 server with the given
connectOptions. |
DB2Connection |
debug()
Send a DEBUG command to dump debug information to the server's stdout.
|
DB2Connection |
debug(Handler<AsyncResult<Void>> handler)
Send a DEBUG command to dump debug information to the server's stdout.
|
boolean |
equals(Object o) |
DB2Connection |
exceptionHandler(Handler<Throwable> handler)
Set an handler called with connection errors.
|
io.vertx.db2client.DB2Connection |
getDelegate() |
int |
hashCode() |
static DB2Connection |
newInstance(io.vertx.db2client.DB2Connection arg) |
DB2Connection |
ping()
Send a PING command to check if the server is alive.
|
DB2Connection |
ping(Handler<AsyncResult<Void>> handler)
Send a PING command to check if the server is alive.
|
DB2Connection |
prepare(String sql)
Create a prepared statement using the given
sql string. |
DB2Connection |
prepare(String sql,
Handler<AsyncResult<PreparedStatement>> handler)
Create a prepared statement using the given
sql string. |
static Single<DB2Connection> |
rxConnect(Vertx vertx,
io.vertx.db2client.DB2ConnectOptions connectOptions)
Create a connection to DB2 server with the given
connectOptions. |
Completable |
rxDebug()
Send a DEBUG command to dump debug information to the server's stdout.
|
Completable |
rxPing()
Send a PING command to check if the server is alive.
|
Single<PreparedStatement> |
rxPrepare(String sql)
Create a prepared statement using the given
sql string. |
String |
toString() |
begin, begin, close, close, databaseMetadata, isSSL, newInstance, rxBegin, rxClosenewInstance, preparedQuery, querypublic static final io.vertx.lang.rx.TypeArg<DB2Connection> __TYPE_ARG
public String toString()
toString in class SqlConnectionpublic boolean equals(Object o)
equals in class SqlConnectionpublic int hashCode()
hashCode in class SqlConnectionpublic io.vertx.db2client.DB2Connection getDelegate()
getDelegate in class SqlConnectionpublic static void connect(Vertx vertx, io.vertx.db2client.DB2ConnectOptions connectOptions, Handler<AsyncResult<DB2Connection>> handler)
connectOptions.vertx - the vertx instanceconnectOptions - the options for the connectionhandler - the handler called with the connection or the failurepublic static void connect(Vertx vertx, io.vertx.db2client.DB2ConnectOptions connectOptions)
connectOptions.vertx - the vertx instanceconnectOptions - the options for the connectionpublic static Single<DB2Connection> rxConnect(Vertx vertx, io.vertx.db2client.DB2ConnectOptions connectOptions)
connectOptions.vertx - the vertx instanceconnectOptions - the options for the connectionpublic DB2Connection prepare(String sql, Handler<AsyncResult<PreparedStatement>> handler)
SqlConnectionsql string.prepare in class SqlConnectionsql - the sqlhandler - the handler notified with the prepared query asynchronouslypublic DB2Connection prepare(String sql)
SqlConnectionsql string.prepare in class SqlConnectionsql - the sqlpublic Single<PreparedStatement> rxPrepare(String sql)
SqlConnectionsql string.rxPrepare in class SqlConnectionsql - the sqlpublic DB2Connection exceptionHandler(Handler<Throwable> handler)
SqlConnectionexceptionHandler in class SqlConnectionhandler - the handlerpublic DB2Connection closeHandler(Handler<Void> handler)
SqlConnectioncloseHandler in class SqlConnectionhandler - the handlerpublic DB2Connection ping(Handler<AsyncResult<Void>> handler)
handler - the handler notified when the server responses to clientpublic DB2Connection ping()
public Completable rxPing()
public DB2Connection debug(Handler<AsyncResult<Void>> handler)
handler - the handler notified with the execution resultpublic DB2Connection debug()
public Completable rxDebug()
public static DB2Connection newInstance(io.vertx.db2client.DB2Connection arg)
Copyright © 2020 Eclipse. All rights reserved.