Class JDBCPool
java.lang.Object
io.vertx.reactivex.sqlclient.SqlClient
io.vertx.reactivex.sqlclient.Pool
io.vertx.reactivex.jdbcclient.JDBCPool
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.vertx.lang.rx.TypeArg<JDBCPool> static final PropertyKind<Row> The property to be used to retrieve the generated keys Only the first row will be presentstatic final PropertyKind<RowsList> Property used to get the full list of generated keysstatic final PropertyKind<Boolean> The property to be used to retrieve the output of the callable statement -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()static JDBCPoolnewInstance(JDBCPool arg) static Poolpool(Vertx vertx, JDBCConnectOptions connectOptions, PoolOptions poolOptions) Create a JDBC pool which maintains its own data source.static Poolpool(Vertx vertx, DataSource dataSource, PoolOptions poolOptions) Create a JDBC pool using a pre-initialized data source, note this data source does not need to be a pool.toString()Methods inherited from class Pool
getConnection, newInstance, pool, pool, pool, preparedQuery, query, rxGetConnection, rxWithConnection, rxWithConnection, rxWithTransaction, rxWithTransaction, rxWithTransaction, rxWithTransaction, size, withConnection, withConnection, withTransaction, withTransaction, withTransaction, withTransactionMethods inherited from class SqlClient
close, newInstance, preparedQuery, rxClose
-
Field Details
-
__TYPE_ARG
-
GENERATED_KEYS
The property to be used to retrieve the generated keys Only the first row will be present -
GENERATED_KEYS_LIST
Property used to get the full list of generated keys -
OUTPUT
The property to be used to retrieve the output of the callable statement
-
-
Constructor Details
-
JDBCPool
-
JDBCPool
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate- Overrides:
getDelegatein classPool
-
pool
Create a JDBC pool which maintains its own data source.- Parameters:
vertx- the Vert.x instanceconnectOptions- the options to configure the connectionpoolOptions- the connection pool options- Returns:
- the client
-
pool
Create a JDBC pool using a pre-initialized data source, note this data source does not need to be a pool.- Parameters:
vertx- the Vert.x instancedataSource- a pre-initialized data sourcepoolOptions-- Returns:
- the client
-
newInstance
-