Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.cayenne.reflect
Interface Accessor

All Superinterfaces:
  java.io.Serializable

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

    public interface Accessor

extends java.io.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
`java.lang.String` | `getName()` Returns property name.
`java.lang.Object` | `getValue(java.lang.Object object)` Returns a property value of an object without disturbing the object fault status.
`void` | `setValue(java.lang.Object object, java.lang.Object newValue)` Sets a property value of an object without disturbing the object fault status.

Method Detail

### getName

    java.lang.String getName()

  Returns property name.

### getValue

    java.lang.Object getValue(java.lang.Object object)
                              throws PropertyException

  Returns a property value of an object without disturbing the object fault status.

  Throws:
    `PropertyException`

### setValue

    void setValue(java.lang.Object object,
                  java.lang.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`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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