org.apache.ojb.otm.copy
Interface ObjectCopyStrategy

All Known Implementing Classes:
CloneableObjectCopyStrategy, MetadataObjectCopyStrategy, NoOpObjectCopyStrategy, ReflectiveObjectCopyStrategy, SerializeObjectCopyStrategy

public interface ObjectCopyStrategy

Strategy to copy classes. The ObjectCopyStrategy is used by Cache to copy objects while shuttling in and out of the cache.

Author:
Raghu Rajah

Method Summary
 java.lang.Object copy(java.lang.Object obj)
          Make a copy of the given object
 java.lang.Object copy(java.lang.Object src, java.lang.Object dest)
          copy src object into dest object
 

Method Detail

copy

public java.lang.Object copy(java.lang.Object obj)
Make a copy of the given object

Parameters:
obj - object to be copied
Returns:
Object the copy of the object

copy

public java.lang.Object copy(java.lang.Object src,
                             java.lang.Object dest)
copy src object into dest object

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