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
FieldsFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Method Summary
Modifier and TypeMethodDescriptionvoidafterBuildAsl(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
-
CLEAN_UP_PRECEDENCE
static final int CLEAN_UP_PRECEDENCE- See Also:
-
-
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 aqlQueryWrapperaqlQuery- the parsed and post-processed AqlQueryaqlQueryWrapper- the AqlQueryWrapper created from aqlQueryaqlQueryRequest- the AqlQueryRequest provided to the service
-