Modifier and Type | Field and Description |
---|---|
static TypeArg<Pool> |
__TYPE_ARG |
Modifier and Type | Method and Description |
---|---|
void |
begin()
Borrow a connection from the pool and begin a transaction, the underlying connection will be returned
to the pool when the transaction ends.
|
void |
begin(Handler<AsyncResult<Transaction>> handler)
Borrow a connection from the pool and begin a transaction, the underlying connection will be returned
to the pool when the transaction ends.
|
void |
close()
Close the pool and release the associated resources.
|
boolean |
equals(Object o) |
void |
getConnection()
Get a connection from the pool.
|
void |
getConnection(Handler<AsyncResult<SqlConnection>> handler)
Get a connection from the pool.
|
Pool |
getDelegate() |
int |
hashCode() |
static Pool |
newInstance(Pool arg) |
Pool |
preparedBatch(String sql,
List<Tuple> batch)
Prepare and execute a createBatch.
|
Pool |
preparedBatch(String sql,
List<Tuple> batch,
Handler<AsyncResult<RowSet>> handler)
Prepare and execute a createBatch.
|
Pool |
preparedQuery(String sql)
Prepare and execute a query.
|
Pool |
preparedQuery(String sql,
Handler<AsyncResult<RowSet>> handler)
Prepare and execute a query.
|
Pool |
preparedQuery(String sql,
Tuple arguments)
Prepare and execute a query.
|
Pool |
preparedQuery(String sql,
Tuple arguments,
Handler<AsyncResult<RowSet>> handler)
Prepare and execute a query.
|
Pool |
query(String sql)
Execute a simple query.
|
Pool |
query(String sql,
Handler<AsyncResult<RowSet>> handler)
Execute a simple query.
|
rx.Single<Transaction> |
rxBegin()
Borrow a connection from the pool and begin a transaction, the underlying connection will be returned
to the pool when the transaction ends.
|
rx.Single<SqlConnection> |
rxGetConnection()
Get a connection from the pool.
|
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() |
newInstance
public Pool(Pool delegate)
public Pool getDelegate()
getDelegate
in class SqlClient
public Pool preparedQuery(String sql, Handler<AsyncResult<RowSet>> handler)
SqlClient
preparedQuery
in class SqlClient
sql
- the prepared query SQLhandler
- the handler notified with the execution resultpublic Pool preparedQuery(String sql)
SqlClient
preparedQuery
in class SqlClient
sql
- the prepared query SQLpublic rx.Single<RowSet> rxPreparedQuery(String sql)
SqlClient
rxPreparedQuery
in class SqlClient
sql
- the prepared query SQLpublic Pool query(String sql, Handler<AsyncResult<RowSet>> handler)
SqlClient
public Pool query(String sql)
SqlClient
public rx.Single<RowSet> rxQuery(String sql)
SqlClient
public Pool preparedQuery(String sql, Tuple arguments, Handler<AsyncResult<RowSet>> handler)
SqlClient
preparedQuery
in class SqlClient
sql
- the prepared query SQLarguments
- the list of argumentshandler
- the handler notified with the execution resultpublic Pool preparedQuery(String sql, Tuple arguments)
SqlClient
preparedQuery
in class SqlClient
sql
- the prepared query SQLarguments
- the list of argumentspublic rx.Single<RowSet> rxPreparedQuery(String sql, Tuple arguments)
SqlClient
rxPreparedQuery
in class SqlClient
sql
- the prepared query SQLarguments
- the list of argumentspublic Pool preparedBatch(String sql, List<Tuple> batch, Handler<AsyncResult<RowSet>> handler)
SqlClient
preparedBatch
in class SqlClient
sql
- the prepared query SQLbatch
- the batch of tupleshandler
- the handler notified with the execution resultpublic Pool preparedBatch(String sql, List<Tuple> batch)
SqlClient
preparedBatch
in class SqlClient
sql
- the prepared query SQLbatch
- the batch of tuplespublic rx.Single<RowSet> rxPreparedBatch(String sql, List<Tuple> batch)
SqlClient
rxPreparedBatch
in class SqlClient
sql
- the prepared query SQLbatch
- the batch of tuplespublic void getConnection(Handler<AsyncResult<SqlConnection>> handler)
handler
- the handler that will get the connection resultpublic void getConnection()
public rx.Single<SqlConnection> rxGetConnection()
public void begin(Handler<AsyncResult<Transaction>> handler)
handler
- public void begin()
public rx.Single<Transaction> rxBegin()
public void close()
Copyright © 2019 Eclipse. All rights reserved.