net.sf.beanlib.hibernate
Class HibernateBeanPopulatableSupport

java.lang.Object
  extended by net.sf.beanlib.hibernate.HibernateBeanPopulatableSupport
All Implemented Interfaces:
net.sf.beanlib.spi.BeanPopulatable

public class HibernateBeanPopulatableSupport
extends Object
implements net.sf.beanlib.spi.BeanPopulatable

The default implemenation to determine if a Hibernate JavaBean property should be populated. Each population decision can be vetoed by plugging in a custom vetoer.

Author:
Joe D. Velopar

Field Summary
private  Set<? extends net.sf.beanlib.CollectionPropertyName> collectionPropertyNameSet
           
private  Set<Class> entityBeanClassSet
           
private  net.sf.beanlib.spi.BeanPopulatable vetoer
           
 
Constructor Summary
HibernateBeanPopulatableSupport(Set<Class> entityBeanClassSet, Set<? extends net.sf.beanlib.CollectionPropertyName> collectionPropertyNameSet, net.sf.beanlib.spi.BeanPopulatable vetoer)
           
 
Method Summary
 boolean shouldPopulate(String propertyName, Method readerMethod)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entityBeanClassSet

private Set<Class> entityBeanClassSet

collectionPropertyNameSet

private Set<? extends net.sf.beanlib.CollectionPropertyName> collectionPropertyNameSet

vetoer

private net.sf.beanlib.spi.BeanPopulatable vetoer
Constructor Detail

HibernateBeanPopulatableSupport

public HibernateBeanPopulatableSupport(Set<Class> entityBeanClassSet,
                                       Set<? extends net.sf.beanlib.CollectionPropertyName> collectionPropertyNameSet,
                                       net.sf.beanlib.spi.BeanPopulatable vetoer)
Method Detail

shouldPopulate

public boolean shouldPopulate(String propertyName,
                              Method readerMethod)
Specified by:
shouldPopulate in interface net.sf.beanlib.spi.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(String, Method)