|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.cache.aop.TreeCacheAopDelegate
public class TreeCacheAopDelegate
Delegate class for PojoCache.
Field Summary | |
---|---|
protected java.lang.ThreadLocal |
bulkRemove_
|
protected PojoCache |
cache_
|
protected CollectionClassHandler |
collectionHandler_
|
protected java.lang.String |
DETACH
|
protected ObjectGraphHandler |
graphHandler_
|
protected InternalDelegate |
internal_
|
protected static org.apache.commons.logging.Log |
log
|
protected SerializableObjectHandler |
serializableHandler_
|
Constructor Summary | |
---|---|
TreeCacheAopDelegate(PojoCache cache)
|
Method Summary | |
---|---|
protected java.util.Map |
_findObjects(Fqn fqn)
|
protected java.lang.Object |
_getObject(Fqn fqn)
|
protected java.lang.Object |
_getObjectInternal(Fqn fqn)
|
protected java.lang.Object |
_putObject(Fqn fqn,
java.lang.Object obj)
Note that caller of this method will take care of synchronization within the fqn sub-tree. |
protected void |
_regularPutObject(Fqn fqn,
java.lang.Object obj,
org.jboss.aop.InstanceAdvisor advisor,
CachedType type)
|
protected void |
_regularRemoveObject(Fqn fqn,
boolean removeCacheInterceptor,
java.lang.Object result,
java.lang.Class clazz,
boolean evict)
|
java.lang.Object |
_removeObject(Fqn fqn,
boolean removeCacheInterceptor,
boolean evict)
Note that caller of this method will take care of synchronization within the fqn sub-tree. |
protected boolean |
bulkRemove(Fqn fqn,
java.lang.Object obj)
Based on the pojo to perform a bulk remove recursively if there is no object graph relationship for performance optimization. |
protected void |
detachInterceptor(org.jboss.aop.InstanceAdvisor advisor,
org.jboss.aop.advice.Interceptor interceptor,
boolean detachOnly,
java.util.Map undoMap)
|
protected void |
findChildObjects(Fqn fqn,
java.util.Map map)
|
boolean |
getBulkRemove()
|
protected boolean |
pojoGraphMultipleReferenced(java.lang.Object obj,
java.util.Map undoMap)
Check recursively if the pojo and its graph is multiple referenced. |
void |
setBulkRemove(boolean bulk)
|
protected void |
undoInterceptorDetach(java.util.Map undoMap)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PojoCache cache_
protected static final org.apache.commons.logging.Log log
protected InternalDelegate internal_
protected ObjectGraphHandler graphHandler_
protected CollectionClassHandler collectionHandler_
protected SerializableObjectHandler serializableHandler_
protected java.lang.ThreadLocal bulkRemove_
protected final java.lang.String DETACH
Constructor Detail |
---|
public TreeCacheAopDelegate(PojoCache cache)
Method Detail |
---|
public void setBulkRemove(boolean bulk)
public boolean getBulkRemove()
protected java.lang.Object _getObject(Fqn fqn) throws CacheException
CacheException
protected java.lang.Object _getObjectInternal(Fqn fqn) throws CacheException
CacheException
protected java.lang.Object _putObject(Fqn fqn, java.lang.Object obj) throws CacheException
fqn
sub-tree.
fqn
- obj
-
CacheException
protected boolean bulkRemove(Fqn fqn, java.lang.Object obj) throws CacheException
CacheException
protected void detachInterceptor(org.jboss.aop.InstanceAdvisor advisor, org.jboss.aop.advice.Interceptor interceptor, boolean detachOnly, java.util.Map undoMap)
protected void undoInterceptorDetach(java.util.Map undoMap)
protected boolean pojoGraphMultipleReferenced(java.lang.Object obj, java.util.Map undoMap) throws CacheException
CacheException
protected void _regularPutObject(Fqn fqn, java.lang.Object obj, org.jboss.aop.InstanceAdvisor advisor, CachedType type) throws CacheException
CacheException
public java.lang.Object _removeObject(Fqn fqn, boolean removeCacheInterceptor, boolean evict) throws CacheException
fqn
sub-tree.
fqn
- removeCacheInterceptor
- evict
-
CacheException
protected void _regularRemoveObject(Fqn fqn, boolean removeCacheInterceptor, java.lang.Object result, java.lang.Class clazz, boolean evict) throws CacheException
CacheException
protected java.util.Map _findObjects(Fqn fqn) throws CacheException
CacheException
protected void findChildObjects(Fqn fqn, java.util.Map map) throws CacheException
CacheException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |