public class DB2Connection extends SqlConnection
original non RX-ified interface using Vert.x codegen.| Modifier and Type | Field and Description |
|---|---|
static TypeArg<DB2Connection> |
__TYPE_ARG |
| Constructor and Description |
|---|
DB2Connection(io.vertx.db2client.DB2Connection delegate) |
DB2Connection(Object delegate) |
| Modifier and Type | Method and Description |
|---|---|
static DB2Connection |
cast(SqlConnection sqlConnection)
Cast a to
DB2Connection. |
DB2Connection |
closeHandler(io.vertx.core.Handler<Void> handler)
Set an handler called when the connection is closed.
|
static io.reactivex.rxjava3.core.Single<DB2Connection> |
connect(Vertx vertx,
io.vertx.db2client.DB2ConnectOptions connectOptions)
Create a connection to DB2 server with the given
connectOptions. |
static io.reactivex.rxjava3.core.Single<DB2Connection> |
connect(Vertx vertx,
String connectionUri)
Like
connect(io.vertx.rxjava3.core.Vertx, io.vertx.db2client.DB2ConnectOptions) with options build
from connectionUri. |
io.reactivex.rxjava3.core.Completable |
debug()
Send a DEBUG command to dump debug information to the server's stdout.
|
boolean |
equals(Object o) |
DB2Connection |
exceptionHandler(io.vertx.core.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) |
io.reactivex.rxjava3.core.Completable |
ping()
Send a PING command to check if the server is alive.
|
io.reactivex.rxjava3.core.Single<PreparedStatement> |
prepare(String sql)
Create a prepared statement using the given
sql string. |
static io.reactivex.rxjava3.core.Single<DB2Connection> |
rxConnect(Vertx vertx,
io.vertx.db2client.DB2ConnectOptions connectOptions)
Create a connection to DB2 server with the given
connectOptions. |
static io.reactivex.rxjava3.core.Single<DB2Connection> |
rxConnect(Vertx vertx,
String connectionUri)
Like
connect(io.vertx.rxjava3.core.Vertx, io.vertx.db2client.DB2ConnectOptions) with options build
from connectionUri. |
io.reactivex.rxjava3.core.Completable |
rxDebug()
Send a DEBUG command to dump debug information to the server's stdout.
|
io.reactivex.rxjava3.core.Completable |
rxPing()
Send a PING command to check if the server is alive.
|
io.reactivex.rxjava3.core.Single<PreparedStatement> |
rxPrepare(String sql)
Create a prepared statement using the given
sql string. |
String |
toString() |
begin, close, databaseMetadata, isSSL, newInstance, prepare, rxBegin, rxClose, rxPreparenewInstance, preparedQuery, preparedQuery, querypublic static final TypeArg<DB2Connection> __TYPE_ARG
public DB2Connection(io.vertx.db2client.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 io.vertx.db2client.DB2Connection getDelegate()
getDelegate in class SqlConnectionpublic static io.reactivex.rxjava3.core.Single<DB2Connection> connect(Vertx vertx, io.vertx.db2client.DB2ConnectOptions connectOptions)
connectOptions.vertx - the vertx instanceconnectOptions - the options for the connectionpublic static io.reactivex.rxjava3.core.Single<DB2Connection> rxConnect(Vertx vertx, io.vertx.db2client.DB2ConnectOptions connectOptions)
connectOptions.vertx - the vertx instanceconnectOptions - the options for the connectionpublic static io.reactivex.rxjava3.core.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 io.reactivex.rxjava3.core.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 io.reactivex.rxjava3.core.Single<PreparedStatement> prepare(String sql)
SqlConnectionsql string.prepare in class SqlConnectionsql - the sqlpublic io.reactivex.rxjava3.core.Single<PreparedStatement> rxPrepare(String sql)
SqlConnectionsql string.rxPrepare in class SqlConnectionsql - the sqlpublic DB2Connection exceptionHandler(io.vertx.core.Handler<Throwable> handler)
SqlConnectionexceptionHandler in class SqlConnectionhandler - the handlerpublic DB2Connection closeHandler(io.vertx.core.Handler<Void> handler)
SqlConnectioncloseHandler in class SqlConnectionhandler - the handlerpublic io.reactivex.rxjava3.core.Completable ping()
public io.reactivex.rxjava3.core.Completable rxPing()
public io.reactivex.rxjava3.core.Completable debug()
public io.reactivex.rxjava3.core.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 castinstancepublic static DB2Connection newInstance(io.vertx.db2client.DB2Connection arg)
Copyright © 2022 Eclipse. All rights reserved.