org.apache.ojb.broker.cache
Class ObjectCacheTwoLevelImpl.CopyStrategyImpl
java.lang.Object
org.apache.ojb.broker.cache.ObjectCacheTwoLevelImpl.CopyStrategyImpl
- All Implemented Interfaces:
- ObjectCacheTwoLevelImpl.CopyStrategy
- Enclosing class:
- ObjectCacheTwoLevelImpl
public static class ObjectCacheTwoLevelImpl.CopyStrategyImpl
- extends Object
- implements ObjectCacheTwoLevelImpl.CopyStrategy
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectCacheTwoLevelImpl.CopyStrategyImpl
public ObjectCacheTwoLevelImpl.CopyStrategyImpl()
read
public Object read(PersistenceBroker broker,
Object obj)
- Description copied from interface:
ObjectCacheTwoLevelImpl.CopyStrategy
- Called when an object is read from the application cache (second level cache)
before the object is full materialized, see
ObjectCacheTwoLevelImpl.materializeFullObject(Object).
- Specified by:
read in interface ObjectCacheTwoLevelImpl.CopyStrategy
- Parameters:
broker - The current used PersistenceBroker instance.obj - The object read from the application cache.
- Returns:
- A copy of the object.
write
public Object write(PersistenceBroker broker,
Object obj,
Object oldObject)
- Description copied from interface:
ObjectCacheTwoLevelImpl.CopyStrategy
- Called before an object is written to the application cache (second level cache).
- Specified by:
write in interface ObjectCacheTwoLevelImpl.CopyStrategy
- Parameters:
broker - The current used PersistenceBroker instance.obj - The object to cache in application cache.oldObject - The old cache object or null
- Returns:
- A copy of the object to write to application cache.
Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.