Class DB2Connection
java.lang.Object
io.vertx.reactivex.sqlclient.SqlClient
io.vertx.reactivex.sqlclient.SqlConnection
io.vertx.reactivex.db2client.DB2Connection
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
A connection to DB2 server.
NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DB2Connectioncast(SqlConnection sqlConnection) Cast a toDB2Connection.closeHandler(Handler<Void> handler) Set an handler called when the connection is closed.static Future<DB2Connection> connect(Vertx vertx, DB2ConnectOptions connectOptions) Create a connection to DB2 server with the givenconnectOptions.static Future<DB2Connection> Likeconnect(Vertx, DB2ConnectOptions)with options build fromconnectionUri.debug()Send a DEBUG command to dump debug information to the server's stdout.booleanexceptionHandler(Handler<Throwable> handler) Set an handler called with connection errors.inthashCode()static DB2ConnectionnewInstance(DB2Connection arg) ping()Send a PING command to check if the server is alive.static Single<DB2Connection> rxConnect(Vertx vertx, DB2ConnectOptions connectOptions) Create a connection to DB2 server with the givenconnectOptions.static Single<DB2Connection> Likeconnect(Vertx, DB2ConnectOptions)with options build fromconnectionUri.rxDebug()Send a DEBUG command to dump debug information to the server's stdout.rxPing()Send a PING command to check if the server is alive.toString()Methods inherited from class SqlConnection
begin, databaseMetadata, isSSL, newInstance, prepare, prepare, rxBegin, rxPrepare, rxPrepare, transactionMethods inherited from class SqlClient
close, newInstance, preparedQuery, preparedQuery, query, rxClose
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
DB2Connection
-
DB2Connection
-
-
Method Details
-
toString
- Overrides:
toStringin classSqlConnection
-
equals
- Overrides:
equalsin classSqlConnection
-
hashCode
public int hashCode()- Overrides:
hashCodein classSqlConnection
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate- Overrides:
getDelegatein classSqlConnection
-
connect
Create a connection to DB2 server with the givenconnectOptions.- Parameters:
vertx- the vertx instanceconnectOptions- the options for the connection- Returns:
- a future notified with the connection or the failure
-
rxConnect
Create a connection to DB2 server with the givenconnectOptions.- Parameters:
vertx- the vertx instanceconnectOptions- the options for the connection- Returns:
- a future notified with the connection or the failure
-
connect
Likeconnect(Vertx, DB2ConnectOptions)with options build fromconnectionUri.- Parameters:
vertx-connectionUri-- Returns:
-
rxConnect
Likeconnect(Vertx, DB2ConnectOptions)with options build fromconnectionUri.- Parameters:
vertx-connectionUri-- Returns:
-
exceptionHandler
Description copied from class:SqlConnectionSet an handler called with connection errors.- Overrides:
exceptionHandlerin classSqlConnection- Parameters:
handler- the handler- Returns:
- a reference to this, so the API can be used fluently
-
closeHandler
Description copied from class:SqlConnectionSet an handler called when the connection is closed.- Overrides:
closeHandlerin classSqlConnection- Parameters:
handler- the handler- Returns:
- a reference to this, so the API can be used fluently
-
ping
-
rxPing
Send a PING command to check if the server is alive.- Returns:
- a future notified with the server response
-
debug
-
rxDebug
Send a DEBUG command to dump debug information to the server's stdout.- Returns:
- a future notified with the execution result
-
cast
Cast a toDB2Connection. This is mostly useful for Vert.x generated APIs like RxJava/Mutiny.- Parameters:
sqlConnection- the connection to cast- Returns:
- a
instance
-
newInstance
-