Package org.ehrbase.dao.access.query
Class AsyncSqlQuery
java.lang.Object
org.ehrbase.dao.access.query.AsyncSqlQuery
Attempt to use JAVA 8 CompletableFuture.
- Since:
- 1.0
- Author:
- Christian Chevalley, Jake Smolka
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AsyncSqlQuery
-
-
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 SQL exception
-
toJson
-
get
-
fetch
Executes the fetch asynchronously.- Returns:
- the query result
- Throws:
InternalServerException- if fetching failed
-