com.ibatis.common.beans
public class ComplexBeanProbe extends BaseProbe
| Constructor Summary | |
|---|---|
| protected | ComplexBeanProbe() |
| Method Summary | |
|---|---|
| Object | getObject(Object object, String name)
Gets an Object property from a bean
|
| protected Object | getProperty(Object object, String name) |
| Class | getPropertyTypeForGetter(Object object, String name)
Returns the class that the getter will return when reading a property value.
|
| Class | getPropertyTypeForSetter(Object object, String name)
Returns the class that the setter expects to receive as a parameter when
setting a property value.
|
| String[] | getReadablePropertyNames(Object object)
Returns an array of the readable properties exposed by a bean
|
| String[] | getWriteablePropertyNames(Object object)
Returns an array of the writeable properties exposed by a bean
|
| boolean | hasReadableProperty(Object object, String propertyName)
Checks to see if a bean has a readable property be a given name
|
| boolean | hasWritableProperty(Object object, String propertyName)
Checks to see if a bean has a writable property be a given name
|
| void | setObject(Object object, String name, Object value)
Sets the value of a bean property to an Object
|
| protected void | setProperty(Object object, String name, Object value) |
Parameters: object The bean name The property name
Returns: The property value (as an Object)
Parameters: object The bean to check name The name of the property
Returns: The type of the property
Parameters: object The bean to check name The name of the property
Returns: The type of the property
Parameters: object The bean
Returns: The properties
Parameters: object The bean
Returns: The properties
Parameters: object The bean to check propertyName The property to check for
Returns: True if the property exists and is readable
Parameters: object The bean to check propertyName The property to check for
Returns: True if the property exists and is writable
Parameters: object The bean to change name The name of the property to set value The new value to set