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(DB2Connection delegate) |
DB2Connection(Object 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,
DB2ConnectOptions connectOptions,
Handler<AsyncResult<DB2Connection>> handler)
Create a connection to DB2 server with the given
connectOptions. |
static void |
connect(Vertx vertx,
String connectionUri,
Handler<AsyncResult<DB2Connection>> handler)
Like
connect(io.vertx.rxjava.core.Vertx, io.vertx.db2client.DB2ConnectOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.rxjava.db2client.DB2Connection>>) with options build
from connectionUri. |
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.
|
DB2Connection |
getDelegate() |
int |
hashCode() |
static DB2Connection |
newInstance(DB2Connection arg) |
DB2Connection |
ping(Handler<AsyncResult<Void>> handler)
Send a PING command to check if the server is alive.
|
DB2Connection |
prepare(String sql,
Handler<AsyncResult<PreparedStatement>> handler)
Create a prepared query.
|
static Single<DB2Connection> |
rxConnect(Vertx vertx,
DB2ConnectOptions connectOptions)
Create a connection to DB2 server with the given
connectOptions. |
static Single<DB2Connection> |
rxConnect(Vertx vertx,
String connectionUri)
Like
connect(io.vertx.rxjava.core.Vertx, io.vertx.db2client.DB2ConnectOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.rxjava.db2client.DB2Connection>>) with options build
from connectionUri. |
Single<Void> |
rxDebug()
Send a DEBUG command to dump debug information to the server's stdout.
|
Single<Void> |
rxPing()
Send a PING command to check if the server is alive.
|
Single<PreparedStatement> |
rxPrepare(String sql)
Create a prepared query.
|
String |
toString() |
begin, close, databaseMetadata, isSSL, newInstancenewInstance, preparedQuery, querypublic static final io.vertx.lang.rx.TypeArg<DB2Connection> __TYPE_ARG
public DB2Connection(DB2Connection delegate)
public DB2Connection(Object delegate)
public String toString()
toString in class SqlConnectionpublic boolean equals(Object o)
equals in class SqlConnectionpublic int hashCode()
hashCode in class SqlConnectionpublic DB2Connection getDelegate()
getDelegate in class SqlConnectionpublic static void connect(Vertx vertx, 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 Single<DB2Connection> rxConnect(Vertx vertx, DB2ConnectOptions connectOptions)
connectOptions.vertx - the vertx instanceconnectOptions - the options for the connectionpublic static void connect(Vertx vertx, String connectionUri, Handler<AsyncResult<DB2Connection>> handler)
connect(io.vertx.rxjava.core.Vertx, io.vertx.db2client.DB2ConnectOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.rxjava.db2client.DB2Connection>>) with options build
from connectionUri.vertx - connectionUri - handler - public static Single<DB2Connection> rxConnect(Vertx vertx, String connectionUri)
connect(io.vertx.rxjava.core.Vertx, io.vertx.db2client.DB2ConnectOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.rxjava.db2client.DB2Connection>>) with options build
from connectionUri.vertx - connectionUri - public DB2Connection prepare(String sql, Handler<AsyncResult<PreparedStatement>> handler)
SqlConnectionprepare in class SqlConnectionsql - the sqlhandler - the handler notified with the prepared query asynchronouslypublic Single<PreparedStatement> rxPrepare(String sql)
SqlConnectionrxPrepare 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 Single<Void> rxPing()
public DB2Connection debug(Handler<AsyncResult<Void>> handler)
handler - the handler notified with the execution resultpublic Single<Void> rxDebug()
public static DB2Connection newInstance(DB2Connection arg)
Copyright © 2021 Eclipse. All rights reserved.