Home » iBatis-2.3.4 » com.ibatis.common » beans » [javadoc | source]
com.ibatis.common.beans
public class: ComplexBeanProbe [javadoc | source]
java.lang.Object
   com.ibatis.common.beans.BaseProbe
      com.ibatis.common.beans.ComplexBeanProbe

All Implemented Interfaces:
    Probe

StaticBeanProbe provides methods that allow simple, reflective access to JavaBeans style properties. Methods are provided for all simple types as well as object types.

Examples:

StaticBeanProbe.setObject(object, propertyName, value);

Object value = StaticBeanProbe.getObject(object, propertyName);
Constructor:
 protected ComplexBeanProbe() 
Method from com.ibatis.common.beans.ComplexBeanProbe Summary:
getObject,   getProperty,   getPropertyTypeForGetter,   getPropertyTypeForSetter,   getReadablePropertyNames,   getWriteablePropertyNames,   hasReadableProperty,   hasWritableProperty,   setObject,   setProperty
Methods from com.ibatis.common.beans.BaseProbe:
getIndexedProperty,   getProperty,   getReadablePropertyNames,   getWriteablePropertyNames,   setIndexedProperty,   setProperty
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.ibatis.common.beans.ComplexBeanProbe Detail:
 public Object getObject(Object object,
    String name) 
    Gets an Object property from a bean
 protected Object getProperty(Object object,
    String name) 
 public Class getPropertyTypeForGetter(Object object,
    String name) 
    Returns the class that the getter will return when reading a property value.
 public Class getPropertyTypeForSetter(Object object,
    String name) 
    Returns the class that the setter expects to receive as a parameter when setting a property value.
 public String[] getReadablePropertyNames(Object object) 
    Returns an array of the readable properties exposed by a bean
 public String[] getWriteablePropertyNames(Object object) 
    Returns an array of the writeable properties exposed by a bean
 public boolean hasReadableProperty(Object object,
    String propertyName) 
    Checks to see if a bean has a readable property be a given name
 public boolean hasWritableProperty(Object object,
    String propertyName) 
    Checks to see if a bean has a writable property be a given name
 public  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)