|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EffectiveNodeTypeCache
EffectiveNodeTypeCache
defines the interface for a cache for
effective node types. Effective node types are addressed by EffectiveNodeTypeCache.Key
s.
Nested Class Summary | |
---|---|
static interface |
EffectiveNodeTypeCache.Key
An ENTKey uniquely identifies
a combination (i.e. |
Method Summary | |
---|---|
void |
clear()
Clears the cache. |
boolean |
contains(EffectiveNodeTypeCache.Key key)
Checks if the effective node type for the given key exists. |
EffectiveNodeTypeCache.Key |
findBest(EffectiveNodeTypeCache.Key key)
Searches the best key k for which the given key is a super
set, i.e. |
EffectiveNodeType |
get(EffectiveNodeTypeCache.Key key)
Returns the effective node type for the given key or null if
the desired node type is not cached. |
EffectiveNodeTypeCache.Key |
getKey(Name[] ntNames)
Returns a key for an effective node type that consists of the given node type names. |
void |
invalidate(Name name)
Removes all effective node types that are aggregated with the node type of the given name. |
void |
put(EffectiveNodeType ent)
Puts an effective node type to the cache. |
void |
put(EffectiveNodeTypeCache.Key key,
EffectiveNodeType ent)
Puts an effective node type to the cache for the given key. |
Methods inherited from interface org.apache.jackrabbit.jcr2spi.util.Dumpable |
---|
dump |
Method Detail |
---|
void put(EffectiveNodeType ent)
ent
- the effective node type to put to the cachevoid put(EffectiveNodeTypeCache.Key key, EffectiveNodeType ent)
key
- the key for the effective node typeent
- the effective node type to put to the cacheboolean contains(EffectiveNodeTypeCache.Key key)
key
- the key to check
true
if the effective node type is cached;
false
otherwise.EffectiveNodeType get(EffectiveNodeTypeCache.Key key)
null
if
the desired node type is not cached.
key
- the key for the effective node type.
null
EffectiveNodeTypeCache.Key getKey(Name[] ntNames)
ntNames
- the array of node type names for the effective node type
void invalidate(Name name)
name
- the name of the node type.EffectiveNodeTypeCache.Key findBest(EffectiveNodeTypeCache.Key key)
key
is a super
set, i.e. for which contains(Key)
} returns
true
. If an already cached effective node type matches the
key it is returned.
key
- the key for which the subkey is to be searched
null
if no key could be found.void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |