Class SqlClient
- All Implemented Interfaces:
MutinyDelegate
- Direct Known Subclasses:
Pool,SqlConnection
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- Author:
- Julien Viet
- See Also:
-
SqlClient
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<Void>close()Close the client and release the associated resources.voidClose the client and release the associated resources.Close the client and release the associated resources.booleanio.vertx.sqlclient.SqlClientGet the delegate instance.inthashCode()static SqlClientnewInstance(io.vertx.sqlclient.SqlClient delegate) Creates a new instance of theSqlClient.preparedQuery(String sql) Create a prepared query, one of thePreparedQuery.execute(io.vertx.mutiny.sqlclient.Tuple)orPreparedQuery.executeBatch(java.util.List<io.vertx.mutiny.sqlclient.Tuple>)methods must be called to execute the query.preparedQuery(String sql, io.vertx.sqlclient.PrepareOptions options) Create a prepared query, one of thePreparedQuery.execute(io.vertx.mutiny.sqlclient.Tuple)orPreparedQuery.executeBatch(java.util.List<io.vertx.mutiny.sqlclient.Tuple>)methods must be called to execute the query.Create a query, theQuery.execute()method must be called to execute the query.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
SqlClient
public SqlClient(io.vertx.sqlclient.SqlClient delegate) Create a new instance ofSqlClientdelegating to the given (non-null) instance ofSqlClient. -
SqlClient
-
-
Method Details
-
getDelegate
public io.vertx.sqlclient.SqlClient getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
close
Close the client and release the associated resources.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
SqlClient.close()
-
closeAndAwait
public void closeAndAwait()Close the client and release the associated resources.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- See Also:
-
SqlClient.close()
-
closeAndForget
Close the client and release the associated resources.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
SqlClient.close()
-
query
Create a query, theQuery.execute()method must be called to execute the query.- Returns:
- the query
-
preparedQuery
Create a prepared query, one of thePreparedQuery.execute(io.vertx.mutiny.sqlclient.Tuple)orPreparedQuery.executeBatch(java.util.List<io.vertx.mutiny.sqlclient.Tuple>)methods must be called to execute the query.- Returns:
- the prepared query
-
preparedQuery
public PreparedQuery<RowSet<Row>> preparedQuery(String sql, io.vertx.sqlclient.PrepareOptions options) Create a prepared query, one of thePreparedQuery.execute(io.vertx.mutiny.sqlclient.Tuple)orPreparedQuery.executeBatch(java.util.List<io.vertx.mutiny.sqlclient.Tuple>)methods must be called to execute the query.- Returns:
- the prepared query
-
newInstance
Creates a new instance of theSqlClient. -
hashCode
public int hashCode() -
equals
-
toString
-