Class OracleConnection
- java.lang.Object
-
- io.vertx.mutiny.sqlclient.SqlClient
-
- io.vertx.mutiny.sqlclient.SqlConnection
-
- io.vertx.mutiny.oracleclient.OracleConnection
-
public class OracleConnection extends SqlConnection
A connection to Oracle Database. NOTE: This class has been automatically generated from theoriginalnon Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<OracleConnection>__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description OracleConnection(io.vertx.oracleclient.OracleConnection delegate)OracleConnection(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OracleConnectioncast(SqlConnection sqlConnection)OracleConnectioncloseHandler(Runnable handler)static io.smallrye.mutiny.Uni<OracleConnection>connect(Vertx vertx, io.vertx.oracleclient.OracleConnectOptions connectOptions)Create a connection to Oracle with the givenconnectOptions.static io.smallrye.mutiny.Uni<OracleConnection>connect(Vertx vertx, String connectionUri)Likeconnect(io.vertx.mutiny.core.Vertx, io.vertx.oracleclient.OracleConnectOptions)with options built fromconnectionUri.static OracleConnectionconnectAndAwait(Vertx vertx, io.vertx.oracleclient.OracleConnectOptions connectOptions)Blocking variant ofconnect(io.vertx.mutiny.core.Vertx,OracleConnectOptions).static OracleConnectionconnectAndAwait(Vertx vertx, String connectionUri)Blocking variant ofconnect(io.vertx.mutiny.core.Vertx,String).static voidconnectAndForget(Vertx vertx, io.vertx.oracleclient.OracleConnectOptions connectOptions)Variant ofconnect(io.vertx.mutiny.core.Vertx,OracleConnectOptions)that ignores the result of the operation.static voidconnectAndForget(Vertx vertx, String connectionUri)Variant ofconnect(io.vertx.mutiny.core.Vertx,String)that ignores the result of the operation.booleanequals(Object o)OracleConnectionexceptionHandler(Consumer<Throwable> handler)io.vertx.oracleclient.OracleConnectiongetDelegate()inthashCode()static OracleConnectionnewInstance(io.vertx.oracleclient.OracleConnection arg)io.smallrye.mutiny.Uni<PreparedStatement>prepare(String s)Unlike the bare Vert.x variant, this method returns aUni.PreparedStatementprepareAndAwait(String s)Blocking variant ofSqlConnection.prepare(String).OracleConnectionprepareAndForget(String s)Variant ofSqlConnection.prepare(String)that ignores the result of the operation.StringtoString()-
Methods inherited from class io.vertx.mutiny.sqlclient.SqlConnection
begin, beginAndAwait, beginAndForget, close, closeAndAwait, closeAndForget, databaseMetadata, isSSL, newInstance, prepare, prepareAndAwait, prepareAndForget, transaction
-
Methods inherited from class io.vertx.mutiny.sqlclient.SqlClient
newInstance, preparedQuery, preparedQuery, query
-
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<OracleConnection> __TYPE_ARG
-
-
Constructor Detail
-
OracleConnection
public OracleConnection(io.vertx.oracleclient.OracleConnection delegate)
-
OracleConnection
public OracleConnection(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.oracleclient.OracleConnection getDelegate()
- Overrides:
getDelegatein classSqlConnection
-
toString
public String toString()
- Overrides:
toStringin classSqlConnection
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classSqlConnection
-
hashCode
public int hashCode()
- Overrides:
hashCodein classSqlConnection
-
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. Don't forget to subscribe on it to trigger the operation.- Parameters:
vertx- the vertx instanceconnectOptions- the options for the connection- Returns:
- the
unifiring the result of the operation when completed, or a failure if the operation failed.
-
connectAndAwait
public static OracleConnection connectAndAwait(Vertx vertx, io.vertx.oracleclient.OracleConnectOptions connectOptions)
Blocking variant ofconnect(io.vertx.mutiny.core.Vertx,OracleConnectOptions).This method waits 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 a RuntimeException).
- Parameters:
vertx- the vertx instanceconnectOptions- the options for the connection- Returns:
- the OracleConnection instance produced by the operation.
-
connectAndForget
public static void connectAndForget(Vertx vertx, io.vertx.oracleclient.OracleConnectOptions connectOptions)
Variant ofconnect(io.vertx.mutiny.core.Vertx,OracleConnectOptions)that ignores the result of the operation.This method subscribes on the result of
connect(io.vertx.mutiny.core.Vertx,OracleConnectOptions), but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromconnect(io.vertx.mutiny.core.Vertx,OracleConnectOptions)but you don't need to compose it with other operations.- Parameters:
vertx- the vertx instanceconnectOptions- the options for the connection
-
connect
@CheckReturnValue public static io.smallrye.mutiny.Uni<OracleConnection> connect(Vertx vertx, String connectionUri)
Likeconnect(io.vertx.mutiny.core.Vertx, io.vertx.oracleclient.OracleConnectOptions)with options built fromconnectionUri.Unlike the bare Vert.x variant, this method returns a
Uni. Don't forget to subscribe on it to trigger the operation.- Parameters:
vertx-connectionUri-- Returns:
- the
unifiring the result of the operation when completed, or a failure if the operation failed.
-
connectAndAwait
public static OracleConnection connectAndAwait(Vertx vertx, String connectionUri)
Blocking variant ofconnect(io.vertx.mutiny.core.Vertx,String).This method waits 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 a RuntimeException).
- Parameters:
vertx-connectionUri-- Returns:
- the OracleConnection instance produced by the operation.
-
connectAndForget
public static void connectAndForget(Vertx vertx, String connectionUri)
Variant ofconnect(io.vertx.mutiny.core.Vertx,String)that ignores the result of the operation.This method subscribes on the result of
connect(io.vertx.mutiny.core.Vertx,String), but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromconnect(io.vertx.mutiny.core.Vertx,String)but you don't need to compose it with other operations.- Parameters:
vertx-connectionUri-
-
prepare
@CheckReturnValue public io.smallrye.mutiny.Uni<PreparedStatement> prepare(String s)
Unlike the bare Vert.x variant, this method returns a
Uni. Don't forget to subscribe on it to trigger the operation.- Overrides:
preparein classSqlConnection- Parameters:
s-- Returns:
- the
unifiring the result of the operation when completed, or a failure if the operation failed.
-
prepareAndAwait
public PreparedStatement prepareAndAwait(String s)
Blocking variant ofSqlConnection.prepare(String).This method waits 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 a RuntimeException).
- Overrides:
prepareAndAwaitin classSqlConnection- Parameters:
s-- Returns:
- the PreparedStatement instance produced by the operation.
-
prepareAndForget
public OracleConnection prepareAndForget(String s)
Variant ofSqlConnection.prepare(String)that ignores the result of the operation.This method subscribes on the result of
SqlConnection.prepare(String), but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromSqlConnection.prepare(String)but you don't need to compose it with other operations.- Overrides:
prepareAndForgetin classSqlConnection- Parameters:
s-- Returns:
- the instance of OracleConnection to chain method calls.
-
exceptionHandler
public OracleConnection exceptionHandler(Consumer<Throwable> handler)
- Overrides:
exceptionHandlerin classSqlConnection- Parameters:
handler-- Returns:
-
closeHandler
public OracleConnection closeHandler(Runnable handler)
- Overrides:
closeHandlerin classSqlConnection- Parameters:
handler-- Returns:
-
cast
public static OracleConnection cast(SqlConnection sqlConnection)
- Parameters:
sqlConnection- the connection to cast- Returns:
- a
instance
-
newInstance
public static OracleConnection newInstance(io.vertx.oracleclient.OracleConnection arg)
-
-