Package de.hybris.platform.util
Class SearchTools
java.lang.Object
de.hybris.platform.util.SearchTools
Search string tool functions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic voidasString(StringBuilder sb, Object o) static voidIN(StringBuilder sb, Collection coll, boolean asString) static StringIN(Collection coll, boolean asString) static booleanisEMPTYPattern(String pattern) static booleanisLIKEPattern(String pattern) static booleanwriteAttributeStatement(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.static booleanwriteLikeStmt(StringBuilder buffer, String attribute, Object value, boolean ignoreCase, boolean orMode, String connectionOP) writes a LIKE statement for one attribute and multiple values.
-
Constructor Details
-
SearchTools
public SearchTools()
-
-
Method Details
-
IN
-
IN
-
asString
-
asString
-
isEMPTYPattern
-
isLIKEPattern
-
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 connectedvalueORMode- 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
-