org.apache.ojb.otm.copy
Class MetadataObjectCopyStrategy

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

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

recursively copies an object based on the ClassDescriptor User: matthew.baird Date: Jul 7, 2003 Time: 1:41:58 PM


Constructor Summary
MetadataObjectCopyStrategy()
           
 
Method Summary
 java.lang.Object copy(java.lang.Object obj)
          Uses an IdentityMap to make sure we don't recurse infinitely on the same object in a cyclic object model.
 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

MetadataObjectCopyStrategy

public MetadataObjectCopyStrategy()
Method Detail

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:

copy

public java.lang.Object copy(java.lang.Object obj)
Uses an IdentityMap to make sure we don't recurse infinitely on the same object in a cyclic object model. Proxies

Specified by:
copy in interface ObjectCopyStrategy
Parameters:
obj -
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