Package org.ehrbase.dao.access.query
Class AsyncAqlQuery
- java.lang.Object
-
- org.ehrbase.dao.access.query.AsyncAqlQuery
-
-
Constructor Summary
Constructors Constructor Description AsyncAqlQuery(I_DomainAccess domainAccess, String queryString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>fetch()Executes the fetch asynchronously.org.jooq.Result<org.jooq.Record>fetchQueryResults()Fetches query result from database.Map<String,Object>get()Map<String,Object>toJson(org.jooq.Result<org.jooq.Record> records)
-
-
-
Constructor Detail
-
AsyncAqlQuery
public AsyncAqlQuery(I_DomainAccess domainAccess, String queryString)
-
-
Method Detail
-
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
-
fetch
public Map<String,Object> fetch() throws ExecutionException, InterruptedException
Executes the fetch asynchronously.- Returns:
- the query result
- Throws:
InternalServerException- if fetching failedExecutionExceptionInterruptedException
-
-