org.apache.openjpa.writebehind
Class WriteBehindCacheManagerImpl

java.lang.Object
  extended by org.apache.openjpa.writebehind.WriteBehindCacheManagerImpl
All Implemented Interfaces:
WriteBehindCacheManager

public class WriteBehindCacheManagerImpl
extends Object
implements WriteBehindCacheManager


Constructor Summary
WriteBehindCacheManagerImpl()
           
 
Method Summary
 WriteBehindCache getSystemWriteBehindCache()
          Get the default WriteBehind cache.
 WriteBehindCache getWriteBehindCache(String name)
          Obtain a named WriteBehindCache.
 void initialize(OpenJPAConfiguration conf, ObjectValue writeBehindCache)
          Initialize the WriteBehindCacheManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriteBehindCacheManagerImpl

public WriteBehindCacheManagerImpl()
Method Detail

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 use
writeBehindCache - The pluginvalue for WritBehindCache.


Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.