com.arsdigita.persistence
Interface CompoundFilter

All Superinterfaces:
Filter

public interface CompoundFilter
extends Filter

CompoundFilters are used to AND or OR multiple filters together.

Version:
$Revision: #6 $ $Date: 2004/04/07 $
Author:
randyg@alum.mit.edu

Field Summary
static String versionId
           
 
Fields inherited from interface com.arsdigita.persistence.Filter
FILTER
 
Method Summary
 CompoundFilter addFilter(Filter filter)
          This adds the passed in filter to this query and adds it according to the type of filter this is (if it was created using Filter.or() then it ORs this filter with the existing ones; otherwise it ANDs it);
 CompoundFilter addFilter(String conditions)
          This provides a mechanism for adding conditions to the existing filter.
 boolean removeFilter(Filter filter)
          Removes the passed in filter if it was directly added to this compound filter.
 
Methods inherited from interface com.arsdigita.persistence.Filter
getBindings, getConditions, set
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Method Detail

addFilter

public CompoundFilter addFilter(String conditions)
This provides a mechanism for adding conditions to the existing filter. This appends the passed in conditions to the existing conditions with an "and" statement. There is no way to remove conditions.

Parameters:
conditions - The conditions to add to this filter

addFilter

public CompoundFilter addFilter(Filter filter)
This adds the passed in filter to this query and adds it according to the type of filter this is (if it was created using Filter.or() then it ORs this filter with the existing ones; otherwise it ANDs it);

Returns:
this

removeFilter

public boolean removeFilter(Filter filter)
Removes the passed in filter if it was directly added to this compound filter.



Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC