org.apache.ojb.otm.copy
Class NoOpObjectCopyStrategy
java.lang.Object
org.apache.ojb.otm.copy.NoOpObjectCopyStrategy
- All Implemented Interfaces:
- ObjectCopyStrategy
public class NoOpObjectCopyStrategy
- extends Object
- implements ObjectCopyStrategy
The NoOpObjectCopyStrategy does not make a copy. It merely returns the same object.
For backwards compatability with OJB 0.9, we include a way to no-op copy
the object into the transactional context. This means that we are operating
on a live object, and can potentially mess stuff up. This is essentially
supporting a uncommitted-read only strategy.
- Author:
- matthew.baird
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoOpObjectCopyStrategy
public NoOpObjectCopyStrategy()
copy
public Object copy(Object obj,
PersistenceBroker broker)
throws ObjectCopyException
- Description copied from interface:
ObjectCopyStrategy
- Make a copy of the given object
- Specified by:
copy in interface ObjectCopyStrategy
- Parameters:
obj - object to be copied
- Returns:
- Object the copy of the object
- Throws:
ObjectCopyException- See Also:
org.apache.ojb.otm.copy.ObjectCopyStrategy#copy(Object)
Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.