public static interface ObjectCacheTwoLevelImpl.CopyStrategy
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
read(PersistenceBroker broker,
java.lang.Object obj)
Called when an object is read from the application cache (second level cache)
before the object is full materialized, see
ObjectCacheTwoLevelImpl.materializeFullObject(Object) . |
java.lang.Object |
write(PersistenceBroker broker,
java.lang.Object obj,
java.lang.Object oldObject)
Called before an object is written to the application cache (second level cache).
|
java.lang.Object read(PersistenceBroker broker, java.lang.Object obj)
ObjectCacheTwoLevelImpl.materializeFullObject(Object)
.broker
- The current used PersistenceBroker
instance.obj
- The object read from the application cache.java.lang.Object write(PersistenceBroker broker, java.lang.Object obj, java.lang.Object oldObject)
broker
- The current used PersistenceBroker
instance.obj
- The object to cache in application cache.oldObject
- The old cache object or null(C) 2002 - 2005 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30