net.sf.beanlib.hibernate3
Class Hibernate3DtoPopulator
java.lang.Object
net.sf.beanlib.hibernate3.Hibernate3DtoPopulator
- All Implemented Interfaces:
- BeanPopulatable
class Hibernate3DtoPopulator
- extends Object
- implements BeanPopulatable
Used by Hibernate3DtoCopier
to dynamically expand the set of
application entity classes as necessary,
including those classes discovered from the element type of collection properties.
- Author:
- Joe D. Velopar
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
entityBeanClassSet
private final Set<Class> entityBeanClassSet
collectionPropertyNameSet
private final Set<CollectionPropertyName> collectionPropertyNameSet
applicationBeanCopier
private Hibernate3DtoCopier applicationBeanCopier
Hibernate3DtoPopulator
Hibernate3DtoPopulator(Set<Class> entityBeanClassSet,
Set<CollectionPropertyName> collectionPropertyNameSet)
Hibernate3DtoPopulator
Hibernate3DtoPopulator(Set<CollectionPropertyName> collectionPropertyNameSet)
Hibernate3DtoPopulator
Hibernate3DtoPopulator()
init
Hibernate3DtoPopulator init(Hibernate3DtoCopier applicationBeanCopier)
shouldPopulate
public boolean shouldPopulate(String propertyName,
Method readerMethod)
- Description copied from interface:
BeanPopulatable
- Returns true if the given JavaBean property should be populated;
false otherwise.
- Specified by:
shouldPopulate
in interface BeanPopulatable
- Parameters:
propertyName
- property name.readerMethod
- reader method of the property.
- Returns:
- true if the property population should take place; false otherwise.
- See Also:
BeanPopulatable.shouldPopulate(java.lang.String, java.lang.reflect.Method)
checkCollectionProperty
private boolean checkCollectionProperty(String propertyName,
Method readerMethod)