net.sf.beanlib.hibernate
Class HibernateBeanPopulatableSupport
java.lang.Object
net.sf.beanlib.hibernate.HibernateBeanPopulatableSupport
- All Implemented Interfaces:
- BeanPopulatable
public class HibernateBeanPopulatableSupport
- extends Object
- implements 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
Method Summary |
boolean |
shouldPopulate(String propertyName,
Method readerMethod)
Returns true if the given JavaBean property should be populated;
false otherwise. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
entityBeanClassSet
private Set<Class> entityBeanClassSet
collectionPropertyNameSet
private Set<? extends CollectionPropertyName> collectionPropertyNameSet
vetoer
private BeanPopulatable vetoer
HibernateBeanPopulatableSupport
public HibernateBeanPopulatableSupport(Set<Class> entityBeanClassSet,
Set<? extends CollectionPropertyName> collectionPropertyNameSet,
BeanPopulatable vetoer)
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(String, Method)