|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.beanlib.hibernate.HibernateBeanReplicator
net.sf.beanlib.hibernate3.Hibernate3BeanReplicator
@NotThreadSafe public class Hibernate3BeanReplicator
Hibernate 3 Bean Replicator.
This class can be used to conveniently replicate Hibernate (v3.x) objects that follow the JavaBean getter/setter convention on a best attempt basis. The replication is typically recursive in that the whole object graph of the input object is replicated into an equivalent output object graph, resolving circular references, and eagerly fetching proxied instances as necessary. However, the exact behavior of the replication process including
BeanPopulatorBaseSpi
are available, as
the replication of JavaBean properties inevitably involves bean population.
vetoer
used to veto the propagation of a property
HibernateBeanReplicator.initCustomTransformerFactory(net.sf.beanlib.spi.CustomBeanTransformerSpi.Factory...)
.
CustomBeanTransformerSpi
,
HibernateBeanReplicator
Constructor Summary | |
---|---|
Hibernate3BeanReplicator()
By default, all properties will be included for replication. |
|
Hibernate3BeanReplicator(Set<Class<?>> entityBeanClassSet,
Set<? extends CollectionPropertyName<?>> collectionPropertyNameSet,
PropertyFilter vetoer)
Convenient constructor to specify: The set of entity bean classes for matching properties that will be replicated; The set of collection and map properties that will be replicated; A vetoer used to veto the propagation of specific properties
|
|
Hibernate3BeanReplicator(String applicationPackagePrefix)
Constructs with an application package prefix. |
|
Hibernate3BeanReplicator(String applicationPackagePrefix,
Set<Class<?>> entityBeanClassSet,
Set<? extends CollectionPropertyName<?>> collectionPropertyNameSet,
PropertyFilter vetoer)
Convenient constructor to specify: An application package prefix used to determine if a property with a type of an entity bean class will be included for replication; The set of entity bean classes for matching properties that will be replicated; The set of collection and map properties that will be replicated; A vetoer used to veto the propagation of specific properties
|
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Hibernate3BeanReplicator()
public Hibernate3BeanReplicator(String applicationPackagePrefix)
applicationPackagePrefix
- An application package prefix used to determine if a property
with a type of an entity bean class will be included for replication.public Hibernate3BeanReplicator(Set<Class<?>> entityBeanClassSet, Set<? extends CollectionPropertyName<?>> collectionPropertyNameSet, PropertyFilter vetoer)
vetoer
used to veto the propagation of specific properties
Note this constructor is relevant only if the default property filter HibernatePropertyFilter
is used.
entityBeanClassSet
- The set of entity bean classes for matching properties that will be replicated,
eagerly fetching if necessary.
Null means all whereas empty means none.collectionPropertyNameSet
- The set of collection and map properties that will be replicated,
eagerly fetching if necessary.
Null means all whereas empty means none.vetoer
- used to veto the propagation of specific properties.public Hibernate3BeanReplicator(String applicationPackagePrefix, Set<Class<?>> entityBeanClassSet, Set<? extends CollectionPropertyName<?>> collectionPropertyNameSet, PropertyFilter vetoer)
vetoer
used to veto the propagation of specific properties
Note this constructor is relevant only if the default property filter HibernatePropertyFilter
is used.
entityBeanClassSet
- The set of entity bean classes for matching properties that will be replicated,
eagerly fetching if necessary.
Null means all whereas empty means none.collectionPropertyNameSet
- The set of collection and map properties that will be replicated,
eagerly fetching if necessary.
Null means all whereas empty means none.vetoer
- used to veto the propagation of specific properties.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |