Package io.vertx.reactivex.mssqlclient
Class MSSQLConnection
- java.lang.Object
-
- io.vertx.reactivex.sqlclient.SqlClient
-
- io.vertx.reactivex.sqlclient.SqlConnection
-
- io.vertx.reactivex.mssqlclient.MSSQLConnection
-
public class MSSQLConnection extends SqlConnection
A connection to Microsoft SQL Server. NOTE: This class has been automatically generated from theoriginalnon RX-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<MSSQLConnection>__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description MSSQLConnection(MSSQLConnection delegate)MSSQLConnection(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MSSQLConnectioncast(SqlConnection sqlConnection)Cast a toMSSQLConnection.MSSQLConnectioncloseHandler(Handler<Void> handler)Set an handler called when the connection is closed.static voidconnect(Vertx vertx, MSSQLConnectOptions connectOptions)Create a connection to SQL Server with the givenconnectOptions.static voidconnect(Vertx vertx, MSSQLConnectOptions connectOptions, Handler<AsyncResult<MSSQLConnection>> handler)Create a connection to SQL Server with the givenconnectOptions.static voidconnect(Vertx vertx, String connectionUri)static voidconnect(Vertx vertx, String connectionUri, Handler<AsyncResult<MSSQLConnection>> handler)booleanequals(Object o)MSSQLConnectionexceptionHandler(Handler<Throwable> handler)Set an handler called with connection errors.MSSQLConnectiongetDelegate()inthashCode()MSSQLConnectioninfoHandler(Handler<MSSQLInfo> handler)Set a handler called when the connection receives an informational message from the server.static MSSQLConnectionnewInstance(MSSQLConnection arg)MSSQLConnectionprepare(String s)Create a prepared statement using the givensqlstring.MSSQLConnectionprepare(String s, Handler<AsyncResult<PreparedStatement>> handler)Create a prepared statement using the givensqlstring.static io.reactivex.Single<MSSQLConnection>rxConnect(Vertx vertx, MSSQLConnectOptions connectOptions)Create a connection to SQL Server with the givenconnectOptions.static io.reactivex.Single<MSSQLConnection>rxConnect(Vertx vertx, String connectionUri)io.reactivex.Single<PreparedStatement>rxPrepare(String s)Create a prepared statement using the givensqlstring.StringtoString()-
Methods inherited from class io.vertx.reactivex.sqlclient.SqlConnection
begin, begin, close, close, databaseMetadata, isSSL, newInstance, prepare, prepare, rxBegin, rxClose, rxPrepare, transaction
-
Methods inherited from class io.vertx.reactivex.sqlclient.SqlClient
newInstance, preparedQuery, preparedQuery, query
-
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<MSSQLConnection> __TYPE_ARG
-
-
Constructor Detail
-
MSSQLConnection
public MSSQLConnection(MSSQLConnection delegate)
-
MSSQLConnection
public MSSQLConnection(Object delegate)
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toStringin classSqlConnection
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classSqlConnection
-
hashCode
public int hashCode()
- Overrides:
hashCodein classSqlConnection
-
getDelegate
public MSSQLConnection getDelegate()
- Overrides:
getDelegatein classSqlConnection
-
connect
public static void connect(Vertx vertx, MSSQLConnectOptions connectOptions, Handler<AsyncResult<MSSQLConnection>> handler)
Create a connection to SQL Server with the givenconnectOptions.- Parameters:
vertx- the vertx instanceconnectOptions- the options for the connectionhandler- the handler called with the connection or the failure
-
connect
public static void connect(Vertx vertx, MSSQLConnectOptions connectOptions)
Create a connection to SQL Server with the givenconnectOptions.- Parameters:
vertx- the vertx instanceconnectOptions- the options for the connection
-
rxConnect
public static io.reactivex.Single<MSSQLConnection> rxConnect(Vertx vertx, MSSQLConnectOptions connectOptions)
Create a connection to SQL Server with the givenconnectOptions.- Parameters:
vertx- the vertx instanceconnectOptions- the options for the connection- Returns:
-
connect
public static void connect(Vertx vertx, String connectionUri, Handler<AsyncResult<MSSQLConnection>> handler)
Likeconnect(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 fromconnectionUri.- Parameters:
vertx-connectionUri-handler-
-
connect
public static void connect(Vertx vertx, String connectionUri)
Likeconnect(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 fromconnectionUri.- Parameters:
vertx-connectionUri-
-
rxConnect
public static io.reactivex.Single<MSSQLConnection> rxConnect(Vertx vertx, String connectionUri)
Likeconnect(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 fromconnectionUri.- Parameters:
vertx-connectionUri-- Returns:
-
prepare
public MSSQLConnection prepare(String s, Handler<AsyncResult<PreparedStatement>> handler)
Description copied from class:SqlConnectionCreate a prepared statement using the givensqlstring.- Overrides:
preparein classSqlConnection- Parameters:
s-handler-- Returns:
-
prepare
public MSSQLConnection prepare(String s)
Description copied from class:SqlConnectionCreate a prepared statement using the givensqlstring.- Overrides:
preparein classSqlConnection- Parameters:
s-- Returns:
-
rxPrepare
public io.reactivex.Single<PreparedStatement> rxPrepare(String s)
Description copied from class:SqlConnectionCreate a prepared statement using the givensqlstring.- Overrides:
rxPreparein classSqlConnection- Parameters:
s-- Returns:
-
exceptionHandler
public MSSQLConnection exceptionHandler(Handler<Throwable> handler)
Description copied from class:SqlConnectionSet an handler called with connection errors.- Overrides:
exceptionHandlerin classSqlConnection- Parameters:
handler-- Returns:
-
closeHandler
public MSSQLConnection closeHandler(Handler<Void> handler)
Description copied from class:SqlConnectionSet an handler called when the connection is closed.- Overrides:
closeHandlerin classSqlConnection- Parameters:
handler-- Returns:
-
infoHandler
public MSSQLConnection infoHandler(Handler<MSSQLInfo> handler)
Set a handler called when the connection receives an informational message from the server.- Parameters:
handler- the handler- Returns:
- a reference to this, so the API can be used fluently
-
cast
public static MSSQLConnection cast(SqlConnection sqlConnection)
Cast a toMSSQLConnection. This is mostly useful for Vert.x generated APIs like RxJava/Mutiny.- Parameters:
sqlConnection- the connection to cast- Returns:
- a
instance
-
newInstance
public static MSSQLConnection newInstance(MSSQLConnection arg)
-
-