|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bankframe.services.cache.CacheIndex
public class CacheIndex
Implements CacheIndexer used to apply an index definition on a given cache. Implements CacheListener so as to be informed of cache key remove events.
| Constructor Summary | |
|---|---|
CacheIndex()
Constructor for CacheIndex. |
|
CacheIndex(Cache cache,
DataPacket structure)
Constructor for CacheIndex. |
|
CacheIndex(Cache cache,
String indexDPName,
String[] indexFieldNames)
Constructor for CacheIndex. |
|
CacheIndex(String indexName)
Constructor for CacheIndex. |
|
| Method Summary | |
|---|---|
void |
cacheChanged(CacheEvent event)
If a key is removed from the dataCache then it must also be removed from the indexCache. |
Collection |
get(Object data)
This method will return a collection of keys into the dataCache that match the indexKey produced from the given data object. |
Cache |
getDataCache()
Returns the dataCache. |
String |
getIndexDPName()
Returns the indexDPName. |
String[] |
getIndexFieldNames()
Returns the indexFieldNames. |
Object |
put(Object key)
Adds a record to the index. |
void |
setDataCache(Cache dataCache)
Sets the dataCache. |
void |
setIndexDPName(String indexDPName)
Sets the indexDPName. |
void |
setIndexFieldNames(String[] indexFieldNames)
Sets the indexFieldNames. |
void |
setIndexName(String indexName)
Given the indexName the index structure is determined and this CacheIndex instance is then configured. |
void |
setIndexStructure(DataPacket indexStructure)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CacheIndex()
public CacheIndex(Cache cache,
DataPacket structure)
public CacheIndex(Cache cache,
String indexDPName,
String[] indexFieldNames)
public CacheIndex(String indexName)
| Method Detail |
|---|
public void setIndexName(String indexName)
setIndexName in interface CacheIndexerindexName - public void cacheChanged(CacheEvent event)
cacheChanged in interface CacheListenerCacheListener.cacheChanged(CacheEvent)public Object put(Object key)
put in interface CacheIndexerpublic Collection get(Object data)
get in interface CacheIndexerpublic Cache getDataCache()
getDataCache in interface CacheIndexerpublic String getIndexDPName()
getIndexDPName in interface CacheIndexerpublic String[] getIndexFieldNames()
getIndexFieldNames in interface CacheIndexerpublic void setDataCache(Cache dataCache)
setDataCache in interface CacheIndexerdataCache - The dataCache to setpublic void setIndexDPName(String indexDPName)
setIndexDPName in interface CacheIndexerindexDPName - The indexDPName to setpublic void setIndexFieldNames(String[] indexFieldNames)
setIndexFieldNames in interface CacheIndexerindexFieldNames - The indexFieldNames to setpublic void setIndexStructure(DataPacket indexStructure)
setIndexStructure in interface CacheIndexer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||