Modifier and Type | Field and Description |
---|---|
static TypeArg<MySQLPool> |
__TYPE_ARG |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
MySQLPool |
getDelegate() |
int |
hashCode() |
static MySQLPool |
newInstance(MySQLPool arg) |
static MySQLPool |
pool(MySQLConnectOptions connectOptions,
PoolOptions poolOptions)
Create a connection pool to the MySQL server configured with the given
connectOptions and poolOptions . |
static MySQLPool |
pool(String connectionUri)
Like
pool(java.lang.String) with a default poolOptions . |
static MySQLPool |
pool(String connectionUri,
PoolOptions poolOptions)
|
static MySQLPool |
pool(Vertx vertx,
MySQLConnectOptions connectOptions,
PoolOptions poolOptions)
Like
pool(java.lang.String) with a specific instance. |
static MySQLPool |
pool(Vertx vertx,
String connectionUri,
PoolOptions poolOptions)
|
MySQLPool |
preparedBatch(String sql,
List<Tuple> batch,
Handler<AsyncResult<RowSet>> handler)
Prepare and execute a createBatch.
|
MySQLPool |
preparedQuery(String sql,
Handler<AsyncResult<RowSet>> handler)
Prepare and execute a query.
|
MySQLPool |
preparedQuery(String sql,
Tuple arguments,
Handler<AsyncResult<RowSet>> handler)
Prepare and execute a query.
|
MySQLPool |
query(String sql,
Handler<AsyncResult<RowSet>> handler)
Execute a simple query.
|
rx.Single<RowSet> |
rxPreparedBatch(String sql,
List<Tuple> batch)
Prepare and execute a createBatch.
|
rx.Single<RowSet> |
rxPreparedQuery(String sql)
Prepare and execute a query.
|
rx.Single<RowSet> |
rxPreparedQuery(String sql,
Tuple arguments)
Prepare and execute a query.
|
rx.Single<RowSet> |
rxQuery(String sql)
Execute a simple query.
|
String |
toString() |
begin, close, getConnection, newInstance, rxBegin, rxGetConnection
newInstance
public MySQLPool(MySQLPool delegate)
public MySQLPool getDelegate()
getDelegate
in class Pool
public static MySQLPool pool(String connectionUri)
pool(java.lang.String)
with a default poolOptions
.connectionUri
- public static MySQLPool pool(String connectionUri, PoolOptions poolOptions)
connectionUri
- poolOptions
- public static MySQLPool pool(Vertx vertx, String connectionUri, PoolOptions poolOptions)
vertx
- connectionUri
- poolOptions
- public static MySQLPool pool(MySQLConnectOptions connectOptions, PoolOptions poolOptions)
connectOptions
and poolOptions
.connectOptions
- the options for the connectionpoolOptions
- the options for creating the poolpublic static MySQLPool pool(Vertx vertx, MySQLConnectOptions connectOptions, PoolOptions poolOptions)
pool(java.lang.String)
with a specific instance.vertx
- connectOptions
- poolOptions
- public MySQLPool preparedQuery(String sql, Handler<AsyncResult<RowSet>> handler)
SqlClient
preparedQuery
in class Pool
sql
- the prepared query SQLhandler
- the handler notified with the execution resultpublic rx.Single<RowSet> rxPreparedQuery(String sql)
SqlClient
rxPreparedQuery
in class Pool
sql
- the prepared query SQLpublic MySQLPool query(String sql, Handler<AsyncResult<RowSet>> handler)
SqlClient
public rx.Single<RowSet> rxQuery(String sql)
SqlClient
public MySQLPool preparedQuery(String sql, Tuple arguments, Handler<AsyncResult<RowSet>> handler)
SqlClient
preparedQuery
in class Pool
sql
- the prepared query SQLarguments
- the list of argumentshandler
- the handler notified with the execution resultpublic rx.Single<RowSet> rxPreparedQuery(String sql, Tuple arguments)
SqlClient
rxPreparedQuery
in class Pool
sql
- the prepared query SQLarguments
- the list of argumentspublic MySQLPool preparedBatch(String sql, List<Tuple> batch, Handler<AsyncResult<RowSet>> handler)
SqlClient
preparedBatch
in class Pool
sql
- the prepared query SQLbatch
- the batch of tupleshandler
- the handler notified with the execution resultpublic rx.Single<RowSet> rxPreparedBatch(String sql, List<Tuple> batch)
SqlClient
rxPreparedBatch
in class Pool
sql
- the prepared query SQLbatch
- the batch of tuplesCopyright © 2019 Eclipse. All rights reserved.