Class OracleConnection
- All Implemented Interfaces:
MutinyDelegate
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- See Also:
-
OracleConnection
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOracleConnection(io.vertx.oracleclient.OracleConnection delegate) Create a new instance ofOracleConnectiondelegating to the given (non-null) instance ofOracleConnection.OracleConnection(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<Transaction>begin()Begin a transaction and returns aTransactionfor controlling and tracking this transaction.Begin a transaction and returns aTransactionfor controlling and tracking this transaction.Begin a transaction and returns aTransactionfor controlling and tracking this transaction.static OracleConnectioncast(SqlConnection sqlConnection) Cast aSqlConnectiontoOracleConnection.io.smallrye.mutiny.Uni<Void>close()Close the client and release the associated resources.voidClose the client and release the associated resources.Close the client and release the associated resources.closeHandler(Runnable handler) Set an handler called when the connection is closed.static io.smallrye.mutiny.Uni<OracleConnection>Create a connection to Oracle with the givenconnectOptions.static io.smallrye.mutiny.Uni<OracleConnection>Likeconnect(Vertx, OracleConnectOptions)with options built fromconnectionUri.static OracleConnectionconnectAndAwait(Vertx vertx, io.vertx.oracleclient.OracleConnectOptions connectOptions) Create a connection to Oracle with the givenconnectOptions.static OracleConnectionconnectAndAwait(Vertx vertx, String connectionUri) Likeconnect(Vertx, OracleConnectOptions)with options built fromconnectionUri.static voidconnectAndForget(Vertx vertx, io.vertx.oracleclient.OracleConnectOptions connectOptions) Create a connection to Oracle with the givenconnectOptions.static voidconnectAndForget(Vertx vertx, String connectionUri) Likeconnect(Vertx, OracleConnectOptions)with options built fromconnectionUri.booleanexceptionHandler(Consumer<Throwable> handler) Set an handler called with connection errors.io.vertx.oracleclient.OracleConnectionGet the delegate instance.inthashCode()static OracleConnectionnewInstance(io.vertx.oracleclient.OracleConnection delegate) Creates a new instance of theOracleConnection.io.smallrye.mutiny.Uni<PreparedStatement>Create a prepared statement using the givensqlstring.io.smallrye.mutiny.Uni<PreparedStatement>Create a prepared statement using the givensqlstring.prepareAndAwait(String sql) Create a prepared statement using the givensqlstring.prepareAndAwait(String sql, io.vertx.sqlclient.PrepareOptions options) Create a prepared statement using the givensqlstring.prepareAndForget(String sql) Create a prepared statement using the givensqlstring.prepareAndForget(String sql, io.vertx.sqlclient.PrepareOptions options) Create a prepared statement using the givensqlstring.toString()Methods inherited from class io.vertx.mutiny.sqlclient.SqlConnection
databaseMetadata, isSSL, newInstance, transactionMethods inherited from class io.vertx.mutiny.sqlclient.SqlClient
newInstance, preparedQuery, preparedQuery, query
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
OracleConnection
public OracleConnection(io.vertx.oracleclient.OracleConnection delegate) Create a new instance ofOracleConnectiondelegating to the given (non-null) instance ofOracleConnection. -
OracleConnection
-
-
Method Details
-
getDelegate
public io.vertx.oracleclient.OracleConnection getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Overrides:
getDelegatein classSqlConnection- Returns:
- the delegate instance
-
connect
@CheckReturnValue public static io.smallrye.mutiny.Uni<OracleConnection> connect(Vertx vertx, io.vertx.oracleclient.OracleConnectOptions connectOptions) Create a connection to Oracle with the givenconnectOptions.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
vertx- the vertx instanceconnectOptions- the options for the connection- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
io.vertx.oracleclient.OracleConnection#connect(Vertx, OracleConnectOptions)
-
connectAndAwait
public static OracleConnection connectAndAwait(Vertx vertx, io.vertx.oracleclient.OracleConnectOptions connectOptions) Create a connection to Oracle with the givenconnectOptions.Unlike the bare Vert.x variant, this method returns a
OracleConnection. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Parameters:
vertx- the vertx instanceconnectOptions- the options for the connection- Returns:
- The operation result
- See Also:
-
io.vertx.oracleclient.OracleConnection#connect(Vertx, OracleConnectOptions)
-
connectAndForget
public static void connectAndForget(Vertx vertx, io.vertx.oracleclient.OracleConnectOptions connectOptions) Create a connection to Oracle with the givenconnectOptions.Unlike the bare Vert.x variant, this method ignores the
OracleConnectionresult or any failure.- Parameters:
vertx- the vertx instanceconnectOptions- the options for the connection- See Also:
-
io.vertx.oracleclient.OracleConnection#connect(Vertx, OracleConnectOptions)
-
connect
@CheckReturnValue public static io.smallrye.mutiny.Uni<OracleConnection> connect(Vertx vertx, String connectionUri) Likeconnect(Vertx, OracleConnectOptions)with options built fromconnectionUri.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
io.vertx.oracleclient.OracleConnection#connect(Vertx, String)
-
connectAndAwait
Likeconnect(Vertx, OracleConnectOptions)with options built fromconnectionUri.Unlike the bare Vert.x variant, this method returns a
OracleConnection. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Returns:
- The operation result
- See Also:
-
io.vertx.oracleclient.OracleConnection#connect(Vertx, String)
-
connectAndForget
Likeconnect(Vertx, OracleConnectOptions)with options built fromconnectionUri.Unlike the bare Vert.x variant, this method ignores the
OracleConnectionresult or any failure.- See Also:
-
io.vertx.oracleclient.OracleConnection#connect(Vertx, String)
-
begin
Begin a transaction and returns aTransactionfor controlling and tracking this transaction. When the connection is explicitely closed, any inflight transaction is rollbacked.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Overrides:
beginin classSqlConnection- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
SqlConnection.begin()
-
beginAndAwait
Begin a transaction and returns aTransactionfor controlling and tracking this transaction. When the connection is explicitely closed, any inflight transaction is rollbacked.Unlike the bare Vert.x variant, this method returns a
Transaction. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Overrides:
beginAndAwaitin classSqlConnection- Returns:
- The operation result
- See Also:
-
SqlConnection.begin()
-
beginAndForget
Begin a transaction and returns aTransactionfor controlling and tracking this transaction. When the connection is explicitely closed, any inflight transaction is rollbacked.Unlike the bare Vert.x variant, this method ignores the
Transactionresult or any failure.- Overrides:
beginAndForgetin classSqlConnection- Returns:
- The current instance to chain operations if needed.
- See Also:
-
SqlConnection.begin()
-
prepare
@CheckReturnValue public io.smallrye.mutiny.Uni<PreparedStatement> prepare(String sql, io.vertx.sqlclient.PrepareOptions options) Create a prepared statement using the givensqlstring.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Overrides:
preparein classSqlConnection- Parameters:
sql- the sql- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
SqlConnection.prepare(String, PrepareOptions)
-
prepareAndAwait
Create a prepared statement using the givensqlstring.Unlike the bare Vert.x variant, this method returns a
PreparedStatement. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Overrides:
prepareAndAwaitin classSqlConnection- Parameters:
sql- the sql- Returns:
- The operation result
- See Also:
-
SqlConnection.prepare(String, PrepareOptions)
-
prepareAndForget
Create a prepared statement using the givensqlstring.Unlike the bare Vert.x variant, this method ignores the
PreparedStatementresult or any failure.- Overrides:
prepareAndForgetin classSqlConnection- Parameters:
sql- the sql- Returns:
- The current instance to chain operations if needed.
- See Also:
-
SqlConnection.prepare(String, PrepareOptions)
-
close
Close the client and release the associated resources.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Overrides:
closein classSqlConnection- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
SqlClient.close()
-
closeAndAwait
public void closeAndAwait()Close the client and release the associated resources.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Overrides:
closeAndAwaitin classSqlConnection- See Also:
-
SqlClient.close()
-
closeAndForget
Close the client and release the associated resources.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Overrides:
closeAndForgetin classSqlConnection- Returns:
- The current instance to chain operations if needed.
- See Also:
-
SqlClient.close()
-
prepare
Create a prepared statement using the givensqlstring.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Overrides:
preparein classSqlConnection- Parameters:
sql- the sql- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
SqlConnection.prepare(String)
-
prepareAndAwait
Create a prepared statement using the givensqlstring.Unlike the bare Vert.x variant, this method returns a
PreparedStatement. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- Overrides:
prepareAndAwaitin classSqlConnection- Parameters:
sql- the sql- Returns:
- The operation result
- See Also:
-
SqlConnection.prepare(String)
-
prepareAndForget
Create a prepared statement using the givensqlstring.Unlike the bare Vert.x variant, this method ignores the
PreparedStatementresult or any failure.- Overrides:
prepareAndForgetin classSqlConnection- Parameters:
sql- the sql- Returns:
- The current instance to chain operations if needed.
- See Also:
-
SqlConnection.prepare(String)
-
exceptionHandler
Set 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
Set 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
-
cast
Cast aSqlConnectiontoOracleConnection.This is mostly useful for Vert.x generated APIs like RxJava/Mutiny.
- Parameters:
sqlConnection- the connection to cast- Returns:
- a
instance
-
newInstance
Creates a new instance of theOracleConnection. -
hashCode
public int hashCode()- Overrides:
hashCodein classSqlConnection
-
equals
- Overrides:
equalsin classSqlConnection
-
toString
- Overrides:
toStringin classSqlConnection
-