Class RequestScopedAqlQueryContext

java.lang.Object
org.ehrbase.rest.openehr.aql.RequestScopedAqlQueryContext
All Implemented Interfaces:
org.ehrbase.api.dto.AqlQueryContext

@RequestScope @Component("scopedAqlQueryContext") public class RequestScopedAqlQueryContext extends Object implements org.ehrbase.api.dto.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
  • Constructor Details

    • RequestScopedAqlQueryContext

      public RequestScopedAqlQueryContext(org.ehrbase.api.service.StatusService statusService, jakarta.servlet.http.HttpServletRequest request)
  • Method Details

    • createMetaData

      public org.ehrbase.openehr.sdk.response.dto.MetaData createMetaData(URI location)
      Specified by:
      createMetaData in interface org.ehrbase.api.dto.AqlQueryContext
    • showExecutedAql

      public boolean showExecutedAql()
      Specified by:
      showExecutedAql in interface org.ehrbase.api.dto.AqlQueryContext
    • isDryRun

      public boolean isDryRun()
      Specified by:
      isDryRun in interface org.ehrbase.api.dto.AqlQueryContext
    • showExecutedSql

      public boolean showExecutedSql()
      Specified by:
      showExecutedSql in interface org.ehrbase.api.dto.AqlQueryContext
    • showQueryPlan

      public boolean showQueryPlan()
      Specified by:
      showQueryPlan in interface org.ehrbase.api.dto.AqlQueryContext
    • isPathSkipping

      public boolean isPathSkipping()
      Specified by:
      isPathSkipping in interface org.ehrbase.api.dto.AqlQueryContext
    • isArchetypeLocalNodePredicates

      public boolean isArchetypeLocalNodePredicates()
      Specified by:
      isArchetypeLocalNodePredicates in interface org.ehrbase.api.dto.AqlQueryContext
    • setExecutedAql

      public void setExecutedAql(String executedAql)
      Specified by:
      setExecutedAql in interface org.ehrbase.api.dto.AqlQueryContext
    • setMetaProperty

      public void setMetaProperty(org.ehrbase.api.dto.AqlQueryContext.MetaProperty property, Object value)
      Specified by:
      setMetaProperty in interface org.ehrbase.api.dto.AqlQueryContext