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

public class ParsedQuery extends Object
  • Field Details

  • Method Details

    • isOracleUsed

      protected boolean isOracleUsed()
    • addFixedParameter

      protected int addFixedParameter(Object value)
    • getTranslatedQuery

      @Deprecated(since="6.0.0", forRemoval=true) public TranslatedQuery getTranslatedQuery() throws FlexibleSearchException
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 6.0.0
      creates 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

      public TranslatedQuery getTranslatedQuery(Map values) throws FlexibleSearchException
      Throws:
      FlexibleSearchException
    • disablePrincipalGroupRestrictions

      public boolean disablePrincipalGroupRestrictions()
    • getPrincipal

      public Principal getPrincipal()
    • translate

      protected void translate() throws FlexibleSearchException
      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 text
      selectedText - the selected text from source
      Throws:
      FlexibleSearchException
    • getFSTypeCacheProvider

      protected FlexibleSearchTypeCacheProvider getFSTypeCacheProvider()
    • 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()
    • hashCode

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

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