com.healthmarketscience.jackcess
Class CaseInsensitiveColumnMatcher
java.lang.Object
com.healthmarketscience.jackcess.CaseInsensitiveColumnMatcher
- All Implemented Interfaces:
- ColumnMatcher
public class CaseInsensitiveColumnMatcher
- extends java.lang.Object
- implements ColumnMatcher
Concrete implementation of ColumnMatcher which tests textual columns case-insensitively (
DataType.TEXT and DataType.MEMO), and all other columns using simple equality.
|
Method Summary |
boolean |
matches(Table table,
java.lang.String columnName,
java.lang.Object value1,
java.lang.Object value2)
Returns true if the given value1 should be considered a match for the given value2
for the given column in the given table, false otherwise. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final CaseInsensitiveColumnMatcher INSTANCE
CaseInsensitiveColumnMatcher
public CaseInsensitiveColumnMatcher()
matches
public boolean matches(Table table,
java.lang.String columnName,
java.lang.Object value1,
java.lang.Object value2)
- Description copied from interface:
ColumnMatcher
- Returns
true if the given value1 should be considered a match for the given value2
for the given column in the given table, false otherwise.
- Specified by:
matches in interface ColumnMatcher
- Parameters:
table - the relevant tablecolumnName - the name of the relevant column within the tablevalue1 - the first value to match (may be null)value2 - the second value to match (may be null)