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, 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)
SqlConnectionprepare in interface SqlConnectionsql - the sqlhandler - the handler notified with the prepared query asynchronouslyDB2Connection exceptionHandler(Handler<Throwable> handler)
SqlConnectionexceptionHandler in interface SqlConnectionhandler - the handlerDB2Connection closeHandler(Handler<Void> handler)
SqlConnectioncloseHandler in interface SqlConnectionhandler - 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 © 2020 Eclipse. All rights reserved.