Package io.vertx.reactivex.sqlclient
Class PreparedQuery<T>
- java.lang.Object
-
- io.vertx.reactivex.sqlclient.Query<T>
-
- io.vertx.reactivex.sqlclient.PreparedQuery<T>
-
public class PreparedQuery<T> extends Query<T>
A query for a prepared statement allowing parameterized execution of the query, this query will use a prepared statement. NOTE: This class has been automatically generated from theoriginalnon RX-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<PreparedQuery>__TYPE_ARGTypeArg<T>__typeArg_0
-
Constructor Summary
Constructors Constructor Description PreparedQuery(io.vertx.sqlclient.PreparedQuery delegate)PreparedQuery(Object delegate, TypeArg<T> typeArg_0)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)voidexecute()Execute the query.voidexecute(io.vertx.core.Handler<io.vertx.core.AsyncResult<T>> handler)Execute the query.voidexecute(Tuple tuple)Execute the query.voidexecute(Tuple tuple, io.vertx.core.Handler<io.vertx.core.AsyncResult<T>> handler)Execute the query.voidexecuteBatch(List<Tuple> batch)Execute the query with a batch of tuples.voidexecuteBatch(List<Tuple> batch, io.vertx.core.Handler<io.vertx.core.AsyncResult<T>> handler)Execute the query with a batch of tuples.io.vertx.sqlclient.PreparedQuerygetDelegate()inthashCode()<U> PreparedQuery<RowSet<U>>mapping(Function<Row,U> mapper)static <T> PreparedQuery<T>newInstance(io.vertx.sqlclient.PreparedQuery arg)static <T> PreparedQuery<T>newInstance(io.vertx.sqlclient.PreparedQuery arg, TypeArg<T> __typeArg_T)io.reactivex.Single<T>rxExecute()Execute the query.io.reactivex.Single<T>rxExecute(Tuple tuple)Execute the query.io.reactivex.Single<T>rxExecuteBatch(List<Tuple> batch)Execute the query with a batch of tuples.StringtoString()-
Methods inherited from class io.vertx.reactivex.sqlclient.Query
newInstance, newInstance
-
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<PreparedQuery> __TYPE_ARG
-
-
Method Detail
-
getDelegate
public io.vertx.sqlclient.PreparedQuery getDelegate()
- Overrides:
getDelegatein classQuery<T>
-
execute
public void execute(io.vertx.core.Handler<io.vertx.core.AsyncResult<T>> handler)
Execute the query.
-
rxExecute
public io.reactivex.Single<T> rxExecute()
Execute the query.
-
execute
public void execute(Tuple tuple, io.vertx.core.Handler<io.vertx.core.AsyncResult<T>> handler)
Execute the query.- Parameters:
tuple-handler- the handler receiving the response
-
execute
public void execute(Tuple tuple)
Execute the query.- Parameters:
tuple-
-
rxExecute
public io.reactivex.Single<T> rxExecute(Tuple tuple)
Execute the query.- Parameters:
tuple-- Returns:
-
executeBatch
public void executeBatch(List<Tuple> batch, io.vertx.core.Handler<io.vertx.core.AsyncResult<T>> handler)
Execute the query with a batch of tuples.- Parameters:
batch- the batch of tupleshandler- the handler receiving the response
-
executeBatch
public void executeBatch(List<Tuple> batch)
Execute the query with a batch of tuples.- Parameters:
batch- the batch of tuples
-
rxExecuteBatch
public io.reactivex.Single<T> rxExecuteBatch(List<Tuple> batch)
Execute the query with a batch of tuples.- Parameters:
batch- the batch of tuples- Returns:
-
mapping
public <U> PreparedQuery<RowSet<U>> mapping(Function<Row,U> mapper)
-
newInstance
public static <T> PreparedQuery<T> newInstance(io.vertx.sqlclient.PreparedQuery arg)
-
newInstance
public static <T> PreparedQuery<T> newInstance(io.vertx.sqlclient.PreparedQuery arg, TypeArg<T> __typeArg_T)
-
-