public class MSSQLConnection extends SqlConnection
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static TypeArg<MSSQLConnection> |
__TYPE_ARG |
Constructor and Description |
---|
MSSQLConnection(MSSQLConnection delegate) |
MSSQLConnection(Object delegate) |
begin, begin, close, close, databaseMetadata, isSSL, newInstance, prepare, prepare, rxBegin, rxClose, rxPrepare
newInstance, preparedQuery, preparedQuery, query
public static final 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 rx.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.rxjava.core.Vertx, io.vertx.mssqlclient.MSSQLConnectOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.rxjava.mssqlclient.MSSQLConnection>>)
with options built from connectionUri
.vertx
- connectionUri
- handler
- public static void connect(Vertx vertx, String connectionUri)
connect(io.vertx.rxjava.core.Vertx, io.vertx.mssqlclient.MSSQLConnectOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.rxjava.mssqlclient.MSSQLConnection>>)
with options built from connectionUri
.vertx
- connectionUri
- public static rx.Single<MSSQLConnection> rxConnect(Vertx vertx, String connectionUri)
connect(io.vertx.rxjava.core.Vertx, io.vertx.mssqlclient.MSSQLConnectOptions, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.rxjava.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 rx.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.