Interface QueryConstantHandler

All Known Implementing Classes:
RelativeDateTimeMomentQueryHandler

public interface QueryConstantHandler
Interface to be implemented by JPQL constant handlers.

The implementation must be a managed bean with "prototype" scope.

  • Method Summary

    Modifier and Type
    Method
    Description
    expandConstant(String queryString)
    Replaces constant with real JPQL code.
  • Method Details

    • expandConstant

      String expandConstant(String queryString)
      Replaces constant with real JPQL code. If constant is not found, the source query string is returned.
      Parameters:
      queryString - source query string
      Returns:
      query string with constant replaced