Package io.vertx.mutiny.jdbcclient
Class JDBCPool
java.lang.Object
io.vertx.mutiny.sqlclient.SqlClient
io.vertx.mutiny.sqlclient.Pool
io.vertx.mutiny.jdbcclient.JDBCPool
- All Implemented Interfaces:
MutinyDelegate
JDBCPool is the interface that allows using the Sql Client API with plain JDBC.
NOTE: This class has been automatically generated from the
original
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Supplier<io.vertx.ext.jdbc.spi.DataSourceProvider>
The default data source provider for this pool, loaded from JVM system properties with the key.static final PropertyKind<Row>
The property to be used to retrieve the 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 TypeMethodDescriptionboolean
io.vertx.jdbcclient.JDBCPool
int
hashCode()
static JDBCPool
newInstance
(io.vertx.jdbcclient.JDBCPool arg) static JDBCPool
Deprecated.static JDBCPool
static JDBCPool
pool
(Vertx vertx, io.vertx.jdbcclient.JDBCConnectOptions connectOptions, io.vertx.sqlclient.PoolOptions poolOptions) static JDBCPool
pool
(Vertx vertx, io.vertx.jdbcclient.JDBCConnectOptions connectOptions, io.vertx.sqlclient.PoolOptions poolOptions, io.vertx.ext.jdbc.spi.DataSourceProvider provider) static JDBCPool
pool
(Vertx vertx, DataSource dataSource) static JDBCPool
pool
(Vertx vertx, DataSource dataSource, io.vertx.core.json.JsonObject config) Deprecated.toString()
Methods inherited from class io.vertx.mutiny.sqlclient.Pool
close, closeAndAwait, closeAndForget, connectHandler, connectionProvider, getConnection, getConnectionAndAwait, getConnectionAndForget, newInstance, pool, pool, pool, preparedQuery, query, size, withConnection, withConnectionAndAwait, withConnectionAndForget, withTransaction, withTransaction, withTransactionAndAwait, withTransactionAndAwait, withTransactionAndForget, withTransactionAndForget
Methods inherited from class io.vertx.mutiny.sqlclient.SqlClient
newInstance, preparedQuery
-
Field Details
-
__TYPE_ARG
-
DEFAULT_DATA_SOURCE_PROVIDER
The default data source provider for this pool, loaded from JVM system properties with the key. The value can be one of:- C3P0:
- Hikari:
- Agroal:
-
GENERATED_KEYS
The property to be used to retrieve the generated keys -
OUTPUT
The property to be used to retrieve the output of the callable statement
-
-
Constructor Details
-
JDBCPool
public JDBCPool(io.vertx.jdbcclient.JDBCPool delegate) -
JDBCPool
-
-
Method Details
-
getDelegate
public io.vertx.jdbcclient.JDBCPool getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Overrides:
getDelegate
in classPool
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
pool
public static JDBCPool pool(Vertx vertx, io.vertx.jdbcclient.JDBCConnectOptions connectOptions, io.vertx.sqlclient.PoolOptions poolOptions) - Parameters:
vertx
- the Vert.x instanceconnectOptions
- the options to configure the connectionpoolOptions
- the connection pool options- Returns:
- the client
-
pool
Deprecated.instead usepool(Vertx, JDBCConnectOptions, PoolOptions)
- Parameters:
vertx
- the Vert.x instanceconfig
- the options to configure the client using the same format asJDBCClient
- Returns:
- the client
-
pool
public static JDBCPool pool(Vertx vertx, io.vertx.jdbcclient.JDBCConnectOptions connectOptions, io.vertx.sqlclient.PoolOptions poolOptions, io.vertx.ext.jdbc.spi.DataSourceProvider provider) - Parameters:
vertx
- the Vert.x instanceconnectOptions
- the options to configure the connectionpoolOptions
- the connection pool optionsprovider
- the data source provider- Returns:
- the client
-
pool
public static JDBCPool pool(Vertx vertx, io.vertx.ext.jdbc.spi.DataSourceProvider dataSourceProvider) - Parameters:
vertx
- the Vert.x instancedataSourceProvider
- the options to configure the client using the same format asJDBCClient
- Returns:
- the client
-
pool
- Parameters:
vertx
- the Vert.x instancedataSource
- a pre-initialized data source- Returns:
- the client
-
pool
@Deprecated public static JDBCPool pool(Vertx vertx, DataSource dataSource, io.vertx.core.json.JsonObject config) Deprecated.- Parameters:
vertx
- the Vert.x instancedataSource
- a pre-initialized data sourceconfig
- the pool configuration- Returns:
- the client
-
newInstance
-
pool(Vertx, JDBCConnectOptions, PoolOptions)