Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<JDBCPool> |
__TYPE_ARG |
static java.util.function.Supplier<DataSourceProvider> |
DEFAULT_DATA_SOURCE_PROVIDER
The default data source provider for this pool,
loaded from JVM system properties with the key.
|
static PropertyKind<Row> |
GENERATED_KEYS
The property to be used to retrieve the generated keys
|
static PropertyKind<Boolean> |
OUTPUT
The property to be used to retrieve the output of the callable statement
|
Constructor and Description |
---|
JDBCPool(JDBCPool delegate) |
JDBCPool(Object delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
JDBCPool |
getDelegate() |
int |
hashCode() |
static JDBCPool |
newInstance(JDBCPool arg) |
static JDBCPool |
pool(Vertx vertx,
DataSource dataSource)
Create a JDBC pool using a pre-initialized data source.
|
static JDBCPool |
pool(Vertx vertx,
DataSource dataSource,
JsonObject config)
Deprecated.
|
static JDBCPool |
pool(Vertx vertx,
DataSourceProvider dataSourceProvider)
Create a JDBC pool which maintains its own data source.
|
static JDBCPool |
pool(Vertx vertx,
JDBCConnectOptions connectOptions,
PoolOptions poolOptions)
Create a JDBC pool which maintains its own data source and the
#DEFAULT_DATA_SOURCE_PROVIDER default data source provider . |
static JDBCPool |
pool(Vertx vertx,
JDBCConnectOptions connectOptions,
PoolOptions poolOptions,
DataSourceProvider provider)
Create a JDBC pool which maintains its own data source, with the specified provider
|
static JDBCPool |
pool(Vertx vertx,
JsonObject config)
Deprecated.
|
String |
toString() |
close, close, connectHandler, connectionProvider, getConnection, getConnection, newInstance, pool, pool, pool, preparedQuery, query, rxClose, rxGetConnection, rxWithConnection, rxWithTransaction, rxWithTransaction, size, withConnection, withConnection, withTransaction, withTransaction, withTransaction, withTransaction
newInstance, preparedQuery
public static final io.vertx.lang.rx.TypeArg<JDBCPool> __TYPE_ARG
public static final java.util.function.Supplier<DataSourceProvider> DEFAULT_DATA_SOURCE_PROVIDER
public static final PropertyKind<Row> GENERATED_KEYS
public static final PropertyKind<Boolean> OUTPUT
public JDBCPool(JDBCPool delegate)
public JDBCPool(Object delegate)
public JDBCPool getDelegate()
getDelegate
in class Pool
public static JDBCPool pool(Vertx vertx, JDBCConnectOptions connectOptions, PoolOptions poolOptions)
#DEFAULT_DATA_SOURCE_PROVIDER default data source provider
.vertx
- the Vert.x instanceconnectOptions
- the options to configure the connectionpoolOptions
- the connection pool options@Deprecated public static JDBCPool pool(Vertx vertx, JsonObject config)
vertx
- the Vert.x instanceconfig
- the options to configure the client using the same format as JDBCClient
public static JDBCPool pool(Vertx vertx, JDBCConnectOptions connectOptions, PoolOptions poolOptions, DataSourceProvider provider)
vertx
- the Vert.x instanceconnectOptions
- the options to configure the connectionpoolOptions
- the connection pool optionsprovider
- the data source providerpublic static JDBCPool pool(Vertx vertx, DataSourceProvider dataSourceProvider)
vertx
- the Vert.x instancedataSourceProvider
- the options to configure the client using the same format as JDBCClient
public static JDBCPool pool(Vertx vertx, DataSource dataSource)
vertx
- the Vert.x instancedataSource
- a pre-initialized data source@Deprecated public static JDBCPool pool(Vertx vertx, DataSource dataSource, JsonObject config)
url
- the connection stringuser
- the connection user namedatabase
- the database namemaxPoolSize
- the max allowed number of connections in the poolvertx
- the Vert.x instancedataSource
- a pre-initialized data sourceconfig
- the pool configurationCopyright © 2024 Eclipse. All rights reserved.