org.apache.cayenne.reflect
Interface Accessor

All Superinterfaces:
Serializable
All Known Implementing Classes:
BeanAccessor, EmbeddedFieldAccessor, FieldAccessor, IdMapKeyAccessor, PropertyAccessor

public interface Accessor
extends Serializable

An accessor of a property value. Abstracts the actual property implementation. E.g. it can be a Field, a pair of get/set methods or a map/DataObject.

Since:
3.0

Method Summary
 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.
 

Method Detail

getName

String getName()
Returns property name.


getValue

Object getValue(Object object)
                throws PropertyException
Returns a property value of an object without disturbing the object fault status.

Throws:
PropertyException

setValue

void setValue(Object object,
              Object newValue)
              throws PropertyException
Sets a property value of an object without disturbing the object fault status. Old value of the property is specified as a hint.

Throws:
PropertyException


Copyright © 2001-2011 Apache Cayenne. All Rights Reserved.