org.apache.cayenne.reflect
Class PropertyAccessor
java.lang.Object
   org.apache.cayenne.reflect.PropertyAccessor
org.apache.cayenne.reflect.PropertyAccessor
- All Implemented Interfaces: 
- Serializable, Accessor
- public class PropertyAccessor 
- extends Object- implements Accessor
A utility accessor class that wraps a simple property.
- Since:
- 3.0
- See Also:
- Serialized Form
 
 
| 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.
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
property
protected Property property
PropertyAccessor
public PropertyAccessor(Property property)
getName
public String getName()
- Description copied from interface: Accessor
- Returns property name.
 
- 
- Specified by:
- getNamein interface- Accessor
 
- 
 
getValue
public Object getValue(Object object)
                throws PropertyException
- Description copied from interface: Accessor
- Returns a property value of an object without disturbing the object fault status.
 
- 
- Specified by:
- getValuein interface- Accessor
 
- 
- Throws:
- PropertyException
 
setValue
public void setValue(Object object,
                     Object newValue)
              throws PropertyException
- Description copied from interface: Accessor
- Sets 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
 
Copyright © 2001-2011 Apache Cayenne. All Rights Reserved.