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 void |
connect(Vertx vertx,
MSSQLConnectOptions connectOptions)
Create a connection to SQL Server with the given
connectOptions . |
static void |
connect(Vertx vertx,
MSSQLConnectOptions connectOptions,
Handler<AsyncResult<MSSQLConnection>> handler)
Create a connection to SQL Server with the given
connectOptions . |
static void |
connect(Vertx vertx,
String connectionUri)
|
static void |
connect(Vertx vertx,
String connectionUri,
Handler<AsyncResult<MSSQLConnection>> handler)
|
boolean |
equals(Object o) |
MSSQLConnection |
exceptionHandler(Handler<Throwable> handler)
Set an handler called with connection errors.
|
MSSQLConnection |
getDelegate() |
int |
hashCode() |
MSSQLConnection |
infoHandler(Handler<MSSQLInfo> handler)
Set a handler called when the connection receives an informational message from the server.
|
static MSSQLConnection |
newInstance(MSSQLConnection arg) |
MSSQLConnection |
prepare(String s)
Create a prepared statement using the given
sql string. |
MSSQLConnection |
prepare(String s,
Handler<AsyncResult<PreparedStatement>> handler)
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)
|
Single<PreparedStatement> |
rxPrepare(String s)
Create a prepared statement using the given
sql string. |
String |
toString() |
begin, begin, close, close, databaseMetadata, isSSL, newInstance, prepare, prepare, rxBegin, rxClose, rxPrepare, transaction
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 void connect(Vertx vertx, MSSQLConnectOptions connectOptions, Handler<AsyncResult<MSSQLConnection>> handler)
connectOptions
.vertx
- the vertx instanceconnectOptions
- the options for the connectionhandler
- the handler called with the connection or the failurepublic static void 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 void connect(Vertx vertx, String connectionUri, Handler<AsyncResult<MSSQLConnection>> handler)
connect(io.vertx.reactivex.core.Vertx, io.vertx.mssqlclient.MSSQLConnectOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.reactivex.mssqlclient.MSSQLConnection>>)
with options built from connectionUri
.vertx
- connectionUri
- handler
- public static void connect(Vertx vertx, String connectionUri)
connect(io.vertx.reactivex.core.Vertx, io.vertx.mssqlclient.MSSQLConnectOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.reactivex.mssqlclient.MSSQLConnection>>)
with options built from connectionUri
.vertx
- connectionUri
- public static Single<MSSQLConnection> rxConnect(Vertx vertx, String connectionUri)
connect(io.vertx.reactivex.core.Vertx, io.vertx.mssqlclient.MSSQLConnectOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.reactivex.mssqlclient.MSSQLConnection>>)
with options built from connectionUri
.vertx
- connectionUri
- public MSSQLConnection prepare(String s, Handler<AsyncResult<PreparedStatement>> handler)
SqlConnection
sql
string.prepare
in class SqlConnection
s
- handler
- public MSSQLConnection 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 MSSQLConnection infoHandler(Handler<MSSQLInfo> handler)
handler
- the handlerpublic 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 © 2023 Eclipse. All rights reserved.