com.martiansoftware.trivialpersist.helpers
Class FieldEqualsFilter

java.lang.Object
  extended bycom.martiansoftware.trivialpersist.helpers.FieldEqualsFilter
All Implemented Interfaces:
RecordFilter

public class FieldEqualsFilter
extends Object
implements RecordFilter

Author:
mlamb

Constructor Summary
FieldEqualsFilter(String fieldName, Object value)
           
 
Method Summary
 boolean accept(Record r)
          Returns true iff the specified record should be included in the current table select.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldEqualsFilter

public FieldEqualsFilter(String fieldName,
                         Object value)
Method Detail

accept

public boolean accept(Record r)
Description copied from interface: RecordFilter
Returns true iff the specified record should be included in the current table select.

Specified by:
accept in interface RecordFilter
Parameters:
r - the record to check
Returns:
true iff the specified record should be included in the current table select.


Copyright © 2004, Martian Software, Inc.. All Rights Reserved.
For the latest version and documentation, please visit http://www.martiansoftware.com/trivialpersist