Class FlexibleSearchTranslatable

java.lang.Object
de.hybris.platform.core.FlexibleSearchTranslatable
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
GenericCondition, GenericField, GenericQuery, GenericSearchFieldType, GenericSearchOrderBy, GenericTypeJoin, Operator

public abstract class FlexibleSearchTranslatable extends Object implements Serializable
Super class for all classes which have to be translateable to flexible search.
See Also:
  • 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 query
      typeIndexMap - contains typeCode <> typeIndex mappings
      valueMap - 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 query
      typeIndexMap - contains typeCode <> typeIndex mappings
      valueMap - contains valueQualifier <> value mappings
    • getAliasFromTypeMap

      protected static String getAliasFromTypeMap(Map<String,String> typeIndexMap, String typeIdentifier)
      returns the typeIndex associated to the given code
      Parameters:
      typeIndexMap - map, containing all typeCode <> typeIndex mappings
      typeIdentifier - theTypeCode
      Returns:
      typeIndex