Class ParsedQuery
java.lang.Object
de.hybris.platform.persistence.flexiblesearch.ParsedQuery
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected intaddFixedParameter(Object value) booleanbooleanprotected StringBuilderprotected Stringprotected de.hybris.platform.persistence.flexiblesearch.ParsedTextprotected Stringprotected FlexibleSearchTypeCacheProviderprotected List<? extends de.hybris.platform.persistence.flexiblesearch.ParsedText>protected StringDeprecated, for removal: This API element is subject to removal in a future version.since 6.0.0getTranslatedQuery(Map values) protected static final intgetWholeWordTokenPosition(String src, String token) protected static final intgetWholeWordTokenPosition(String src, String token, int startFrom) inthashCode()protected booleanprotected voidinsertIntoTranslated(int pos, String text) protected booleanprotected voidregisterParsedText(de.hybris.platform.persistence.flexiblesearch.ParsedText parsed) protected voidreplaceInTranslated(de.hybris.platform.persistence.flexiblesearch.TableField field, String text) Replaces a substring of this parsed text by a new text.protected voidreplaceInTranslated(String old, String text) protected StringBuildersetBuffer(StringBuilder buffer) protected voidtoString()protected voidstarts translationprotected de.hybris.platform.persistence.flexiblesearch.ParsedTexttranslateNested(int resultInsertPos, String selectedText) just returns this field now.
-
Field Details
-
UNION_TABLE_ALIAS
- See Also:
-
-
Method Details
-
isOracleUsed
protected boolean isOracleUsed() -
addFixedParameter
-
getTranslatedQuery
@Deprecated(since="6.0.0", forRemoval=true) public TranslatedQuery getTranslatedQuery() throws FlexibleSearchExceptionDeprecated, for removal: This API element is subject to removal in a future version.since 6.0.0creates the translated form of this query. this object can be used for executing the real JDBC query:Map valueMap = ... TranslatedQuery tq = query.getTranslatedQuery();
- Throws:
FlexibleSearchException
-
getTranslatedQuery
- Throws:
FlexibleSearchException
-
disablePrincipalGroupRestrictions
public boolean disablePrincipalGroupRestrictions() -
getPrincipal
-
translate
starts translation- Throws:
FlexibleSearchException
-
translateNested
protected de.hybris.platform.persistence.flexiblesearch.ParsedText translateNested(int resultInsertPos, String selectedText) throws FlexibleSearchException just returns this field now. override for you own handling of these texts.- Parameters:
resultInsertPos- the position where the result of this method is placed in the translated textselectedText- the selected text from source- Throws:
FlexibleSearchException
-
getFSTypeCacheProvider
-
toString
-
getWholeWordTokenPosition
-
getWholeWordTokenPosition
-
setSource
-
getEnclosingText
protected de.hybris.platform.persistence.flexiblesearch.ParsedText getEnclosingText() -
getNestedTexts
-
hasNestedTexts
protected boolean hasNestedTexts() -
getBuffer
-
setBuffer
-
getStartDelimiter
-
getEndDelimiter
-
replaceInTranslated
-
insertIntoTranslated
-
replaceInTranslated
protected void replaceInTranslated(de.hybris.platform.persistence.flexiblesearch.TableField field, String text) Replaces a substring of this parsed text by a new text.- Parameters:
text- the new text to insert
-
registerParsedText
protected void registerParsedText(de.hybris.platform.persistence.flexiblesearch.ParsedText parsed) -
getCleanSource
-
hashCode
public int hashCode() -
equals
-