Package org.apache.cayenne.reflect
Class PropertyAccessor
java.lang.Object
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
-
Field Summary
Fields Modifier and Type Field Description protected PropertyDescriptor
property
-
Constructor Summary
Constructors Constructor Description PropertyAccessor(PropertyDescriptor property)
-
Method Summary
Modifier and Type Method 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.
-
Field Details
-
property
-
-
Constructor Details
-
PropertyAccessor
-
-
Method Details
-
getName
Description copied from interface:Accessor
Returns property name. -
getValue
Description copied from interface:Accessor
Returns a property value of an object without disturbing the object fault status.- Specified by:
getValue
in interfaceAccessor
- Throws:
PropertyException
-
setValue
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:
setValue
in interfaceAccessor
- Throws:
PropertyException
-