org.ow2.jasmine.event.component
Class SearchFilter

java.lang.Object
  extended by org.ow2.jasmine.event.component.SearchFilter
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
SearchDetailFilter, SearchSimpleNotificationFilter

public abstract class SearchFilter
extends Object
implements Serializable

Filter to specify to retrieve a notification in the DataBase. Each specified filter will aim at the following statement in the sql query : where SearchFilter#getKey() = SearchFilter#getValue()

Author:
Guillaume Renault
See Also:
Serialized Form

Constructor Summary
SearchFilter()
          Constructor that initializes the Search Filter.
 
Method Summary
 void addFilter(String key, String value)
          Add filters data the the searchFilter.
 Map<String,String> getFilters()
           
 boolean isDetail()
           
abstract  boolean setDetail()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchFilter

public SearchFilter()
Constructor that initializes the Search Filter.

Parameters:
key - The name of the key on which the SQL statement is done.
value - The expected value for the specified key.
Method Detail

addFilter

public void addFilter(String key,
                      String value)
Add filters data the the searchFilter.

Parameters:
key - the column name.
value - the value.

getFilters

public final Map<String,String> getFilters()
Returns:
the filters

isDetail

public boolean isDetail()
Returns:
the detail

setDetail

public abstract boolean setDetail()
Parameters:
detail - the detail to set


Copyright © 2012 OW2 Consortium. All Rights Reserved.