Class DirectQueryStrategy
java.lang.Object
com.saperion.rs.federatedsearch.strategy.QueryStrategy
com.saperion.rs.federatedsearch.strategy.DirectQueryStrategy
The DirectQueryStrategy can be used to build HQL-Where statements directly from the
given string.
- Author:
- sts
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildHQLQuery
(Properties templateProperties, String ddc, String query) Does nothing, just returns the given query.boolean
isSpecialQuery
(String query) Always returns false.
-
Constructor Details
-
DirectQueryStrategy
public DirectQueryStrategy()
-
-
Method Details
-
isSpecialQuery
Always returns false. This means that the given query parameter is used as the where statement of the global query.- Specified by:
isSpecialQuery
in classQueryStrategy
- Parameters:
query
- The user query to be mapped to HQL.- Returns:
- false.
-
buildHQLQuery
Does nothing, just returns the given query.- Specified by:
buildHQLQuery
in classQueryStrategy
- 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.
-