| workbench.storage.filter.ColumnComparator
All known Subclasses: workbench.storage.filter.IsNullComparator, workbench.storage.filter.NumberNotEqualsComparator, workbench.storage.filter.GreaterThanComparator, workbench.storage.filter.NotStartsWithComparator, workbench.storage.filter.ContainsComparator, workbench.storage.filter.StringNotEqualsComparator, workbench.storage.filter.LessThanComparator, workbench.storage.filter.StringEqualsComparator, workbench.storage.filter.GreaterOrEqualComparator, workbench.storage.filter.DateEqualsComparator, workbench.storage.filter.StartsWithComparator, workbench.storage.filter.NumberEqualsComparator, workbench.storage.filter.LessOrEqualComparator, workbench.storage.filter.RegExComparator, workbench.storage.filter.IsNotNullComparator,
ColumnComparator | public interface ColumnComparator (Code) | | author: support@sql-workbench.net |
comparesEquality | boolean comparesEquality()(Code) | | |
evaluate | boolean evaluate(Object reference, Object value, boolean ignoreCase)(Code) | | Evaluate this ColumnComparator.
reference is the value entered by the user in the filter definition.
value is the actual value against which the reference should be
compared.
Comparators with needsValue() == true should ignore the reference
value
|
getOperator | String getOperator()(Code) | | Return a String representation to be displayed in the UI
|
needsValue | boolean needsValue()(Code) | | If this filter does not need a reference value (e.g. for IS NULL)
this method should return true. In that case, the reference
value passed into the
ColumnComparator.evaluate(Object,Object,boolean) method
has to be ignored by the filter.
|
supportsIgnoreCase | boolean supportsIgnoreCase()(Code) | | Should return true if this comparator supports the ignoreCase
parameter in the
ColumnComparator.evaluate(Object,Object,boolean) method.
The value returned by this method will be used when building the GUI
for defining a filter.
|
supportsType | boolean supportsType(Class valueClass)(Code) | | Check if this comparator can be applied to the given class
|
validateInput | boolean validateInput(Object input)(Code) | | Validate the input whether this comparator
can actually deal with the value
|
|
|