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 |
---|---|
static DB2Connection |
cast(SqlConnection sqlConnection)
Cast a to
DB2Connection . |
DB2Connection |
closeHandler(Handler<Void> handler)
Set an handler called when the connection is closed.
|
static void |
connect(Vertx vertx,
DB2ConnectOptions connectOptions)
Create a connection to DB2 server with the given
connectOptions . |
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)
Like
connect(io.vertx.reactivex.core.Vertx, io.vertx.db2client.DB2ConnectOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.reactivex.db2client.DB2Connection>>) with options build
from connectionUri . |
static void |
connect(Vertx vertx,
String connectionUri,
Handler<AsyncResult<DB2Connection>> handler)
Like
connect(io.vertx.reactivex.core.Vertx, io.vertx.db2client.DB2ConnectOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.reactivex.db2client.DB2Connection>>) with options build
from connectionUri . |
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.
|
DB2Connection |
getDelegate() |
int |
hashCode() |
static DB2Connection |
newInstance(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,
DB2ConnectOptions connectOptions)
Create a connection to DB2 server with the given
connectOptions . |
static Single<DB2Connection> |
rxConnect(Vertx vertx,
String connectionUri)
Like
connect(io.vertx.reactivex.core.Vertx, io.vertx.db2client.DB2ConnectOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.reactivex.db2client.DB2Connection>>) with options build
from connectionUri . |
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, prepare, prepare, rxBegin, rxClose, rxPrepare, transaction
newInstance, preparedQuery, preparedQuery, query
public static final io.vertx.lang.rx.TypeArg<DB2Connection> __TYPE_ARG
public DB2Connection(DB2Connection delegate)
public DB2Connection(Object delegate)
public String toString()
toString
in class SqlConnection
public boolean equals(Object o)
equals
in class SqlConnection
public int hashCode()
hashCode
in class SqlConnection
public DB2Connection getDelegate()
getDelegate
in class SqlConnection
public 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 void connect(Vertx vertx, DB2ConnectOptions connectOptions)
connectOptions
.vertx
- the vertx instanceconnectOptions
- the options for the connectionpublic 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.reactivex.core.Vertx, io.vertx.db2client.DB2ConnectOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.reactivex.db2client.DB2Connection>>)
with options build
from connectionUri
.vertx
- connectionUri
- handler
- public static void connect(Vertx vertx, String connectionUri)
connect(io.vertx.reactivex.core.Vertx, io.vertx.db2client.DB2ConnectOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.reactivex.db2client.DB2Connection>>)
with options build
from connectionUri
.vertx
- connectionUri
- public static Single<DB2Connection> rxConnect(Vertx vertx, String connectionUri)
connect(io.vertx.reactivex.core.Vertx, io.vertx.db2client.DB2ConnectOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.reactivex.db2client.DB2Connection>>)
with options build
from connectionUri
.vertx
- connectionUri
- public DB2Connection prepare(String sql, Handler<AsyncResult<PreparedStatement>> handler)
SqlConnection
sql
string.prepare
in class SqlConnection
sql
- the sqlhandler
- the handler notified with the prepared query asynchronouslypublic DB2Connection prepare(String sql)
SqlConnection
sql
string.prepare
in class SqlConnection
sql
- the sqlpublic Single<PreparedStatement> rxPrepare(String sql)
SqlConnection
sql
string.rxPrepare
in class SqlConnection
sql
- the sqlpublic DB2Connection exceptionHandler(Handler<Throwable> handler)
SqlConnection
exceptionHandler
in class SqlConnection
handler
- the handlerpublic DB2Connection closeHandler(Handler<Void> handler)
SqlConnection
closeHandler
in class SqlConnection
handler
- 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 cast(SqlConnection sqlConnection)
DB2Connection
.
This is mostly useful for Vert.x generated APIs like RxJava/Mutiny.sqlConnection
- the connection to castinstance
public static DB2Connection newInstance(DB2Connection arg)
Copyright © 2024 Eclipse. All rights reserved.