org.directwebremoting.hibernate
Class H3PropertyDescriptorProperty

java.lang.Object
  extended by org.directwebremoting.extend.PropertyDescriptorProperty
      extended by 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]

Constructor Summary
H3PropertyDescriptorProperty(java.beans.PropertyDescriptor descriptor)
          Simple constructor
 
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 org.directwebremoting.extend.PropertyDescriptorProperty
createChild, equals, getName, getPropertyType, hashCode, setValue, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

H3PropertyDescriptorProperty

public H3PropertyDescriptorProperty(java.beans.PropertyDescriptor descriptor)
Simple constructor

Parameters:
descriptor - The PropertyDescriptor that we are proxying to
Method Detail

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

Copyright 2008