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() |
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, rxPreparenewInstance, preparedQuery, preparedQuery, querypublic static final io.vertx.lang.rx.TypeArg<MSSQLConnection> __TYPE_ARG
public MSSQLConnection(MSSQLConnection delegate)
public MSSQLConnection(Object delegate)
public String toString()
toString in class SqlConnectionpublic boolean equals(Object o)
equals in class SqlConnectionpublic int hashCode()
hashCode in class SqlConnectionpublic MSSQLConnection getDelegate()
getDelegate in class SqlConnectionpublic 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)
SqlConnectionsql string.prepare in class SqlConnections - handler - public MSSQLConnection prepare(String s)
SqlConnectionsql string.prepare in class SqlConnections - public Single<PreparedStatement> rxPrepare(String s)
SqlConnectionsql string.rxPrepare in class SqlConnections - public MSSQLConnection exceptionHandler(Handler<Throwable> handler)
SqlConnectionexceptionHandler in class SqlConnectionhandler - public MSSQLConnection closeHandler(Handler<Void> handler)
SqlConnectioncloseHandler in class SqlConnectionhandler - public static MSSQLConnection cast(SqlConnection sqlConnection)
MSSQLConnection.
This is mostly useful for Vert.x generated APIs like RxJava/Mutiny.sqlConnection - the connection to castinstancepublic static MSSQLConnection newInstance(MSSQLConnection arg)
Copyright © 2022 Eclipse. All rights reserved.