to.etc.domui.util.db
Class QCopy

java.lang.Object
  extended by to.etc.domui.util.db.QCopy

public class QCopy
extends java.lang.Object

EXPERIMENTAL INTERFACE Pluggable interface to copy a source model to a target model.

Author:
Frits Jalvingh Created on Jan 8, 2010

Constructor Summary
QCopy()
           
 
Method Summary
static
<T> T
copyDeep(QDataContext targetdc, QDataContext sourcedc, T source)
           
static
<T> T
copyInstanceShallow(QDataContext dc, T source)
           
static void setImplementation(IModelCopier m)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QCopy

public QCopy()
Method Detail

setImplementation

public static void setImplementation(IModelCopier m)

copyInstanceShallow

public static <T> T copyInstanceShallow(QDataContext dc,
                                        T source)
                             throws java.lang.Exception
Throws:
java.lang.Exception

copyDeep

public static <T> T copyDeep(QDataContext targetdc,
                             QDataContext sourcedc,
                             T source)
                  throws java.lang.Exception
Throws:
java.lang.Exception