Package org.ehrbase.dao.access.query
Class AsyncAqlQuery
java.lang.Object
org.ehrbase.dao.access.query.AsyncAqlQuery
Attempt to use JAVA 8 CompletableFuture.
- Since:
- 1.0
- Author:
- Christian Chevalley
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AsyncAqlQuery
-
-
Method Details
-
fetchQueryResults
public org.jooq.Result<org.jooq.Record> fetchQueryResults()Fetches query result from database.- Returns:
- results fetched from the database
- Throws:
IllegalArgumentException- on AQL exception
-
toJson
-
get
-
fetch
Executes the fetch asynchronously.- Returns:
- the query result
- Throws:
InternalServerException- if fetching failedExecutionExceptionInterruptedException
-