org.apache.ojb.otm.copy
Class CloneableObjectCopyStrategy
java.lang.Object
org.apache.ojb.otm.copy.CloneableObjectCopyStrategy
- All Implemented Interfaces:
- ObjectCopyStrategy
public class CloneableObjectCopyStrategy
- extends Object
- implements ObjectCopyStrategy
- Author:
- matthew.baird
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CloneableObjectCopyStrategy
public CloneableObjectCopyStrategy()
copy
public Object copy(Object obj,
PersistenceBroker broker)
throws ObjectCopyException
- If users want to implement clone on all their objects, we can use this
to make copies. This is hazardous as user may mess it up, but it is also
potentially the fastest way of making a copy.
Usually the OjbCloneable interface should just be delegating to the clone()
operation that the user has implemented.
- 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 © 2007-2011 The Kuali Foundation. All Rights Reserved.