|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.beanlib.provider.replicator.ReplicatorTemplate
net.sf.beanlib.provider.BeanTransformer
net.sf.beanlib.hibernate3.Hibernate3BeanTransformer
public class Hibernate3BeanTransformer
A Hibernate 3 Bean Transformer is simply a BeanTransformer
with the extended capabilities of handling Hibernate (v3.x) objects.
By default, the Hibernate proxies are replaced
with the actual instances, eagerly fetching from the database as necessary.
However, the exact behavior of the transformation process, including whether eager
fetching is enabled or not, can be controlled using the same SPI as BeanTransformer.
BeanTransformer,
Hibernate3BeanReplicator| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface net.sf.beanlib.spi.BeanTransformerSpi |
|---|
net.sf.beanlib.spi.BeanTransformerSpi.Factory |
| Field Summary |
|---|
| Fields inherited from class net.sf.beanlib.provider.replicator.ReplicatorTemplate |
|---|
log |
| Constructor Summary | |
|---|---|
Hibernate3BeanTransformer()
|
|
Hibernate3BeanTransformer(net.sf.beanlib.spi.BeanPopulatorSpi.Factory beanPopulatorFactory)
|
|
| Method Summary | ||
|---|---|---|
protected
|
createToInstance(java.lang.Object from,
java.lang.Class<T> toClass)
Creates a target instance from either the class of the given "from" object or the given toClass, giving priority to the one which is more specific whenever possible. |
|
protected
|
replicate(T from)
Replicate the given from object, recursively if necessary. |
|
| Methods inherited from class net.sf.beanlib.provider.BeanTransformer |
|---|
getArrayReplicatable, getBeanPopulationExceptionHandler, getBeanPopulatorBaseConfig, getBeanPopulatorSpiFactory, getBeanReplicatable, getBeanSourceHandler, getBlobReplicatable, getCalendarReplicatable, getClonedMap, getCollectionReplicatable, getCustomBeanTransformer, getDateReplicatable, getDetailedPropertyFilter, getImmutableReplicatable, getMapReplicatable, getPropertyFilter, getReaderMethodFinder, getSetterMethodCollector, initArrayReplicatableFactory, initBeanPopulationExceptionHandler, initBeanPopulatorBaseConfig, initBeanReplicatableFactory, initBeanSourceHandler, initBlobReplicatableFactory, initCalendarReplicatableFactory, initCollectionReplicatableFactory, initCustomTransformerFactory, initDateReplicatableFactory, initDebug, initDetailedPropertyFilter, initImmutableReplicatableFactory, initMapReplicatableFactory, initPropertyFilter, initReaderMethodFinder, initSetterMethodCollector, isDebug, reset, transform |
| Methods inherited from class net.sf.beanlib.provider.replicator.ReplicatorTemplate |
|---|
chooseClass, containsTargetCloned, createToInstance, createToInstanceWithComparator, getCustomerBeanTransformer, getTargetCloned, newInstanceAsPrivileged, populateBean, putTargetCloned, replicate, replicateByBeanReplicatable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Hibernate3BeanTransformer()
public Hibernate3BeanTransformer(net.sf.beanlib.spi.BeanPopulatorSpi.Factory beanPopulatorFactory)
| Method Detail |
|---|
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
createToInstance in class net.sf.beanlib.provider.replicator.ReplicatorTemplatejava.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.SecurityException
java.lang.NoSuchMethodExceptionprotected <T> T replicate(T from)
replicate in class net.sf.beanlib.provider.replicator.ReplicatorTemplate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||