public class BeanAccessor extends Object implements Accessor
Modifier and Type | Field and Description |
---|---|
protected Object |
nullValue |
protected String |
propertyName |
protected Method |
readMethod |
protected Method |
writeMethod |
Constructor and Description |
---|
BeanAccessor(Class<?> objectClass,
String propertyName,
Class<?> propertyType) |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns property name.
|
Object |
getValue(Object object)
Returns a property value of an object without disturbing the object fault status.
|
void |
setValue(Object object,
Object newValue)
Sets a property value of an object without disturbing the object fault status.
|
protected String propertyName
protected Method readMethod
protected Method writeMethod
protected Object nullValue
public Object getValue(Object object) throws PropertyException
Accessor
getValue
in interface Accessor
PropertyException
public void setValue(Object object, Object newValue) throws PropertyException
Accessor
setValue
in interface Accessor
PropertyException
Copyright © 2001–2015 Apache Cayenne. All rights reserved.