|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.beanlib.hibernate.HibernateBeanReplicator
public class HibernateBeanReplicator
Hibernate Bean Replicator. Not thread safe.
| Constructor Summary | |
|---|---|
HibernateBeanReplicator(net.sf.beanlib.spi.BeanTransformerSpi hibernateBeanTransformer)
|
|
| Method Summary | ||
|---|---|---|
|
copy(java.lang.Object from,
java.lang.Class<T> toClass)
Returns an instance of the given class with values copied from the given object. |
|
|
copy(T from)
Returns a copy of the given object. |
|
|
deepCopy(java.lang.Object from,
java.lang.Class<T> toClass)
Convenient method to deep copy the given object to an instance of the given class using the default behavior. |
|
|
deepCopy(T from)
Convenient method to deep copy the given object using the default behavior. |
|
net.sf.beanlib.spi.BeanPopulatable |
getBeanPopulatable()
|
|
java.util.Set |
getCollectionPropertyNameSet()
|
|
java.util.Set |
getEntityBeanClassSet()
|
|
net.sf.beanlib.spi.BeanPopulatable |
getVetoer()
|
|
HibernateBeanReplicator |
initBeanPopulatable(net.sf.beanlib.spi.BeanPopulatable beanPopulatable)
|
|
HibernateBeanReplicator |
initBeanSourceHandler(net.sf.beanlib.spi.BeanSourceHandler beanSourceHandler)
|
|
HibernateBeanReplicator |
initCollectionPropertyNameSet(java.util.Set<? extends net.sf.beanlib.CollectionPropertyName> collectionPropertyNameSet)
Used to specify the set of Collection fields to be populated. |
|
HibernateBeanReplicator |
initCustomTransformer(net.sf.beanlib.spi.CustomBeanTransformerSpi.Factory customTransformerFactory)
Deprecated. this method has been a misnormer. Use initCustomTransformerFactory(net.sf.beanlib.spi.CustomBeanTransformerSpi.Factory) instead. |
|
HibernateBeanReplicator |
initCustomTransformerFactory(net.sf.beanlib.spi.CustomBeanTransformerSpi.Factory customTransformerFactory)
Initializes with a custom transformer factory. |
|
HibernateBeanReplicator |
initDebug(boolean debug)
|
|
HibernateBeanReplicator |
initDetailedBeanPopulatable(net.sf.beanlib.spi.DetailedBeanPopulatable detailedBeanPopulatable)
|
|
HibernateBeanReplicator |
initEntityBeanClassSet(java.util.Set<java.lang.Class> entityBeanClassSet)
Used to specify the set of entity beans to be populated. |
|
HibernateBeanReplicator |
initSetterMethodCollector(net.sf.beanlib.spi.BeanMethodCollector setterMethodFinder)
|
|
HibernateBeanReplicator |
initVetoer(net.sf.beanlib.spi.BeanPopulatable vetoer)
|
|
HibernateBeanReplicator |
setReaderMethodFinder(net.sf.beanlib.spi.BeanMethodFinder readerMethodFinder)
|
|
|
shallowCopy(java.lang.Object from,
java.lang.Class<T> toClass)
Convenient method to shallow copy the given object to an instance of the given class using the default behavior. |
|
|
shallowCopy(T from)
Convenient method to shallow copy the given object using the default behavior. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HibernateBeanReplicator(net.sf.beanlib.spi.BeanTransformerSpi hibernateBeanTransformer)
| Method Detail |
|---|
public final <T> T copy(T from)
T - type of the given object.from - given object.
public final <T> T copy(java.lang.Object from,
java.lang.Class<T> toClass)
T - type of the given object.from - given object.toClass - target class of the returned object.public final <T> T deepCopy(T from)
DetailedBeanPopulatable or BeanMethodCollector.
T - from object type.from - given object to be copied.
public final <T> T deepCopy(java.lang.Object from,
java.lang.Class<T> toClass)
DetailedBeanPopulatable or BeanMethodCollector.
T - to object type.from - given object to be copied.toClass - target class of the returned object.
public final <T> T shallowCopy(T from)
DetailedBeanPopulatable or BeanMethodCollector.
T - from object type.from - given object to be copied.
public final <T> T shallowCopy(java.lang.Object from,
java.lang.Class<T> toClass)
DetailedBeanPopulatable or BeanMethodCollector.
T - to object type.from - given object to be copied.
public final net.sf.beanlib.spi.BeanPopulatable getBeanPopulatable()
public final HibernateBeanReplicator initBeanPopulatable(net.sf.beanlib.spi.BeanPopulatable beanPopulatable)
@Deprecated public final HibernateBeanReplicator initCustomTransformer(net.sf.beanlib.spi.CustomBeanTransformerSpi.Factory customTransformerFactory)
initCustomTransformerFactory(net.sf.beanlib.spi.CustomBeanTransformerSpi.Factory) instead.
public final HibernateBeanReplicator initCustomTransformerFactory(net.sf.beanlib.spi.CustomBeanTransformerSpi.Factory customTransformerFactory)
public final HibernateBeanReplicator initBeanSourceHandler(net.sf.beanlib.spi.BeanSourceHandler beanSourceHandler)
public final HibernateBeanReplicator initDebug(boolean debug)
public final HibernateBeanReplicator initDetailedBeanPopulatable(net.sf.beanlib.spi.DetailedBeanPopulatable detailedBeanPopulatable)
public final java.util.Set getEntityBeanClassSet()
public final HibernateBeanReplicator initEntityBeanClassSet(java.util.Set<java.lang.Class> entityBeanClassSet)
entityBeanClassSet - the set of entity beans to be populated;
or null if all entity bean are to be populated.
public final java.util.Set getCollectionPropertyNameSet()
public final HibernateBeanReplicator initCollectionPropertyNameSet(java.util.Set<? extends net.sf.beanlib.CollectionPropertyName> collectionPropertyNameSet)
collectionPropertyNameSet - the set of Collection fields to be populated;
or null if all Collection fields are to be populated.
public final net.sf.beanlib.spi.BeanPopulatable getVetoer()
public final HibernateBeanReplicator initVetoer(net.sf.beanlib.spi.BeanPopulatable vetoer)
public final HibernateBeanReplicator setReaderMethodFinder(net.sf.beanlib.spi.BeanMethodFinder readerMethodFinder)
public final HibernateBeanReplicator initSetterMethodCollector(net.sf.beanlib.spi.BeanMethodCollector setterMethodFinder)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||