|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jalios.jcms.AbstractIndexManager
public abstract class AbstractIndexManager
This abstract class provides generic methods to manage data indices.
| Field Summary | |
|---|---|
protected Channel |
channel
|
| Constructor Summary | |
|---|---|
AbstractIndexManager()
|
|
| Method Summary | ||
|---|---|---|
protected
|
addIndexWithSet(Map<K,Set<T>> index,
K key,
T value)
Associates the given value to the given key in the given index. |
|
protected
|
clearIndex(Map<K,V> index,
K key)
Remove the map at the given key in the given index. |
|
protected
|
getIndexWithMap(Map<K,Map<X,Y>> index,
K key)
Returns the map associated to the given key in the given index. |
|
protected
|
getIndexWithMap(Map<K,Map<X,Y>> index,
K key,
X name)
Returns the value associated to the given name for the given key in the given index. |
|
protected
|
getIndexWithSet(Map<K,Set<T>> index,
K key)
Returns the set associated to the given key in the given index. |
|
protected
|
isUndefinedIndexWithSet(Map<K,Set<T>> index,
K key)
Returns true is key is null or if no index (even empty) is stored in the given index. |
|
protected
|
putIndexWithMap(Map<K,Map<X,Y>> index,
K key,
X name,
Y value)
Associates the given value to the given name at the given key in the given index. |
|
protected
|
removeIndexWithMap(Map<K,Map<X,Y>> index,
K key,
X name)
Remove the given name at the given key in the given index. |
|
protected
|
removeIndexWithSet(Map<K,Set<T>> index,
K key,
T value)
Removes the given value for the given key in the given index. |
|
protected
|
setIndexWithSet(Map<K,Set<T>> index,
K key,
Set<T> set)
Associates the given set to the given key in the given index. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Channel channel
| Constructor Detail |
|---|
public AbstractIndexManager()
| Method Detail |
|---|
protected <K extends Data,T> Set<T> getIndexWithSet(Map<K,Set<T>> index,
K key)
index - the indexkey - the key
protected <K extends Data,T> boolean isUndefinedIndexWithSet(Map<K,Set<T>> index,
K key)
index - the indexkey - the key
protected <K extends Data,T> void setIndexWithSet(Map<K,Set<T>> index,
K key,
Set<T> set)
index - the indexkey - the keyset - the set
protected <K extends Data,T> boolean addIndexWithSet(Map<K,Set<T>> index,
K key,
T value)
index - the indexkey - the keyvalue - the value
protected <K extends Data,T> boolean removeIndexWithSet(Map<K,Set<T>> index,
K key,
T value)
index - the indexkey - the keyvalue - the value
protected <K extends Data,X,Y> Map<X,Y> getIndexWithMap(Map<K,Map<X,Y>> index,
K key)
index - the indexkey - the key
protected <K extends Data,X,Y> Y getIndexWithMap(Map<K,Map<X,Y>> index,
K key,
X name)
index - the indexkey - the keyname - the name
protected <K extends Data,X,Y> void putIndexWithMap(Map<K,Map<X,Y>> index,
K key,
X name,
Y value)
index - the indexkey - the keyname - the namevalue - the value
protected <K extends Data,X,Y> Y removeIndexWithMap(Map<K,Map<X,Y>> index,
K key,
X name)
index - the indexkey - the keyname - the name
protected <K extends Data,V> void clearIndex(Map<K,V> index,
K key)
index - the indexkey - the key
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||