public interface DB2Connection extends SqlConnection
| Modifier and Type | Method and Description |
|---|---|
DB2Connection |
closeHandler(io.vertx.core.Handler<Void> handler) |
static io.vertx.core.Future<DB2Connection> |
connect(io.vertx.core.Vertx vertx,
DB2ConnectOptions connectOptions)
Like
connect(Vertx, DB2ConnectOptions, Handler) but returns a
Future of the asynchronous result |
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 io.vertx.core.Future<DB2Connection> |
connect(io.vertx.core.Vertx vertx,
String connectionUri)
Like
connect(Vertx, String, Handler) but returns a Future of
the asynchronous result |
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. |
io.vertx.core.Future<Void> |
debug()
Like
debug(Handler) but returns a Future of the asynchronous
result |
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) |
io.vertx.core.Future<Void> |
ping()
Like
ping(Handler) but returns a Future of the asynchronous
result |
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, begin, close, isSSL, prepareclose, preparedQuery, querystatic 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 io.vertx.core.Future<DB2Connection> connect(io.vertx.core.Vertx vertx, DB2ConnectOptions connectOptions)
connect(Vertx, DB2ConnectOptions, Handler) but returns a
Future of the asynchronous resultstatic 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.static io.vertx.core.Future<DB2Connection> connect(io.vertx.core.Vertx vertx, String connectionUri)
connect(Vertx, String, Handler) but returns a Future of
the asynchronous resultDB2Connection prepare(String sql, io.vertx.core.Handler<io.vertx.core.AsyncResult<PreparedStatement>> handler)
prepare in interface SqlConnectionDB2Connection exceptionHandler(io.vertx.core.Handler<Throwable> handler)
exceptionHandler in interface SqlConnectionDB2Connection closeHandler(io.vertx.core.Handler<Void> handler)
closeHandler in interface SqlConnectionDB2Connection ping(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
handler - the handler notified when the server responses to clientio.vertx.core.Future<Void> ping()
ping(Handler) but returns a Future of the asynchronous
resultDB2Connection debug(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
handler - the handler notified with the execution resultio.vertx.core.Future<Void> debug()
debug(Handler) but returns a Future of the asynchronous
resultCopyright © 2020 Eclipse. All rights reserved.