|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.beanlib.hibernate3.Hibernate3DtoCopier
public class Hibernate3DtoCopier
Convenient class for converting application specific Hibernate 3 persistence object to DTO.
| Nested Class Summary | |
|---|---|
static class |
Hibernate3DtoCopier.Factory
Factory for Hibernate3DtoCopier. |
| Method Summary | ||
|---|---|---|
protected Hibernate3BeanReplicator |
createHibernateBeanReplicator()
|
|
|
hibernate2dto(java.lang.Class<E> targetEntityType,
java.util.Collection hibernateBeans,
java.lang.Class[] interestedEntityTypes,
net.sf.beanlib.CollectionPropertyName[] collectionPropertyNameArray)
Returns a list of DTO's by cloning portion of the object graph of the given collection of Hibernate beans. |
|
|
hibernate2dto(java.lang.Class<E> targetEntityType,
T entityBean)
|
|
|
hibernate2dto(java.lang.Class<E> targetEntityType,
T entityBean,
java.lang.Class[] interestedEntityTypes,
net.sf.beanlib.CollectionPropertyName[] collectionPropertyNames)
|
|
java.util.List<?> |
hibernate2dto(java.util.Collection<?> hibernateBeans)
Returns a list of DTO's by cloning portion of the object graph of the given collection of Hibernate beans. |
|
|
hibernate2dto(java.lang.Object entityBean)
Returns a DTO by cloning portion of the object graph of the given Hibernate bean. |
|
|
hibernate2dto(T entityBean,
java.lang.Class[] interestedEntityTypes,
net.sf.beanlib.CollectionPropertyName[] collectionPropertyNames)
Returns a DTO by cloning portion of the object graph of the given Hibernate bean. |
|
java.util.List |
hibernate2dtoFully(java.util.Collection hibernateBeans)
Returns a list of DTO's by deep cloning the given collection of Hibernate beans. |
|
|
hibernate2dtoFully(java.lang.Object entityBean)
Returns a DTO by deep cloning the given Hibernate bean. |
|
protected Hibernate3DtoCopier |
init(java.lang.String applicationPackagePrefix,
java.lang.Class applicationSampleClass)
Used to specify the application package prefix, with a sample application class for verification purposes. |
|
boolean |
isApplicationClass(java.lang.Class c)
Returns true iff c is a application class. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
protected Hibernate3BeanReplicator createHibernateBeanReplicator()
protected Hibernate3DtoCopier init(java.lang.String applicationPackagePrefix,
java.lang.Class applicationSampleClass)
public <T> T hibernate2dtoFully(java.lang.Object entityBean)
public java.util.List hibernate2dtoFully(java.util.Collection hibernateBeans)
public <T> T hibernate2dto(java.lang.Object entityBean)
entityBean - given Hibernate Bean
public <E,T> E hibernate2dto(java.lang.Class<E> targetEntityType,
T entityBean)
public <T> T hibernate2dto(T entityBean,
java.lang.Class[] interestedEntityTypes,
net.sf.beanlib.CollectionPropertyName[] collectionPropertyNames)
entityBean - given Hibernate BeancollectionPropertyNames - set properties to be included in the object graph
public <E,T> E hibernate2dto(java.lang.Class<E> targetEntityType,
T entityBean,
java.lang.Class[] interestedEntityTypes,
net.sf.beanlib.CollectionPropertyName[] collectionPropertyNames)
public java.util.List<?> hibernate2dto(java.util.Collection<?> hibernateBeans)
hibernateBeans - given collection of Hibernate Beans.
public <E> java.util.List<E> hibernate2dto(java.lang.Class<E> targetEntityType,
java.util.Collection hibernateBeans,
java.lang.Class[] interestedEntityTypes,
net.sf.beanlib.CollectionPropertyName[] collectionPropertyNameArray)
hibernateBeans - given collection of Hibernate Beans.public boolean isApplicationClass(java.lang.Class c)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||