Package org.apache.cayenne.reflect
Class BeanAccessor
java.lang.Object
org.apache.cayenne.reflect.BeanAccessor
- All Implemented Interfaces:
- Serializable,- Accessor
public class BeanAccessor extends Object implements Accessor
A property accessor that uses set/get methods following JavaBean naming
 conventions.
- Since:
- 1.2
- See Also:
- Serialized Form
- 
Field SummaryFields Modifier and Type Field Description protected ObjectnullValueprotected StringpropertyNameprotected MethodreadMethodprotected MethodwriteMethod
- 
Constructor SummaryConstructors Constructor Description BeanAccessor(Class<?> objectClass, String propertyName, Class<?> propertyType)
- 
Method SummaryModifier and Type Method Description StringgetName()Returns property name.ObjectgetValue(Object object)Returns a property value of an object without disturbing the object fault status.voidsetValue(Object object, Object newValue)Sets a property value of an object without disturbing the object fault status.
- 
Field Details- 
propertyName
- 
readMethod
- 
writeMethod
- 
nullValue
 
- 
- 
Constructor Details- 
BeanAccessor
 
- 
- 
Method Details- 
getNameDescription copied from interface:AccessorReturns property name.
- 
getValueDescription copied from interface:AccessorReturns a property value of an object without disturbing the object fault status.- Specified by:
- getValuein interface- Accessor
- Throws:
- PropertyException
- Since:
- 3.0
 
- 
setValueDescription copied from interface:AccessorSets a property value of an object without disturbing the object fault status. Old value of the property is specified as a hint.- Specified by:
- setValuein interface- Accessor
- Throws:
- PropertyException
- Since:
- 3.0
 
 
-