Class TranslatedQuery
java.lang.Object
de.hybris.platform.persistence.flexiblesearch.TranslatedQuery
- All Implemented Interfaces:
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanclone()protected intcountParameters(Map values) protected List<de.hybris.platform.persistence.flexiblesearch.TranslatedQuery.ValueMapper>createValueMappers(Map userValues, PK defaultLanguagePK) expandValues(Map _values, PK defaultLanguagePK) expands this values according to the '?'included in this parsed query. protected MapgetAllValues(Map callerValues) protected Collection<String>getMissingParameters(Collection<de.hybris.platform.persistence.flexiblesearch.TranslatedQuery.ValueMapper> mappings) final MapgetPositionMap(Map values) Assembles a map holding a position list for each value key of the given value map.booleanbooleanfinal MapremoveUnusedValues(Map _values)
-
Constructor Details
-
TranslatedQuery
-
-
Method Details
-
getValuePositions
-
clone
-
cacheStatement
public boolean cacheStatement() -
getSQLTemplate
-
getTypePKs
- Returns:
- a list of pk strings
-
getValueKeys
-
needLanguage
public boolean needLanguage() -
hasLanguageMapping
public boolean hasLanguageMapping() -
removeUnusedValues
- Throws:
FlexibleSearchException
-
getPositionMap
Assembles a map holding a position list for each value key of the given value map. -
getAllValues
-
expandValues
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
-