Package org.relique.jdbc.csv
Class LikePattern
- java.lang.Object
-
- org.relique.jdbc.csv.LikePattern
-
public class LikePattern extends java.lang.Object
Performs string matching for SQL LIKE patterns.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_ESCAPE_STRING
-
Constructor Summary
Constructors Constructor Description LikePattern()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
matches(java.lang.String likePattern, java.lang.String escape, java.lang.CharSequence input)
-
-
-
Field Detail
-
DEFAULT_ESCAPE_STRING
public static final java.lang.String DEFAULT_ESCAPE_STRING
- See Also:
- Constant Field Values
-
-
Method Detail
-
matches
public static boolean matches(java.lang.String likePattern, java.lang.String escape, java.lang.CharSequence input)
- Parameters:
likePattern
- an SQL LIKE pattern including % and _ characters.escape
- SQL ESCAPE character, or empty string for no escaping.input
- string to be matched.- Returns:
- true if input string matches LIKE pattern.
-
-