com.funambol.syncclient.sps.common
Class FindFilter

java.lang.Object
  extended by com.funambol.syncclient.sps.common.RecordFilter
      extended by com.funambol.syncclient.sps.common.FindFilter

public class FindFilter
extends RecordFilter

This interface implements methods about search filter in database

Version:
$Id: FindFilter.java,v 1.3 2007-12-22 18:09:17 nichele Exp $

Constructor Summary
FindFilter(DataStore dataStore, java.util.Vector valueToFind, boolean include, boolean caseSensitive)
           
 
Method Summary
 boolean accept(Record record)
          This method is about to check is record about criteria in dataStore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FindFilter

public FindFilter(DataStore dataStore,
                  java.util.Vector valueToFind,
                  boolean include,
                  boolean caseSensitive)
Parameters:
dataStore - dataStore name
valueToFind - vector contains fields value to find
include - true valueToFind fields contains in record fields, false valueToFind fields equals record fields
caseSensitive - true case sensitive find, false match case find
Method Detail

accept

public boolean accept(Record record)
This method is about to check is record about criteria in dataStore

Specified by:
accept in class RecordFilter
Parameters:
record - to check
Returns:
true if the record is accept about criteria false if the record is not accept about criteria


Copyright © 2010 Funambol. All Rights Reserved.