planetj.database.filter
Class BasicRowFilter

java.lang.Object
  |
  +--planetj.database.filter.GenericRowFilter
        |
        +--planetj.database.filter.BasicRowFilter
All Implemented Interfaces:
IFilter, Serializable

public class BasicRowFilter
extends GenericRowFilter
implements Serializable

A Filter for filtering Row objects. This filter works by comparing one of the Row's fields with an object.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface planetj.util.IFilter
COMPARISON_CONVERSION, CONTAINS, ENDS_WITH, EQUAL, GREATER_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL, STARTS_WITH
 
Constructor Summary
BasicRowFilter(String pFieldName, int pComparison, Object pFilterValue)
          Creates a new RowFilter
 
Method Summary
 String getFieldName()
          Identifies the field within the row that will be examined
 int getFilterComparison()
          Gets the type of comparison that will take place
 Object getFilterValue()
          Gets the value that the field's value will be compared to
 boolean meetsCriteria(Object o)
          Returns true if the object meets this filter's criteria.
 boolean meetsFieldCriteria(Row row)
           
 String toString()
           
 
Methods inherited from class planetj.database.filter.GenericRowFilter
getFilteredRowCount, getRowCollectionClass, setRowCollectionClass
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BasicRowFilter

public BasicRowFilter(String pFieldName,
                      int pComparison,
                      Object pFilterValue)
Creates a new RowFilter

Method Detail

getFieldName

public String getFieldName()
Identifies the field within the row that will be examined


getFilterComparison

public int getFilterComparison()
Gets the type of comparison that will take place


getFilterValue

public Object getFilterValue()
Gets the value that the field's value will be compared to


meetsCriteria

public boolean meetsCriteria(Object o)
                      throws CMException
Returns true if the object meets this filter's criteria.

Specified by:
meetsCriteria in interface IFilter
CMException

meetsFieldCriteria

public boolean meetsFieldCriteria(Row row)
                           throws CMException
CMException

toString

public String toString()
Overrides:
toString in class Object