Class RestrictionClause
java.lang.Object
de.hybris.platform.persistence.flexiblesearch.RestrictionClause
-
Method Summary
Modifier and TypeMethodDescriptionprotected StringcreateUnionFieldAlias(String prefix, de.hybris.platform.persistence.flexiblesearch.TableField field) booleanprotected StringBuilderprotected Stringprotected de.hybris.platform.persistence.flexiblesearch.ParsedTextprotected Stringprotected List<? extends de.hybris.platform.persistence.flexiblesearch.ParsedText>protected Stringprotected 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 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) checks if all fields belong to the restricted type
-
Method Details
-
translateNested
protected de.hybris.platform.persistence.flexiblesearch.ParsedText translateNested(int resultInsertPos, String selectedText) throws FlexibleSearchException checks if all fields belong to the restricted type- Parameters:
resultInsertPos- the position where the result of this method is placed in the translated textselectedText- the selected text from source- Throws:
FlexibleSearchException
-
createUnionFieldAlias
-
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
-
translate
starts translation- Throws:
FlexibleSearchException
-
hashCode
public int hashCode() -
equals
-