Interface AslPostProcessor

All Superinterfaces:
org.springframework.core.Ordered
All Known Implementing Classes:
AslCleanupPostProcessor

public interface AslPostProcessor extends org.springframework.core.Ordered
Used for modifications of the AslRootQuery before it is passed to the next layer. All Spring beans implementing this interface will be picked up by AqlQueryService.

Specifying the Order is required since inplace modifications may affect each other. Having multiple beans of this type with the same order value may produce inconsistent results.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    afterBuildAsl(AslRootQuery aslRootQuery, org.ehrbase.openehr.sdk.aql.dto.AqlQuery aqlQuery, AqlQueryWrapper aqlQueryWrapper, AqlQueryRequest aqlQueryRequest)
    Invoked after the building the AslRootQuery and before building the DB query.

    Methods inherited from interface org.springframework.core.Ordered

    getOrder
  • Field Details

  • Method Details

    • afterBuildAsl

      @Nonnull void afterBuildAsl(AslRootQuery aslRootQuery, org.ehrbase.openehr.sdk.aql.dto.AqlQuery aqlQuery, AqlQueryWrapper aqlQueryWrapper, AqlQueryRequest aqlQueryRequest)
      Invoked after the building the AslRootQuery and before building the DB query. This method can be used to modify the AslRootQuery inplace. Modifications of the given AqlQuery or AqlQueryWrapper will not have any effect on the generated DB query.
      Parameters:
      aslRootQuery - the AslRootQuery built based on aqlQuery and aqlQueryWrapper
      aqlQuery - the parsed and post-processed AqlQuery
      aqlQueryWrapper - the AqlQueryWrapper created from aqlQuery
      aqlQueryRequest - the AqlQueryRequest provided to the service