Class RestrictionClause

java.lang.Object
de.hybris.platform.persistence.flexiblesearch.RestrictionClause

public class RestrictionClause extends Object
  • 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 text
      selectedText - the selected text from source
      Throws:
      FlexibleSearchException
    • createUnionFieldAlias

      protected String createUnionFieldAlias(String prefix, de.hybris.platform.persistence.flexiblesearch.TableField field)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getWholeWordTokenPosition

      protected static final int getWholeWordTokenPosition(String src, String token)
    • getWholeWordTokenPosition

      protected static final int getWholeWordTokenPosition(String src, String token, int startFrom)
    • setSource

      protected void setSource(String source)
    • getEnclosingText

      protected de.hybris.platform.persistence.flexiblesearch.ParsedText getEnclosingText()
    • getNestedTexts

      protected List<? extends de.hybris.platform.persistence.flexiblesearch.ParsedText> getNestedTexts()
    • hasNestedTexts

      protected boolean hasNestedTexts()
    • getBuffer

      protected StringBuilder getBuffer()
    • setBuffer

      protected StringBuilder setBuffer(StringBuilder buffer)
    • getStartDelimiter

      protected String getStartDelimiter()
    • getEndDelimiter

      protected String getEndDelimiter()
    • replaceInTranslated

      protected void replaceInTranslated(String old, String text)
    • insertIntoTranslated

      protected void insertIntoTranslated(int pos, String text)
    • 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

      protected String getCleanSource()
    • translate

      protected void translate() throws FlexibleSearchException
      starts translation
      Throws:
      FlexibleSearchException
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object