|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface describes a FilterCache. FilterCache implementations enable to track the Filters. Basically they provide the means to know if a filter was used, if the objects currently available in the application cover the Filter. For instance it can be used in Cache implementations to avoid a call to a database or to a remote server while the needed objects are already locally available.
Method Summary | |
Filter[] |
getFilters()
Enables access to the filters stored in this instance. |
void |
invalidate(Filter filter)
"Invalidates" the given filter. |
void |
invalidate(java.lang.Object obj)
Invalidates all the filters contained in this class that "accept" the object. |
void |
invalidateAll()
Invalidate all the filters contained in this instance. |
boolean |
isValid(Filter filter)
Tells whether a filter is a "valid" one. |
void |
validate(Filter filter)
Tags the given filter as "valid". |
boolean |
validates(java.lang.Object obj)
This method enables to test whether an Object is accepted by at least one of the Caches present in the FilterCache. |
Method Detail |
public Filter[] getFilters()
public boolean isValid(Filter filter)
filter
- The Filter object we want to know about.
public void validate(Filter filter)
filter
- The filter we want to set as "valid".public void invalidate(Filter filter)
filter
- The Filter object we want to invalidate.public void invalidate(java.lang.Object obj)
obj
- the object to be tested against the Filters present in this
FilterCache.public void invalidateAll()
public boolean validates(java.lang.Object obj)
obj
- the object to be tested against the Filters present in this
FilterCache.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |