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.String
buildHQLQuery(java.util.Properties templateProperties, java.lang.String ddc, java.lang.String query)
Does nothing, just returns the given query.boolean
isSpecialQuery(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:
isSpecialQuery
in 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:
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.
-
-