net.sf.beanlib.hibernate3
Class Hibernate3CollectionReplicator

java.lang.Object
  extended by net.sf.beanlib.provider.replicator.ReplicatorTemplate
      extended by net.sf.beanlib.provider.replicator.CollectionReplicator
          extended by net.sf.beanlib.hibernate3.Hibernate3CollectionReplicator
All Implemented Interfaces:
net.sf.beanlib.spi.replicator.CollectionReplicatorSpi

public class Hibernate3CollectionReplicator
extends net.sf.beanlib.provider.replicator.CollectionReplicator

Hibernate 3 specific Collection Replicator.

Author:
Joe D. Velopar

Nested Class Summary
static class Hibernate3CollectionReplicator.Factory
          Factory for Hibernate3CollectionReplicator
 
Field Summary
 
Fields inherited from class net.sf.beanlib.provider.replicator.ReplicatorTemplate
log
 
Constructor Summary
protected Hibernate3CollectionReplicator(net.sf.beanlib.spi.BeanTransformerSpi beanTransformer)
           
 
Method Summary
protected
<T> java.util.Collection<T>
createToCollection(java.util.Collection<T> from)
           
protected
<T> T
createToInstance(java.lang.Object from, java.lang.Class<T> toClass)
           
static Hibernate3CollectionReplicator.Factory getFactory()
           
static Hibernate3CollectionReplicator newCollectionReplicatable(net.sf.beanlib.spi.BeanTransformerSpi beanTransformer)
           
protected
<T> T
replicate(T from)
           
<V,T> T
replicateCollection(java.util.Collection<V> from, java.lang.Class<T> toClass)
           
 
Methods inherited from class net.sf.beanlib.provider.replicator.CollectionReplicator
createToComparator, createToInstanceAsCollection, createToSortedSetWithComparator
 
Methods inherited from class net.sf.beanlib.provider.replicator.ReplicatorTemplate
chooseClass, containsTargetCloned, createToInstance, createToInstanceWithComparator, getCustomerBeanTransformer, getTargetCloned, newInstanceAsPrivileged, populateBean, putTargetCloned, replicate, replicateByBeanReplicatable, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Hibernate3CollectionReplicator

protected Hibernate3CollectionReplicator(net.sf.beanlib.spi.BeanTransformerSpi beanTransformer)
Method Detail

getFactory

public static final Hibernate3CollectionReplicator.Factory getFactory()

newCollectionReplicatable

public static Hibernate3CollectionReplicator newCollectionReplicatable(net.sf.beanlib.spi.BeanTransformerSpi beanTransformer)

replicateCollection

public <V,T> T replicateCollection(java.util.Collection<V> from,
                                   java.lang.Class<T> toClass)
Specified by:
replicateCollection in interface net.sf.beanlib.spi.replicator.CollectionReplicatorSpi
Overrides:
replicateCollection in class net.sf.beanlib.provider.replicator.CollectionReplicator

createToCollection

protected <T> java.util.Collection<T> createToCollection(java.util.Collection<T> from)
                                              throws java.lang.InstantiationException,
                                                     java.lang.IllegalAccessException,
                                                     java.lang.SecurityException,
                                                     java.lang.NoSuchMethodException,
                                                     java.lang.reflect.InvocationTargetException
Overrides:
createToCollection in class net.sf.beanlib.provider.replicator.CollectionReplicator
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.SecurityException
java.lang.NoSuchMethodException
java.lang.reflect.InvocationTargetException

createToInstance

protected <T> T createToInstance(java.lang.Object from,
                                 java.lang.Class<T> toClass)
                      throws java.lang.InstantiationException,
                             java.lang.IllegalAccessException,
                             java.lang.SecurityException,
                             java.lang.NoSuchMethodException
Overrides:
createToInstance in class net.sf.beanlib.provider.replicator.ReplicatorTemplate
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.SecurityException
java.lang.NoSuchMethodException

replicate

protected <T> T replicate(T from)
Overrides:
replicate in class net.sf.beanlib.provider.replicator.ReplicatorTemplate


Copyright © 2009. All Rights Reserved.