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 java.lang.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

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

Constructor Detail

HibernateBeanPopulatableSupport

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

shouldPopulate

public boolean shouldPopulate(java.lang.String propertyName,
                              java.lang.reflect.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)


Copyright © 2010. All Rights Reserved.