org.apache.openjpa.writebehind
Class WriteBehindCacheManagerImpl
java.lang.Object
org.apache.openjpa.writebehind.WriteBehindCacheManagerImpl
- All Implemented Interfaces:
- WriteBehindCacheManager
public class WriteBehindCacheManagerImpl
- extends Object
- implements WriteBehindCacheManager
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WriteBehindCacheManagerImpl
public WriteBehindCacheManagerImpl()
getSystemWriteBehindCache
public WriteBehindCache getSystemWriteBehindCache()
- Description copied from interface:
WriteBehindCacheManager
- Get the default WriteBehind cache.
- Specified by:
getSystemWriteBehindCache
in interface WriteBehindCacheManager
- Returns:
- If WriteBehind mode is enabled the default WriteBehind cache will
be returned. If WriteBehind is not enabled return null.
getWriteBehindCache
public WriteBehindCache getWriteBehindCache(String name)
- Description copied from interface:
WriteBehindCacheManager
- Obtain a named WriteBehindCache.
- Specified by:
getWriteBehindCache
in interface WriteBehindCacheManager
- Parameters:
name
- Name of the WriteBehindCache to obtain
- Returns:
- If WriteBehind mode is enabled a WriteBehindCache for 'name' will
be returned (creating a new instance if needed). Otherwise return
null.
initialize
public void initialize(OpenJPAConfiguration conf,
ObjectValue writeBehindCache)
- Description copied from interface:
WriteBehindCacheManager
- Initialize the WriteBehindCacheManager
- Specified by:
initialize
in interface WriteBehindCacheManager
- Parameters:
conf
- OpenJPAConfiguration in usewriteBehindCache
- The pluginvalue for WritBehindCache.
Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.