| java.lang.Object org.apache.ojb.broker.cache.MaterializationCache
MaterializationCache | public class MaterializationCache implements ObjectCacheInternal(Code) | | A wrapper class for
ObjectCache implementations used to materialize object graphs and
push the fully materialized object to the real object cache.
To avoid passing of partial materialized objects to cache this class act as a temporary storage
for unmaterialized (new read or refreshed) objects.
author: Armin Waibel version: $Id: MaterializationCache.java,v 1.1.2.6 2005/12/21 22:24:15 tomdz Exp $ |
Inner Class :final static class ObjectEntry | |
clear | public void clear()(Code) | | |
doLocalClear | public void doLocalClear()(Code) | | Clears the internal used cache for object materialization.
|
enableMaterializationCache | public void enableMaterializationCache()(Code) | | For internal use only! Helper method to guarantee that only full materialized objects
will be pushed to the application cache regardless if an local PB transaction
is running or not. When a complex object is materialized there will be
nested calls to the same PB instance methods, e.g. materialization of a referenced
object which itself have several references, ...
This method and
MaterializationCache.disableMaterializationCache() are used to delimit nested calls
and to detect the end of an object materialization and avoid endless loops on circular
references.
If an code block with 'enabledMaterializationCache' throws an exception, in catch-block
method
MaterializationCache.doLocalClear() have to be called.
|
isEnabledMaterialisationCache | public boolean isEnabledMaterialisationCache()(Code) | | Returns true if the materialisation cache is enabled, otherwise false.
|
|
|