Interface Query
public interface Query
Query
- Since:
- 1.0.0.2
- Author:
- creatorfromhell
-
Method Summary
Modifier and TypeMethodDescriptionexecute()
Executes the query and returns the result synchronously.void
execute
(CompletableFuture<TransactionResult> result) Asynchronously executes the transaction and sets the result in the provided CompletableFuture.Retrieves the identifier associated with this query.with
(QueryParameters parameters) Creates a new query using the provided QueryParameters.
-
Method Details
-
identifier
Retrieves the identifier associated with this query.- Returns:
- the identifier of the query
-
with
Creates a new query using the provided QueryParameters.- Parameters:
parameters
- the parameters for the query- Returns:
- a Query object representing the query with the specified parameters
-
execute
Executes the query and returns the result synchronously.- Returns:
- the result of executing the query
-
execute
Asynchronously executes the transaction and sets the result in the provided CompletableFuture.- Parameters:
result
- The CompletableFuture to hold the result of executing the transaction.
-