public class SqlClient extends Object
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static TypeArg<SqlClient> |
__TYPE_ARG |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the client and release the associated resources.
|
boolean |
equals(Object o) |
SqlClient |
getDelegate() |
int |
hashCode() |
static SqlClient |
newInstance(SqlClient arg) |
SqlClient |
preparedBatch(String sql,
List<Tuple> batch,
Handler<AsyncResult<RowSet>> handler)
Prepare and execute a createBatch.
|
SqlClient |
preparedQuery(String sql,
Handler<AsyncResult<RowSet>> handler)
Prepare and execute a query.
|
SqlClient |
preparedQuery(String sql,
Tuple arguments,
Handler<AsyncResult<RowSet>> handler)
Prepare and execute a query.
|
SqlClient |
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() |
public SqlClient(SqlClient delegate)
public SqlClient getDelegate()
public SqlClient query(String sql, Handler<AsyncResult<RowSet>> handler)
sql
- the query SQLhandler
- the handler notified with the execution resultpublic rx.Single<RowSet> rxQuery(String sql)
sql
- the query SQLpublic SqlClient preparedQuery(String sql, Handler<AsyncResult<RowSet>> handler)
sql
- the prepared query SQLhandler
- the handler notified with the execution resultpublic rx.Single<RowSet> rxPreparedQuery(String sql)
sql
- the prepared query SQLpublic SqlClient preparedQuery(String sql, Tuple arguments, Handler<AsyncResult<RowSet>> handler)
sql
- the prepared query SQLarguments
- the list of argumentshandler
- the handler notified with the execution resultpublic rx.Single<RowSet> rxPreparedQuery(String sql, Tuple arguments)
sql
- the prepared query SQLarguments
- the list of argumentspublic SqlClient preparedBatch(String sql, List<Tuple> batch, Handler<AsyncResult<RowSet>> handler)
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)
sql
- the prepared query SQLbatch
- the batch of tuplespublic void close()
Copyright © 2019 Eclipse. All rights reserved.