org.apache.ojb.otm.copy
Class ReflectiveObjectCopyStrategy

java.lang.Object
  extended byorg.apache.ojb.otm.copy.ReflectiveObjectCopyStrategy
All Implemented Interfaces:
ObjectCopyStrategy

public final class ReflectiveObjectCopyStrategy
extends java.lang.Object
implements ObjectCopyStrategy

User: matthew.baird Date: Jul 7, 2003 Time: 3:05:22 PM


Constructor Summary
ReflectiveObjectCopyStrategy()
           
 
Method Summary
 java.lang.Object copy(java.lang.Object toCopy)
          makes a deep clone of the object, using reflection.
 java.lang.Object copy(java.lang.Object src, java.lang.Object dest)
          copy src object into dest object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectiveObjectCopyStrategy

public ReflectiveObjectCopyStrategy()
Method Detail

copy

public final java.lang.Object copy(java.lang.Object toCopy)
makes a deep clone of the object, using reflection.

Specified by:
copy in interface ObjectCopyStrategy
Parameters:
toCopy - the object you want to copy
Returns:

copy

public java.lang.Object copy(java.lang.Object src,
                             java.lang.Object dest)
Description copied from interface: ObjectCopyStrategy
copy src object into dest object

Specified by:
copy in interface ObjectCopyStrategy
Parameters:
src -
dest -
Returns:


Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14