Class PreparedStatement
- All Implemented Interfaces:
MutinyDelegate
From a prepared statement you can
- use
query()to create and execute aPreparedQuery - use
cursor()to create aCursor - use
createStream(int)to create aRowStream
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- Author:
- Julien Viet
- See Also:
-
PreparedStatement
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPreparedStatement(io.vertx.sqlclient.PreparedStatement delegate) Create a new instance ofPreparedStatementdelegating to the given (non-null) instance ofPreparedStatement.PreparedStatement(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<Void>close()Close the prepared query and release its resources.voidClose the prepared query and release its resources.Close the prepared query and release its resources.createStream(int fetch) LikecreateStream(int, Tuple)but with empty arguments.createStream(int fetch, Tuple args) Execute the prepared query with a cursor and createStream the result.cursor()Likecursor(Tuple)but with empty arguments.Create a cursor with the providedarguments.booleanio.vertx.sqlclient.PreparedStatementGet the delegate instance.inthashCode()static PreparedStatementnewInstance(io.vertx.sqlclient.PreparedStatement delegate) Creates a new instance of thePreparedStatement.query()Create a prepared query for this statement.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
PreparedStatement
public PreparedStatement(io.vertx.sqlclient.PreparedStatement delegate) Create a new instance ofPreparedStatementdelegating to the given (non-null) instance ofPreparedStatement. -
PreparedStatement
-
-
Method Details
-
getDelegate
public io.vertx.sqlclient.PreparedStatement 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 prepared query and release its 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:
-
PreparedStatement.close()
-
closeAndAwait
public void closeAndAwait()Close the prepared query and release its 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:
-
PreparedStatement.close()
-
closeAndForget
Close the prepared query and release its 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:
-
PreparedStatement.close()
-
query
Create a prepared query for this statement.- Returns:
- the prepared query
-
cursor
Likecursor(Tuple)but with empty arguments. -
cursor
Create a cursor with the providedarguments.- Parameters:
args- the list of arguments- Returns:
- the query
-
createStream
LikecreateStream(int, Tuple)but with empty arguments. -
createStream
Execute the prepared query with a cursor and createStream the result. The createStream opens a cursor with afetchsize to fetch the results. Note: this requires to be in a transaction, since cursors require it.- Parameters:
fetch- the cursor fetch sizeargs- the prepared query arguments- Returns:
- the createStream
-
newInstance
Creates a new instance of thePreparedStatement. -
hashCode
public int hashCode() -
equals
-
toString
-