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 |
Constructor and Description |
---|
SqlClient(Object delegate) |
SqlClient(io.vertx.sqlclient.SqlClient delegate) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the client and release the associated resources.
|
void |
close(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
Close the client and release the associated resources.
|
boolean |
equals(Object o) |
io.vertx.sqlclient.SqlClient |
getDelegate() |
int |
hashCode() |
static SqlClient |
newInstance(io.vertx.sqlclient.SqlClient arg) |
PreparedQuery<RowSet<Row>> |
preparedQuery(String sql)
Create a prepared query, one of the
Query.execute(io.vertx.core.Handler<io.vertx.core.AsyncResult<T>>) or PreparedQuery.executeBatch(java.util.List<io.vertx.rxjava.sqlclient.Tuple>, io.vertx.core.Handler<io.vertx.core.AsyncResult<T>>)
methods must be called to execute the query. |
Query<RowSet<Row>> |
query(String sql)
Create a query, the
Query.execute(io.vertx.core.Handler<io.vertx.core.AsyncResult<T>>) method must be called to execute the query. |
rx.Single<Void> |
rxClose()
Close the client and release the associated resources.
|
String |
toString() |
public SqlClient(io.vertx.sqlclient.SqlClient delegate)
public SqlClient(Object delegate)
public io.vertx.sqlclient.SqlClient getDelegate()
public Query<RowSet<Row>> query(String sql)
Query.execute(io.vertx.core.Handler<io.vertx.core.AsyncResult<T>>)
method must be called to execute the query.sql
- public PreparedQuery<RowSet<Row>> preparedQuery(String sql)
Query.execute(io.vertx.core.Handler<io.vertx.core.AsyncResult<T>>)
or PreparedQuery.executeBatch(java.util.List<io.vertx.rxjava.sqlclient.Tuple>, io.vertx.core.Handler<io.vertx.core.AsyncResult<T>>)
methods must be called to execute the query.sql
- public void close(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
handler
- the completion handlerpublic void close()
public rx.Single<Void> rxClose()
public static SqlClient newInstance(io.vertx.sqlclient.SqlClient arg)
Copyright © 2021 Eclipse. All rights reserved.