|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.mlw.vlh.adapter.ValueListAdapterCacheDecorator
This decorator is a lazy way to implement caching. This is ideal for select boxes and the like.
Note that to make this thread safe sorting and paging must be defined in the parent ValueListAdapter
Field Summary |
Fields inherited from interface net.mlw.vlh.ValueListAdapter |
DO_FILTER, DO_FOCUS, DO_NOTHING, DO_PAGE, DO_SORT |
Constructor Summary | |
ValueListAdapterCacheDecorator()
|
Method Summary | |
int |
getAdapterType()
This method tells the Service what still needs to be done on the Collection before returning the data. |
ValueList |
getValueList(String name,
ValueListInfo info)
Gets a ValueList |
void |
setCacheTimeout(long cacheTimeout)
Sets the duration in milliseconds to allow cached data to stick around. |
void |
setParent(ValueListAdapter decoratedValueListAdapter)
The underling ValueListAdapter that retrieves the ValueList to be cached. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ValueListAdapterCacheDecorator()
Method Detail |
public int getAdapterType()
ValueListAdapter
getAdapterType
in interface ValueListAdapter
public int getAdapterType() { return DO_SORT | DO_PAGE; }
ValueListAdapter.getAdapterType()
public ValueList getValueList(String name, ValueListInfo info)
ValueListAdapter
getValueList
in interface ValueListAdapter
info
- The ValueList
informationname
- The name of the ValueList
ValueList
ValueListAdapter.getValueList(java.lang.String, net.mlw.vlh.ValueListInfo)
public void setCacheTimeout(long cacheTimeout)
public void setParent(ValueListAdapter decoratedValueListAdapter)
decoratedValueListAdapter
- The parent ValueListAdapter.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |