Class MSSQLConnection
- All Implemented Interfaces:
MutinyDelegate
original
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMSSQLConnection
(io.vertx.mssqlclient.MSSQLConnection delegate) MSSQLConnection
(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionstatic MSSQLConnection
cast
(SqlConnection sqlConnection) closeHandler
(Runnable handler) static io.smallrye.mutiny.Uni<MSSQLConnection>
Create a connection to SQL Server with the givenconnectOptions
.static io.smallrye.mutiny.Uni<MSSQLConnection>
Likeconnect(io.vertx.mutiny.core.Vertx, io.vertx.mssqlclient.MSSQLConnectOptions)
with options built fromconnectionUri
.static MSSQLConnection
connectAndAwait
(Vertx vertx, io.vertx.mssqlclient.MSSQLConnectOptions connectOptions) Blocking variant ofconnect(io.vertx.mutiny.core.Vertx,MSSQLConnectOptions)
.static MSSQLConnection
connectAndAwait
(Vertx vertx, String connectionUri) Blocking variant ofconnect(io.vertx.mutiny.core.Vertx,String)
.static void
connectAndForget
(Vertx vertx, io.vertx.mssqlclient.MSSQLConnectOptions connectOptions) Variant ofconnect(io.vertx.mutiny.core.Vertx,MSSQLConnectOptions)
that ignores the result of the operation.static void
connectAndForget
(Vertx vertx, String connectionUri) Variant ofconnect(io.vertx.mutiny.core.Vertx,String)
that ignores the result of the operation.boolean
exceptionHandler
(Consumer<Throwable> handler) io.vertx.mssqlclient.MSSQLConnection
int
hashCode()
infoHandler
(Consumer<io.vertx.mssqlclient.MSSQLInfo> handler) static MSSQLConnection
newInstance
(io.vertx.mssqlclient.MSSQLConnection arg) io.smallrye.mutiny.Uni<PreparedStatement>
Unlike the bare Vert.x variant, this method returns aUni
.Blocking variant ofprepare(String)
.Variant ofprepare(String)
that ignores the result of the operation.toString()
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 Details
-
__TYPE_ARG
-
-
Constructor Details
-
MSSQLConnection
public MSSQLConnection(io.vertx.mssqlclient.MSSQLConnection delegate) -
MSSQLConnection
-
-
Method Details
-
getDelegate
public io.vertx.mssqlclient.MSSQLConnection getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Overrides:
getDelegate
in classSqlConnection
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
- Overrides:
toString
in classSqlConnection
-
equals
- Overrides:
equals
in classSqlConnection
-
hashCode
public int hashCode()- Overrides:
hashCode
in classSqlConnection
-
connect
@CheckReturnValue public static io.smallrye.mutiny.Uni<MSSQLConnection> connect(Vertx vertx, io.vertx.mssqlclient.MSSQLConnectOptions connectOptions) Create a connection to SQL Server 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
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
connectAndAwait
public static MSSQLConnection connectAndAwait(Vertx vertx, io.vertx.mssqlclient.MSSQLConnectOptions connectOptions) Blocking variant ofconnect(io.vertx.mutiny.core.Vertx,MSSQLConnectOptions)
.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 MSSQLConnection instance produced by the operation.
-
connectAndForget
public static void connectAndForget(Vertx vertx, io.vertx.mssqlclient.MSSQLConnectOptions connectOptions) Variant ofconnect(io.vertx.mutiny.core.Vertx,MSSQLConnectOptions)
that ignores the result of the operation.This method subscribes on the result of
connect(io.vertx.mutiny.core.Vertx,MSSQLConnectOptions)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromconnect(io.vertx.mutiny.core.Vertx,MSSQLConnectOptions)
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<MSSQLConnection> connect(Vertx vertx, String connectionUri) Likeconnect(io.vertx.mutiny.core.Vertx, io.vertx.mssqlclient.MSSQLConnectOptions)
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
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
connectAndAwait
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 MSSQLConnection instance produced by the operation.
-
connectAndForget
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
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 classSqlConnection
- Parameters:
s
-- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
prepareAndAwait
Blocking variant ofprepare(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 classSqlConnection
- Parameters:
s
-- Returns:
- the PreparedStatement instance produced by the operation.
-
prepareAndForget
Variant ofprepare(String)
that ignores the result of the operation.This method subscribes on the result of
prepare(String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromprepare(String)
but you don't need to compose it with other operations.- Overrides:
prepareAndForget
in classSqlConnection
- Parameters:
s
-- Returns:
- the instance of MSSQLConnection to chain method calls.
-
exceptionHandler
- Overrides:
exceptionHandler
in classSqlConnection
- Parameters:
handler
-- Returns:
-
closeHandler
- Overrides:
closeHandler
in classSqlConnection
- Parameters:
handler
-- Returns:
-
infoHandler
- Parameters:
handler
- the handler- Returns:
-
cast
- Parameters:
sqlConnection
- the connection to cast- Returns:
- a
instance
-
newInstance
-