net.sf.beanlib.hibernate3
Class Hibernate3CollectionReplicator
java.lang.Object
net.sf.beanlib.provider.replicator.ReplicatorTemplate
net.sf.beanlib.provider.replicator.CollectionReplicator
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
| Fields inherited from class net.sf.beanlib.provider.replicator.ReplicatorTemplate |
log |
| Methods inherited from class net.sf.beanlib.provider.replicator.CollectionReplicator |
createToComparator, createToInstanceAsCollection, createToSortedSetWithComparator |
| Methods inherited from class net.sf.beanlib.provider.replicator.ReplicatorTemplate |
createToInstance, createToInstanceWithComparator, getTargetCloned, populateBean, putTargetCloned, replicate, replicate, replicateByBeanReplicatable, transform |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
factory
private static final Hibernate3CollectionReplicator.Factory factory
Hibernate3CollectionReplicator
protected Hibernate3CollectionReplicator(net.sf.beanlib.spi.BeanTransformerSpi beanTransformer)
getFactory
public static final Hibernate3CollectionReplicator.Factory getFactory()
newCollectionReplicatable
public static Hibernate3CollectionReplicator newCollectionReplicatable(net.sf.beanlib.spi.BeanTransformerSpi beanTransformer)
replicateCollection
public <V,T> T replicateCollection(Collection<V> from,
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 Collection<Object> createToCollection(Collection<?> from)
throws InstantiationException,
IllegalAccessException,
SecurityException,
NoSuchMethodException,
InvocationTargetException
- Overrides:
createToCollection in class net.sf.beanlib.provider.replicator.CollectionReplicator
- Throws:
InstantiationException
IllegalAccessException
SecurityException
NoSuchMethodException
InvocationTargetException
isHibernatePackage
private boolean isHibernatePackage(Class c)
- Returns true if the given class has a package name that starts with "org.hibernate."; false otherwise.
createToInstance
protected <T> T createToInstance(Class<T> toClass)
throws InstantiationException,
IllegalAccessException,
SecurityException,
NoSuchMethodException
- Overrides:
createToInstance in class net.sf.beanlib.provider.replicator.ReplicatorTemplate
- Throws:
InstantiationException
IllegalAccessException
SecurityException
NoSuchMethodException