public interface DB2Connection extends SqlConnection
| Modifier and Type | Method and Description |
|---|---|
DB2Connection |
closeHandler(Handler<Void> handler) |
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,
Handler<AsyncResult<DB2Connection>> handler)
Like
connect(Vertx, DB2ConnectOptions, Handler) with options build
from connectionUri. |
DB2Connection |
debug(Handler<AsyncResult<Void>> handler)
Send a DEBUG command to dump debug information to the server's stdout.
|
DB2Connection |
exceptionHandler(Handler<Throwable> handler) |
DB2Connection |
ping(Handler<AsyncResult<Void>> handler)
Send a PING command to check if the server is alive.
|
DB2Connection |
prepare(String sql,
Handler<AsyncResult<PreparedStatement>> handler) |
begin, close, databaseMetadata, isSSLpreparedQuery, querystatic 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 failurestatic void connect(Vertx vertx, String connectionUri, Handler<AsyncResult<DB2Connection>> handler)
connect(Vertx, DB2ConnectOptions, Handler) with options build
from connectionUri.DB2Connection prepare(String sql, Handler<AsyncResult<PreparedStatement>> handler)
prepare in interface SqlConnectionDB2Connection exceptionHandler(Handler<Throwable> handler)
exceptionHandler in interface SqlConnectionDB2Connection closeHandler(Handler<Void> handler)
closeHandler in interface SqlConnectionDB2Connection ping(Handler<AsyncResult<Void>> handler)
handler - the handler notified when the server responses to clientDB2Connection debug(Handler<AsyncResult<Void>> handler)
handler - the handler notified with the execution resultCopyright © 2020 Eclipse. All rights reserved.