Class TranslatedQuery

java.lang.Object
de.hybris.platform.persistence.flexiblesearch.TranslatedQuery
All Implemented Interfaces:
Serializable

public class TranslatedQuery extends Object implements Serializable
final form of parsed query. this one hold the plain sql text and a value mapping which allows expansion of user value lists for repeated execution with different values.
See Also:
  • Constructor Details

  • Method Details

    • getValuePositions

      public List getValuePositions()
    • clone

      public Object clone()
      Overrides:
      clone in class Object
    • cacheStatement

      public boolean cacheStatement()
    • getSQLTemplate

      public String getSQLTemplate()
    • getTypePKs

      public Set<PK> getTypePKs()
      Returns:
      a list of pk strings
    • getValueKeys

      public List getValueKeys()
    • needLanguage

      public boolean needLanguage()
    • hasLanguageMapping

      public boolean hasLanguageMapping()
    • removeUnusedValues

      public final Map removeUnusedValues(Map _values) throws FlexibleSearchException
      Throws:
      FlexibleSearchException
    • getPositionMap

      public final Map getPositionMap(Map values)
      Assembles a map holding a position list for each value key of the given value map.
    • getAllValues

      protected Map getAllValues(Map callerValues)
    • expandValues

      public final TranslatedQuery.ExecutableQuery expandValues(Map _values, PK defaultLanguagePK)
      expands this values according to the '?' included in this parsed query.
    • getMissingParameters

      protected Collection<String> getMissingParameters(Collection<de.hybris.platform.persistence.flexiblesearch.TranslatedQuery.ValueMapper> mappings)
    • createValueMappers

      protected List<de.hybris.platform.persistence.flexiblesearch.TranslatedQuery.ValueMapper> createValueMappers(Map userValues, PK defaultLanguagePK) throws FlexibleSearchException
      Throws:
      FlexibleSearchException
    • countParameters

      protected int countParameters(Map values)