Package io.vertx.rxjava.sqlclient
Class SqlClient
- java.lang.Object
-
- io.vertx.rxjava.sqlclient.SqlClient
-
- Direct Known Subclasses:
Pool
,SqlConnection
public class SqlClient extends Object
Defines common SQL client operations with a database server. NOTE: This class has been automatically generated from theoriginal
non RX-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<SqlClient>
__TYPE_ARG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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 theQuery.execute(io.vertx.core.Handler<io.vertx.core.AsyncResult<T>>)
orPreparedQuery.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.PreparedQuery<RowSet<Row>>
preparedQuery(String sql, io.vertx.sqlclient.PrepareOptions options)
Create a prepared query, one of theQuery.execute(io.vertx.core.Handler<io.vertx.core.AsyncResult<T>>)
orPreparedQuery.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, theQuery.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()
-
-
-
Constructor Detail
-
SqlClient
public SqlClient(io.vertx.sqlclient.SqlClient delegate)
-
SqlClient
public SqlClient(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.sqlclient.SqlClient getDelegate()
-
query
public Query<RowSet<Row>> query(String sql)
Create a query, theQuery.execute(io.vertx.core.Handler<io.vertx.core.AsyncResult<T>>)
method must be called to execute the query.- Parameters:
sql
-- Returns:
- the query
-
preparedQuery
public PreparedQuery<RowSet<Row>> preparedQuery(String sql)
Create a prepared query, one of theQuery.execute(io.vertx.core.Handler<io.vertx.core.AsyncResult<T>>)
orPreparedQuery.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.- Parameters:
sql
-- Returns:
- the prepared query
-
preparedQuery
public PreparedQuery<RowSet<Row>> preparedQuery(String sql, io.vertx.sqlclient.PrepareOptions options)
Create a prepared query, one of theQuery.execute(io.vertx.core.Handler<io.vertx.core.AsyncResult<T>>)
orPreparedQuery.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.- Parameters:
sql
-options
-- Returns:
- the prepared query
-
close
public void close(io.vertx.core.Handler<io.vertx.core.AsyncResult<Void>> handler)
Close the client and release the associated resources.- Parameters:
handler
- the completion handler
-
close
public void close()
Close the client and release the associated resources.
-
rxClose
public rx.Single<Void> rxClose()
Close the client and release the associated resources.- Returns:
-
newInstance
public static SqlClient newInstance(io.vertx.sqlclient.SqlClient arg)
-
-