com.healthmarketscience.jackcess.util
Class SimpleColumnMatcher

java.lang.Object
  extended by com.healthmarketscience.jackcess.util.SimpleColumnMatcher
All Implemented Interfaces:
ColumnMatcher

public class SimpleColumnMatcher
extends Object
implements ColumnMatcher

Simple concrete implementation of ColumnMatcher which tests for equality. If initial comparison fails, attempts to coerce the values to a common type for comparison.

Author:
James Ahlborn
Usage:
General: This class is general use.

Field Summary
static SimpleColumnMatcher INSTANCE
           
 
Constructor Summary
SimpleColumnMatcher()
           
 
Method Summary
 boolean matches(Table table, String columnName, Object value1, 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final SimpleColumnMatcher INSTANCE
Constructor Detail

SimpleColumnMatcher

public SimpleColumnMatcher()
Method Detail

matches

public boolean matches(Table table,
                       String columnName,
                       Object value1,
                       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 table
columnName - the name of the relevant column within the table
value1 - the first value to match (may be null)
value2 - the second value to match (may be null)


Copyright © 2005–2017 Health Market Science. All rights reserved.