Class CliAqlQueryContext

java.lang.Object
org.ehrbase.cli.config.CliAqlQueryContext
All Implemented Interfaces:
org.ehrbase.api.dto.AqlQueryContext

@Component("scopedAqlQueryContext") public class CliAqlQueryContext extends Object implements org.ehrbase.api.dto.AqlQueryContext
AQL query context implementation used for EHRbase CLI that can be configured using -aql-mode=default|dry_run|show_executed_aql|show_executed_sql|show_query_plane params.
  • Constructor Details

    • CliAqlQueryContext

      public CliAqlQueryContext()
  • Method Details

    • createMetaData

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

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

      public boolean showExecutedAql()
      Specified by:
      showExecutedAql 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