Class AqlQueryRepository
java.lang.Object
org.ehrbase.openehr.aqlengine.repository.AqlQueryRepository
Executes ASL queries as SQL, and converts the results
-
Constructor Summary
ConstructorsConstructorDescriptionAqlQueryRepository(SystemService systemService, KnowledgeCacheService knowledgeCache, AqlSqlQueryBuilder queryBuilder) -
Method Summary
Modifier and TypeMethodDescriptionexecuteQuery(PreparedQuery preparedQuery) explainQuery(boolean analyze, PreparedQuery preparedQuery) static StringgetQuerySql(PreparedQuery preparedQuery) prepareQuery(AslRootQuery aslQuery, List<SelectWrapper> selects) Prepares the full SQL query.
-
Constructor Details
-
AqlQueryRepository
public AqlQueryRepository(SystemService systemService, KnowledgeCacheService knowledgeCache, AqlSqlQueryBuilder queryBuilder)
-
-
Method Details
-
prepareQuery
Prepares the full SQL query. Build the structure from AQL and selects postprocess based on the givenselects.- Parameters:
aslQuery- to create the actual SQL query from.selects- to obtainAqlSqlResultPostprocessorfor.- See Also:
-
executeQuery
-
getQuerySql
-
explainQuery
-