Package org.ehrbase.rest.openehr.aql
Class RequestScopedAqlQueryContext
java.lang.Object
org.ehrbase.rest.openehr.aql.RequestScopedAqlQueryContext
- All Implemented Interfaces:
AqlQueryContext
@RequestScope
@Component("scopedAqlQueryContext")
public class RequestScopedAqlQueryContext
extends Object
implements AqlQueryContext
Holds the metadata for the response to an AQL request.
Note: it is expected that per request no more than one AQL query is executed
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ehrbase.api.dto.AqlQueryContext
AqlQueryContext.EhrbaseMetaProperty, AqlQueryContext.MetaProperty -
Field Summary
Fields inherited from interface org.ehrbase.api.dto.AqlQueryContext
BEAN_NAME, OPENEHR_REST_API_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionRequestScopedAqlQueryContext(StatusService statusService, jakarta.servlet.http.HttpServletRequest request) -
Method Summary
Modifier and TypeMethodDescriptionorg.ehrbase.openehr.sdk.response.dto.MetaDatacreateMetaData(URI location) booleanisDryRun()voidsetExecutedAql(String executedAql) voidsetMetaProperty(AqlQueryContext.MetaProperty property, Object value) booleanbooleanboolean
-
Constructor Details
-
RequestScopedAqlQueryContext
public RequestScopedAqlQueryContext(StatusService statusService, jakarta.servlet.http.HttpServletRequest request)
-
-
Method Details
-
createMetaData
- Specified by:
createMetaDatain interfaceAqlQueryContext
-
showExecutedAql
public boolean showExecutedAql()- Specified by:
showExecutedAqlin interfaceAqlQueryContext
-
isDryRun
public boolean isDryRun()- Specified by:
isDryRunin interfaceAqlQueryContext
-
showExecutedSql
public boolean showExecutedSql()- Specified by:
showExecutedSqlin interfaceAqlQueryContext
-
showQueryPlan
public boolean showQueryPlan()- Specified by:
showQueryPlanin interfaceAqlQueryContext
-
setExecutedAql
- Specified by:
setExecutedAqlin interfaceAqlQueryContext
-
setMetaProperty
- Specified by:
setMetaPropertyin interfaceAqlQueryContext
-