Class OracleConnection

All Implemented Interfaces:
MutinyDelegate

public class OracleConnection extends SqlConnection implements MutinyDelegate
A connection to Oracle Database.

NOTE: This class has been automatically generated from the original non Mutiny-ified interface using Vert.x codegen.

  • Field Details

  • Constructor Details

    • OracleConnection

      public OracleConnection(io.vertx.oracleclient.OracleConnection delegate)
    • OracleConnection

      public OracleConnection(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.oracleclient.OracleConnection getDelegate()
      Specified by:
      getDelegate in interface MutinyDelegate
      Overrides:
      getDelegate in class SqlConnection
      Returns:
      the delegate used by this Mutiny object of generated type
    • toString

      public String toString()
      Overrides:
      toString in class SqlConnection
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class SqlConnection
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class SqlConnection
    • connect

      @CheckReturnValue public static io.smallrye.mutiny.Uni<OracleConnection> connect(Vertx vertx, io.vertx.oracleclient.OracleConnectOptions connectOptions)
      Create a connection to Oracle with the given connectOptions.

      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 instance
      connectOptions - the options for the connection
      Returns:
      the uni firing 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 of connect(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 instance
      connectOptions - 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 of connect(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 from connect(io.vertx.mutiny.core.Vertx,OracleConnectOptions) but you don't need to compose it with other operations.

      Parameters:
      vertx - the vertx instance
      connectOptions - the options for the connection
    • connect

      @CheckReturnValue public static io.smallrye.mutiny.Uni<OracleConnection> connect(Vertx vertx, String connectionUri)
      Like connect(io.vertx.mutiny.core.Vertx, io.vertx.oracleclient.OracleConnectOptions) with options built from connectionUri.

      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 uni firing 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 of connect(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 of connect(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 from connect(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:
      prepare in class SqlConnection
      Parameters:
      s -
      Returns:
      the uni firing the result of the operation when completed, or a failure if the operation failed.
    • prepareAndAwait

      public PreparedStatement prepareAndAwait(String s)
      Blocking variant of SqlConnection.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:
      prepareAndAwait in class SqlConnection
      Parameters:
      s -
      Returns:
      the PreparedStatement instance produced by the operation.
    • prepareAndForget

      public OracleConnection prepareAndForget(String s)
      Variant of SqlConnection.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 from SqlConnection.prepare(String) but you don't need to compose it with other operations.

      Overrides:
      prepareAndForget in class SqlConnection
      Parameters:
      s -
      Returns:
      the instance of OracleConnection to chain method calls.
    • exceptionHandler

      public OracleConnection exceptionHandler(Consumer<Throwable> handler)
      Overrides:
      exceptionHandler in class SqlConnection
      Parameters:
      handler -
      Returns:
    • closeHandler

      public OracleConnection closeHandler(Runnable handler)
      Overrides:
      closeHandler in class SqlConnection
      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)