Interface EntityQueryFunctionHandler

All Known Implementing Classes:
EntityQueryAuthenticationFunctions, EntityQueryDateFunctions

public interface EntityQueryFunctionHandler
Handler API for defining and executing an function in an EntityQuery.
Since:
2.0.0
Author:
Arne Vandamme
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accepts(String functionName, org.springframework.core.convert.TypeDescriptor desiredType)
    Does this handler accept a function with the given name and support the desired result type.
    apply(String functionName, EQType[] arguments, org.springframework.core.convert.TypeDescriptor desiredType, EQTypeConverter argumentConverter)
    Apply the function and return the value in the .
  • Method Details

    • accepts

      boolean accepts(String functionName, org.springframework.core.convert.TypeDescriptor desiredType)
      Does this handler accept a function with the given name and support the desired result type.
      Parameters:
      functionName - name of the function call
      desiredType - of the result
      Returns:
      true if handler can execute the requested function
    • apply

      Object apply(String functionName, EQType[] arguments, org.springframework.core.convert.TypeDescriptor desiredType, EQTypeConverter argumentConverter)
      Apply the function and return the value in the .
      Parameters:
      functionName - name of the function being executed.
      arguments - for the function
      desiredType - for the output
      argumentConverter - to be used for argument conversion
      Returns:
      evaluation result