org.ow2.jasmine.event.component
Class SearchFilter
java.lang.Object
org.ow2.jasmine.event.component.SearchFilter
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- SearchDetailFilter, SearchSimpleNotificationFilter
public abstract class SearchFilter
- extends java.lang.Object
- implements java.io.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(java.lang.String key,
java.lang.String value)
Add filters data the the searchFilter. |
java.util.Map<java.lang.String,java.lang.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 |
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.
addFilter
public void addFilter(java.lang.String key,
java.lang.String value)
- Add filters data the the searchFilter.
- Parameters:
key - the column name.value - the value.
getFilters
public final java.util.Map<java.lang.String,java.lang.String> getFilters()
- Returns:
- the filters
isDetail
public boolean isDetail()
- Returns:
- the detail
setDetail
public abstract boolean setDetail()
- Parameters:
detail - the detail to set
Copyright © 2011 OW2 Consortium. All Rights Reserved.