Package io.vertx.oracleclient
Interface OracleConnection
-
- All Superinterfaces:
SqlClient,SqlConnection
public interface OracleConnection extends SqlConnection
A connection to Oracle Database.
-
-
Method Summary
-
Methods inherited from interface io.vertx.sqlclient.SqlClient
close, preparedQuery, preparedQuery, query
-
Methods inherited from interface io.vertx.sqlclient.SqlConnection
begin, begin, close, databaseMetadata, isSSL, prepare, prepare, prepare, transaction
-
-
-
-
Method Detail
-
connect
static void connect(Vertx vertx, OracleConnectOptions connectOptions, Handler<AsyncResult<OracleConnection>> handler)
Create a connection to Oracle with the givenconnectOptions.- Parameters:
vertx- the vertx instanceconnectOptions- the options for the connectionhandler- the handler called with the connection or the failure
-
connect
static Future<OracleConnection> connect(Vertx vertx, OracleConnectOptions connectOptions)
Likeconnect(Vertx, OracleConnectOptions, Handler)but returns aFutureof the asynchronous result
-
connect
static void connect(Vertx vertx, String connectionUri, Handler<AsyncResult<OracleConnection>> handler)
Likeconnect(Vertx, OracleConnectOptions, Handler)with options built fromconnectionUri.
-
connect
static Future<OracleConnection> connect(Vertx vertx, String connectionUri)
Likeconnect(Vertx, String, Handler)but returns aFutureof the asynchronous result
-
prepare
OracleConnection prepare(String s, Handler<AsyncResult<PreparedStatement>> handler)
- Specified by:
preparein interfaceSqlConnection
-
exceptionHandler
OracleConnection exceptionHandler(Handler<Throwable> handler)
- Specified by:
exceptionHandlerin interfaceSqlConnection
-
closeHandler
OracleConnection closeHandler(Handler<Void> handler)
- Specified by:
closeHandlerin interfaceSqlConnection
-
cast
static OracleConnection cast(SqlConnection sqlConnection)
Cast aSqlConnectiontoOracleConnection.This is mostly useful for Vert.x generated APIs like RxJava/Mutiny.
- Parameters:
sqlConnection- the connection to cast- Returns:
- a
instance
-
-