public interface DB2Connection extends SqlConnection
Modifier and Type | Method and Description |
---|---|
DB2Connection |
closeHandler(io.vertx.core.Handler<Void> handler) |
static void |
connect(io.vertx.core.Vertx vertx,
DB2ConnectOptions connectOptions,
io.vertx.core.Handler<io.vertx.core.AsyncResult<DB2Connection>> handler)
Create a connection to DB2 server with the given
connectOptions . |
static void |
connect(io.vertx.core.Vertx vertx,
String connectionUri,
io.vertx.core.Handler<io.vertx.core.AsyncResult<DB2Connection>> handler)
Like
connect(Vertx, DB2ConnectOptions, Handler) with options build
from connectionUri . |
DB2Connection |
debug(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
Send a DEBUG command to dump debug information to the server's stdout.
|
DB2Connection |
exceptionHandler(io.vertx.core.Handler<Throwable> handler) |
DB2Connection |
ping(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
Send a PING command to check if the server is alive.
|
DB2Connection |
prepare(String sql,
io.vertx.core.Handler<io.vertx.core.AsyncResult<PreparedStatement>> handler) |
begin, close, databaseMetadata, isSSL
preparedQuery, query
static void connect(io.vertx.core.Vertx vertx, DB2ConnectOptions connectOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<DB2Connection>> handler)
connectOptions
.vertx
- the vertx instanceconnectOptions
- the options for the connectionhandler
- the handler called with the connection or the failurestatic void connect(io.vertx.core.Vertx vertx, String connectionUri, io.vertx.core.Handler<io.vertx.core.AsyncResult<DB2Connection>> handler)
connect(Vertx, DB2ConnectOptions, Handler)
with options build
from connectionUri
.DB2Connection prepare(String sql, io.vertx.core.Handler<io.vertx.core.AsyncResult<PreparedStatement>> handler)
prepare
in interface SqlConnection
DB2Connection exceptionHandler(io.vertx.core.Handler<Throwable> handler)
exceptionHandler
in interface SqlConnection
DB2Connection closeHandler(io.vertx.core.Handler<Void> handler)
closeHandler
in interface SqlConnection
DB2Connection ping(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
handler
- the handler notified when the server responses to clientDB2Connection debug(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
handler
- the handler notified with the execution resultCopyright © 2020 Eclipse. All rights reserved.