Class DirectQueryStrategy

java.lang.Object
com.saperion.rs.federatedsearch.strategy.QueryStrategy
com.saperion.rs.federatedsearch.strategy.DirectQueryStrategy

public class DirectQueryStrategy extends QueryStrategy
The DirectQueryStrategy can be used to build HQL-Where statements directly from the given string.
Author:
sts
  • Constructor Details

    • DirectQueryStrategy

      public DirectQueryStrategy()
  • Method Details

    • isSpecialQuery

      public boolean isSpecialQuery(String query)
      Always returns false. This means that the given query parameter is used as the where statement of the global query.
      Specified by:
      isSpecialQuery in class QueryStrategy
      Parameters:
      query - The user query to be mapped to HQL.
      Returns:
      false.
    • buildHQLQuery

      public String buildHQLQuery(Properties templateProperties, String ddc, String query)
      Does nothing, just returns the given query.
      Specified by:
      buildHQLQuery in class QueryStrategy
      Parameters:
      templateProperties - The properties to be used to build the HQL query.
      ddc - The DDC to be used to build the HQL query.
      query - The user query to be mapped to HQL.
      Returns:
      The given query.