Class QueryStrategy
java.lang.Object
com.saperion.rs.federatedsearch.strategy.QueryStrategy
- Direct Known Subclasses:
DirectQueryStrategy
,HQLQueryStrategy
,NameValueQueryStrategy
Abstract class representing a query strategy base class for building HQL
queries by given federated search query strings.
- Author:
- sts
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract String
buildHQLQuery
(Properties templateProperties, String ddc, String query) Builds a HQL query by the given parameters.abstract boolean
isSpecialQuery
(String query) Indicates if the given query needs to be replaced via a QueryStrategy.
-
Constructor Details
-
QueryStrategy
public QueryStrategy()
-
-
Method Details
-
isSpecialQuery
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
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.
-