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 Summary
Constructors Constructor Description DirectQueryStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringbuildHQLQuery(java.util.Properties templateProperties, java.lang.String ddc, java.lang.String query)Does nothing, just returns the given query.booleanisSpecialQuery(java.lang.String query)Always returns false.
-
-
-
Method Detail
-
isSpecialQuery
public boolean isSpecialQuery(java.lang.String query)
Always returns false. This means that the given query parameter is used as the where statement of the global query.- Specified by:
isSpecialQueryin classQueryStrategy- Parameters:
query- The user query to be mapped to HQL.- Returns:
- false.
-
buildHQLQuery
public java.lang.String buildHQLQuery(java.util.Properties templateProperties, java.lang.String ddc, java.lang.String query)Does nothing, just returns the given query.- Specified by:
buildHQLQueryin 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.
-
-