Package io.vertx.rxjava.jdbcclient
Class JDBCPool
- java.lang.Object
-
- io.vertx.rxjava.sqlclient.SqlClient
-
- io.vertx.rxjava.sqlclient.Pool
-
- io.vertx.rxjava.jdbcclient.JDBCPool
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<JDBCPool>__TYPE_ARGstatic PropertyKind<Row>GENERATED_KEYSThe property to be used to retrieve the generated keysstatic PropertyKind<Boolean>OUTPUTThe property to be used to retrieve the output of the callable statement
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)JDBCPoolgetDelegate()inthashCode()static JDBCPoolnewInstance(JDBCPool arg)static JDBCPoolpool(Vertx vertx, JsonObject config)Create a JDBC pool which maintains its own data source.static JDBCPoolpool(Vertx vertx, DataSourceProvider dataSourceProvider)Create a JDBC pool which maintains its own data source.static JDBCPoolpool(Vertx vertx, JDBCConnectOptions connectOptions, PoolOptions poolOptions)Create a JDBC pool which maintains its own data source.static JDBCPoolpool(Vertx vertx, DataSource dataSource)Create a JDBC pool using a pre-initialized data source.static JDBCPoolpool(Vertx vertx, DataSource dataSource, JsonObject config)Create a JDBC pool using a pre-initialized data source.StringtoString()-
Methods inherited from class io.vertx.rxjava.sqlclient.Pool
close, close, connectHandler, connectionProvider, getConnection, getConnection, newInstance, pool, pool, pool, preparedQuery, query, rxClose, rxGetConnection, rxWithConnection, rxWithTransaction, rxWithTransaction, size, withConnection, withConnection, withTransaction, withTransaction, withTransaction, withTransaction
-
Methods inherited from class io.vertx.rxjava.sqlclient.SqlClient
newInstance, preparedQuery
-
-
-
-
Field Detail
-
GENERATED_KEYS
public static final PropertyKind<Row> GENERATED_KEYS
The property to be used to retrieve the generated keys
-
OUTPUT
public static final PropertyKind<Boolean> OUTPUT
The property to be used to retrieve the output of the callable statement
-
-
Method Detail
-
getDelegate
public JDBCPool getDelegate()
- Overrides:
getDelegatein classPool
-
pool
public static JDBCPool pool(Vertx vertx, JDBCConnectOptions connectOptions, PoolOptions poolOptions)
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
public static JDBCPool pool(Vertx vertx, JsonObject config)
Create a JDBC pool which maintains its own data source.- 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, DataSourceProvider dataSourceProvider)
Create a JDBC pool which maintains its own data source.- Parameters:
vertx- the Vert.x instancedataSourceProvider- the options to configure the client using the same format asJDBCClient- Returns:
- the client
-
pool
public static JDBCPool pool(Vertx vertx, DataSource dataSource)
Create a JDBC pool using a pre-initialized data source.- Parameters:
vertx- the Vert.x instancedataSource- a pre-initialized data source- Returns:
- the client
-
pool
public static JDBCPool pool(Vertx vertx, DataSource dataSource, JsonObject config)
Create a JDBC pool using a pre-initialized data source. The config expects that at least the following properties are set:url- the connection stringuser- the connection user namedatabase- the database namemaxPoolSize- the max allowed number of connections in the pool
- Parameters:
vertx- the Vert.x instancedataSource- a pre-initialized data sourceconfig- the pool configuration- Returns:
- the client
-
-