public class MSSQLConnection extends SqlConnection
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<MSSQLConnection> |
__TYPE_ARG |
Constructor and Description |
---|
MSSQLConnection(MSSQLConnection delegate) |
MSSQLConnection(Object delegate) |
Modifier and Type | Method and Description |
---|---|
static MSSQLConnection |
cast(SqlConnection sqlConnection)
Cast a to
MSSQLConnection . |
MSSQLConnection |
closeHandler(Handler<Void> handler)
Set an handler called when the connection is closed.
|
static Single<MSSQLConnection> |
connect(Vertx vertx,
MSSQLConnectOptions connectOptions)
Create a connection to SQL Server with the given
connectOptions . |
static Single<MSSQLConnection> |
connect(Vertx vertx,
String connectionUri)
Like
connect(io.vertx.rxjava3.core.Vertx, io.vertx.mssqlclient.MSSQLConnectOptions) with options built from connectionUri . |
boolean |
equals(Object o) |
MSSQLConnection |
exceptionHandler(Handler<Throwable> handler)
Set an handler called with connection errors.
|
MSSQLConnection |
getDelegate() |
int |
hashCode() |
static MSSQLConnection |
newInstance(MSSQLConnection arg) |
Single<PreparedStatement> |
prepare(String s)
Create a prepared statement using the given
sql string. |
static Single<MSSQLConnection> |
rxConnect(Vertx vertx,
MSSQLConnectOptions connectOptions)
Create a connection to SQL Server with the given
connectOptions . |
static Single<MSSQLConnection> |
rxConnect(Vertx vertx,
String connectionUri)
Like
connect(io.vertx.rxjava3.core.Vertx, io.vertx.mssqlclient.MSSQLConnectOptions) with options built from connectionUri . |
Single<PreparedStatement> |
rxPrepare(String s)
Create a prepared statement using the given
sql string. |
String |
toString() |
begin, close, databaseMetadata, isSSL, newInstance, prepare, rxBegin, rxClose, rxPrepare
newInstance, preparedQuery, preparedQuery, query
public static final io.vertx.lang.rx.TypeArg<MSSQLConnection> __TYPE_ARG
public MSSQLConnection(MSSQLConnection delegate)
public MSSQLConnection(Object delegate)
public String toString()
toString
in class SqlConnection
public boolean equals(Object o)
equals
in class SqlConnection
public int hashCode()
hashCode
in class SqlConnection
public MSSQLConnection getDelegate()
getDelegate
in class SqlConnection
public static Single<MSSQLConnection> connect(Vertx vertx, MSSQLConnectOptions connectOptions)
connectOptions
.vertx
- the vertx instanceconnectOptions
- the options for the connectionpublic static Single<MSSQLConnection> rxConnect(Vertx vertx, MSSQLConnectOptions connectOptions)
connectOptions
.vertx
- the vertx instanceconnectOptions
- the options for the connectionpublic static Single<MSSQLConnection> connect(Vertx vertx, String connectionUri)
connect(io.vertx.rxjava3.core.Vertx, io.vertx.mssqlclient.MSSQLConnectOptions)
with options built from connectionUri
.vertx
- connectionUri
- public static Single<MSSQLConnection> rxConnect(Vertx vertx, String connectionUri)
connect(io.vertx.rxjava3.core.Vertx, io.vertx.mssqlclient.MSSQLConnectOptions)
with options built from connectionUri
.vertx
- connectionUri
- public Single<PreparedStatement> prepare(String s)
SqlConnection
sql
string.prepare
in class SqlConnection
s
- public Single<PreparedStatement> rxPrepare(String s)
SqlConnection
sql
string.rxPrepare
in class SqlConnection
s
- public MSSQLConnection exceptionHandler(Handler<Throwable> handler)
SqlConnection
exceptionHandler
in class SqlConnection
handler
- public MSSQLConnection closeHandler(Handler<Void> handler)
SqlConnection
closeHandler
in class SqlConnection
handler
- public static MSSQLConnection cast(SqlConnection sqlConnection)
MSSQLConnection
.
This is mostly useful for Vert.x generated APIs like RxJava/Mutiny.sqlConnection
- the connection to castinstance
public static MSSQLConnection newInstance(MSSQLConnection arg)
Copyright © 2022 Eclipse. All rights reserved.