net.sf.beanlib.hibernate3
Class Hibernate3MapReplicator
java.lang.Object
net.sf.beanlib.provider.replicator.ReplicatorTemplate
net.sf.beanlib.provider.replicator.MapReplicator
net.sf.beanlib.hibernate3.Hibernate3MapReplicator
- All Implemented Interfaces:
- MapReplicatorSpi
public class Hibernate3MapReplicator
- extends MapReplicator
Hibernate 3 specific Map Replicator.
- Author:
- Joe D. Velopar
Methods inherited from class net.sf.beanlib.provider.replicator.ReplicatorTemplate |
chooseClass, createToInstance, createToInstanceWithComparator, getTargetCloned, newInstanceAsPrivileged, 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 Hibernate3MapReplicator.Factory factory
Hibernate3MapReplicator
protected Hibernate3MapReplicator(BeanTransformerSpi beanTransformer)
getFactory
public static Hibernate3MapReplicator.Factory getFactory()
newMapReplicatable
public static Hibernate3MapReplicator newMapReplicatable(BeanTransformerSpi beanTransformer)
replicateMap
public <K,V,T> T replicateMap(Map<K,V> from,
Class<T> toClass)
- Description copied from interface:
MapReplicatorSpi
- Returns a replicated map.
- Specified by:
replicateMap
in interface MapReplicatorSpi
- Overrides:
replicateMap
in class MapReplicator
- Type Parameters:
K
- key type of the from mapV
- value type of the from mapT
- target class type- Parameters:
from
- from maptoClass
- target class
createToInstance
protected <T> T createToInstance(Object from,
Class<T> toClass)
throws InstantiationException,
IllegalAccessException,
SecurityException,
NoSuchMethodException
- Overrides:
createToInstance
in class ReplicatorTemplate
- Throws:
InstantiationException
IllegalAccessException
SecurityException
NoSuchMethodException