Class QueryStrategy
- java.lang.Object
-
- com.saperion.rs.federatedsearch.strategy.QueryStrategy
-
- Direct Known Subclasses:
DirectQueryStrategy,HQLQueryStrategy,NameValueQueryStrategy
public abstract class QueryStrategy extends java.lang.ObjectAbstract class representing a query strategy base class for building HQL queries by given federated search query strings.- Author:
- sts
-
-
Constructor Summary
Constructors Constructor Description QueryStrategy()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract java.lang.StringbuildHQLQuery(java.util.Properties templateProperties, java.lang.String ddc, java.lang.String query)Builds a HQL query by the given parameters.abstract booleanisSpecialQuery(java.lang.String query)Indicates if the given query needs to be replaced via a QueryStrategy.
-
-
-
Method Detail
-
isSpecialQuery
public abstract boolean isSpecialQuery(java.lang.String query)
Indicates if the given query needs to be replaced via a QueryStrategy.- Parameters:
query- The query in question.- Returns:
- true if the given query needs to be replaced via a QueryStrategy, false otherwise.
-
buildHQLQuery
public abstract java.lang.String buildHQLQuery(java.util.Properties templateProperties, java.lang.String ddc, java.lang.String query)Builds a HQL query by the given parameters.- 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 built HQL query.
-
-