org.apache.ojb.otm.copy
Class SerializeObjectCopyStrategy

java.lang.Object
  extended by org.apache.ojb.otm.copy.SerializeObjectCopyStrategy
All Implemented Interfaces:
ObjectCopyStrategy

public final class SerializeObjectCopyStrategy
extends Object
implements ObjectCopyStrategy

Does in-memory serialization to achieve a copy of the object graph.

Author:
matthew.baird
See Also:
ObjectCopyStrategy

Constructor Summary
SerializeObjectCopyStrategy()
           
 
Method Summary
 Object copy(Object obj, PersistenceBroker broker)
          This implementation will probably be slower than the metadata object copy, but this was easier to implement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializeObjectCopyStrategy

public SerializeObjectCopyStrategy()
Method Detail

copy

public Object copy(Object obj,
                   PersistenceBroker broker)
            throws ObjectCopyException
This implementation will probably be slower than the metadata object copy, but this was easier to implement.

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.