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 Single<DB2Connection> |
connect(Vertx vertx,
DB2ConnectOptions connectOptions)
Create a connection to DB2 server with the given
connectOptions . |
static Single<DB2Connection> |
connect(Vertx vertx,
String connectionUri)
Like
connect(io.vertx.rxjava3.core.Vertx, io.vertx.db2client.DB2ConnectOptions) with options build
from connectionUri . |
Completable |
debug()
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) |
Completable |
ping()
Send a PING command to check if the server is alive.
|
Single<PreparedStatement> |
prepare(String sql)
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.rxjava3.core.Vertx, io.vertx.db2client.DB2ConnectOptions) 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, close, databaseMetadata, isSSL, newInstance, 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 Single<DB2Connection> 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 Single<DB2Connection> connect(Vertx vertx, String connectionUri)
connect(io.vertx.rxjava3.core.Vertx, io.vertx.db2client.DB2ConnectOptions)
with options build
from connectionUri
.vertx
- connectionUri
- public static Single<DB2Connection> rxConnect(Vertx vertx, String connectionUri)
connect(io.vertx.rxjava3.core.Vertx, io.vertx.db2client.DB2ConnectOptions)
with options build
from connectionUri
.vertx
- connectionUri
- public Single<PreparedStatement> 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 Completable ping()
public Completable rxPing()
public Completable 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.