public interface DB2Connection extends SqlConnection
Modifier and Type | Method and Description |
---|---|
DB2Connection |
closeHandler(Handler<Void> handler)
Set an handler called when the connection is closed.
|
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)
Set an handler called with connection errors.
|
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)
Create a prepared query.
|
begin, close, databaseMetadata, isSSL
preparedQuery, query
static 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)
SqlConnection
prepare
in interface SqlConnection
sql
- the sqlhandler
- the handler notified with the prepared query asynchronouslyDB2Connection exceptionHandler(Handler<Throwable> handler)
SqlConnection
exceptionHandler
in interface SqlConnection
handler
- the handlerDB2Connection closeHandler(Handler<Void> handler)
SqlConnection
closeHandler
in interface SqlConnection
handler
- the handlerDB2Connection 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 © 2023 Eclipse. All rights reserved.