org.directwebremoting.hibernate
Class H3PropertyDescriptorProperty
java.lang.Object
org.directwebremoting.extend.PropertyDescriptorProperty
org.directwebremoting.hibernate.H3PropertyDescriptorProperty
- All Implemented Interfaces:
- Property
public class H3PropertyDescriptorProperty
- extends PropertyDescriptorProperty
A Property that catches Hibernate exceptions.
This is useful for Hibernate 2 where lazy loading results in an exception
and you are unable to detect and prevent this.
- Author:
- Joe Walker [joe at getahead dot ltd dot uk]
|
Method Summary |
java.lang.Object |
getValue(java.lang.Object bean)
Get the value of this property of the passed in java bean |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
H3PropertyDescriptorProperty
public H3PropertyDescriptorProperty(java.beans.PropertyDescriptor descriptor)
- Simple constructor
- Parameters:
descriptor - The PropertyDescriptor that we are proxying to
getValue
public java.lang.Object getValue(java.lang.Object bean)
throws ConversionException
- Description copied from interface:
Property
- Get the value of this property of the passed in java bean
- Specified by:
getValue in interface Property- Overrides:
getValue in class PropertyDescriptorProperty
- Parameters:
bean - The bean to introspect
- Returns:
- The value assigned to this property of the passed in bean
- Throws:
ConversionException - If the reflection access fails