Package de.hybris.platform.core
Class FlexibleSearchTranslatable
java.lang.Object
de.hybris.platform.core.FlexibleSearchTranslatable
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
GenericCondition,GenericField,GenericQuery,GenericSearchFieldType,GenericSearchOrderBy,GenericTypeJoin,Operator
Super class for all classes which have to be translateable to flexible search.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringgetAliasFromTypeMap(Map<String, String> typeIndexMap, String typeIdentifier) returns the typeIndex associated to the given codeabstract voidtoFlexibleSearch(StringBuilder queryBuffer, Map<String, String> typeIndexMap, Map<String, Object> valueMap) compiles this instance in order to append its query snippet and add its value(s), if anyvoidtoPolyglotSearch(StringBuilder queryBuffer, Map<String, String> typeIndexMap, Map<String, Object> valueMap) compiles this instance in order to append its query snippet and add its value(s), if any
-
Constructor Details
-
FlexibleSearchTranslatable
public FlexibleSearchTranslatable()
-
-
Method Details
-
toFlexibleSearch
public abstract void toFlexibleSearch(StringBuilder queryBuffer, Map<String, String> typeIndexMap, Map<String, Object> valueMap) compiles this instance in order to append its query snippet and add its value(s), if any- Parameters:
queryBuffer- contains the querytypeIndexMap- contains typeCode <> typeIndex mappingsvalueMap- contains valueQualifier <> value mappings
-
toPolyglotSearch
public void toPolyglotSearch(StringBuilder queryBuffer, Map<String, String> typeIndexMap, Map<String, Object> valueMap) compiles this instance in order to append its query snippet and add its value(s), if any- Parameters:
queryBuffer- contains the querytypeIndexMap- contains typeCode <> typeIndex mappingsvalueMap- contains valueQualifier <> value mappings
-
getAliasFromTypeMap
returns the typeIndex associated to the given code- Parameters:
typeIndexMap- map, containing all typeCode <> typeIndex mappingstypeIdentifier- theTypeCode- Returns:
- typeIndex
-