Class SearchTools

java.lang.Object
de.hybris.platform.util.SearchTools

public class SearchTools extends Object
Search string tool functions.
  • Constructor Details

    • SearchTools

      public SearchTools()
  • Method Details

    • IN

      public static String IN(Collection coll, boolean asString)
    • IN

      public static void IN(StringBuilder sb, Collection coll, boolean asString)
    • asString

      public static String asString(Object o)
    • asString

      public static void asString(StringBuilder sb, Object o)
    • isEMPTYPattern

      public static boolean isEMPTYPattern(String pattern)
    • isLIKEPattern

      public static boolean isLIKEPattern(String pattern)
    • writeAttributeStatement

      public static boolean writeAttributeStatement(StringBuilder buffer, String attributeName, String valueName, Object attributes, Object values, boolean ignoreCase, boolean attributeORMode, boolean valueORMode, String connectionOP)
      writes a search statement for multiple attributes, using LIKE statements.
      Parameters:
      attributeORMode - determines if multiple attributes are OR or AND connected
      valueORMode - determines if multiple valuesare OR or AND connected
      Returns:
      true if the statement was not empty
    • writeLikeStmt

      public static boolean writeLikeStmt(StringBuilder buffer, String attribute, Object value, boolean ignoreCase, boolean orMode, String connectionOP)
      writes a LIKE statement for one attribute and multiple values.
      Parameters:
      orMode - determines if multiple values are OR or AND connected
      Returns:
      true if the statement was not empty