Package io.vertx.reactivex.jdbcclient
Class JDBCConnection
- java.lang.Object
-
- io.vertx.reactivex.sqlclient.SqlClient
-
- io.vertx.reactivex.sqlclient.SqlConnection
-
- io.vertx.reactivex.jdbcclient.JDBCConnection
-
public class JDBCConnection extends SqlConnection
-
-
Field Summary
Fields Modifier and Type Field Description static io.vertx.lang.rx.TypeArg<JDBCConnection>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description JDBCConnection(JDBCConnection delegate)
JDBCConnection(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
JDBCConnection
getDelegate()
Future<Integer>
getTransactionIsolation()
int
hashCode()
static JDBCConnection
newInstance(JDBCConnection arg)
Single<Integer>
rxGetTransactionIsolation()
Completable
rxSetTransactionIsolation(int isolationLevel)
JDBCConnection
setQueryTimeout(int timeoutInSeconds)
Sets a connection wide query timeout.Future<Void>
setTransactionIsolation(int isolationLevel)
String
toString()
-
Methods inherited from class io.vertx.reactivex.sqlclient.SqlConnection
begin, closeHandler, databaseMetadata, exceptionHandler, isSSL, newInstance, prepare, prepare, rxBegin, rxPrepare, rxPrepare, transaction
-
Methods inherited from class io.vertx.reactivex.sqlclient.SqlClient
close, newInstance, preparedQuery, preparedQuery, query, rxClose
-
-
-
-
Field Detail
-
__TYPE_ARG
public static final io.vertx.lang.rx.TypeArg<JDBCConnection> __TYPE_ARG
-
-
Constructor Detail
-
JDBCConnection
public JDBCConnection(JDBCConnection delegate)
-
JDBCConnection
public JDBCConnection(Object delegate)
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toString
in classSqlConnection
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classSqlConnection
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classSqlConnection
-
getDelegate
public JDBCConnection getDelegate()
- Overrides:
getDelegate
in classSqlConnection
-
rxSetTransactionIsolation
public Completable rxSetTransactionIsolation(int isolationLevel)
-
setQueryTimeout
public JDBCConnection setQueryTimeout(int timeoutInSeconds)
Sets a connection wide query timeout. It can be over-written at any time and becomes active on the next query call.- Parameters:
timeoutInSeconds
- the max amount of seconds the query can take to execute.- Returns:
-
newInstance
public static JDBCConnection newInstance(JDBCConnection arg)
-
-