|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.ojb.broker.cache.AbstractMetaCache
org.apache.ojb.broker.cache.CacheDistributor
A intern used AbstractMetaCache implementation acting
as distributor of ObjectCache implementations declared
in configuration metadata.
Reads the name of the used ObjectCache implementation
a) from class-descriptor, or if not found
b) from jdbc-connection-descriptor, or if not found
use a given standard ObjectCache implementation (given by
constructor argument).
| Field Summary |
| Fields inherited from class org.apache.ojb.broker.cache.AbstractMetaCache |
METHOD_CACHE, METHOD_LOOKUP, METHOD_REMOVE |
| Constructor Summary | |
CacheDistributor(PersistenceBroker broker,
ObjectCache defaultCache)
public Default Constructor |
|
| Method Summary | |
void |
clear()
clear the ObjectCache. |
ObjectCache |
getCache(Identity oid,
java.lang.Object obj,
int callingMethod)
This method handle all calls against the ObjectCache interface. |
protected ObjectCacheDescriptor |
searchInClassDescriptor(Identity oid)
Try to lookup ObjectCacheDescriptor in
ClassDescriptor. |
protected ObjectCacheDescriptor |
searchInJdbcConnectionDescriptor()
Lookup ObjectCacheDescriptor in
JdbcConnectionDescriptor. |
java.lang.String |
toString()
|
| Methods inherited from class org.apache.ojb.broker.cache.AbstractMetaCache |
cache, lookup, remove |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CacheDistributor(PersistenceBroker broker,
ObjectCache defaultCache)
| Method Detail |
public void clear()
ObjectCache
public ObjectCache getCache(Identity oid,
java.lang.Object obj,
int callingMethod)
AbstractMetaCacheObjectCache interface.
Note: The parameter obj can be null - e.g. when
lookup or remove method was called.
getCache in class AbstractMetaCacheoid - Identity of the target object.obj - The target object itself or null if not available.callingMethod - Specifies the type of method call against the ObjectCache
interface. AbstractMetaCache.METHOD_CACHE, AbstractMetaCache.METHOD_LOOKUP, AbstractMetaCache.METHOD_REMOVE.
ObjectCache implementation.protected ObjectCacheDescriptor searchInClassDescriptor(Identity oid)
ObjectCacheDescriptor in
ClassDescriptor.
oid -
ObjectCacheDescriptor or null
if none was found.protected ObjectCacheDescriptor searchInJdbcConnectionDescriptor()
ObjectCacheDescriptor in
JdbcConnectionDescriptor.
ObjectCacheDescriptor or null
if none was found.public java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||