Package org.apache.cayenne.reflect
Class BaseProperty
java.lang.Object
org.apache.cayenne.reflect.BaseProperty
- All Implemented Interfaces:
PropertyDescriptor
- Direct Known Subclasses:
BaseArcProperty
,SimpleAttributeProperty
An abstract property descriptor that delegates property access to an
Accessor
.
Used as a superclass for other implementations.- Since:
- 3.0
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()
Returns property name.void
injectValueHolder
(Object object) Does nothing.readProperty
(Object object) Returns a property value, inflating unresolved object if need.readPropertyDirectly
(Object object) Returns a property value of an object without disturbing the object fault status.toString()
abstract boolean
visit
(PropertyVisitor visitor) A visitor accept method.void
writeProperty
(Object object, Object oldValue, Object newValue) Sets a property value, inflating unresolved object if need.void
writePropertyDirectly
(Object object, Object oldValue, 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, wait, wait, wait
Methods inherited from interface org.apache.cayenne.reflect.PropertyDescriptor
equals
-
Field Details
-
owner
-
accessor
-
-
Constructor Details
-
BaseProperty
-
-
Method Details
-
readProperty
Description copied from interface:PropertyDescriptor
Returns a property value, inflating unresolved object if need.- Specified by:
readProperty
in interfacePropertyDescriptor
- Throws:
PropertyException
-
writeProperty
Description copied from interface:PropertyDescriptor
Sets a property value, inflating unresolved object if need. Old value of the property is specified as a hint and can be ignored by the property implementor.- Specified by:
writeProperty
in interfacePropertyDescriptor
- Throws:
PropertyException
-
getName
Description copied from interface:PropertyDescriptor
Returns property name.- Specified by:
getName
in interfacePropertyDescriptor
-
visit
Description copied from interface:PropertyDescriptor
A visitor accept method.- Specified by:
visit
in interfacePropertyDescriptor
- Returns:
- a status returned by the corresponding callback method of the visitor. It serves as an indication of whether peer properties processing is still needed.
-
injectValueHolder
Does nothing.- Specified by:
injectValueHolder
in interfacePropertyDescriptor
- Throws:
PropertyException
-
readPropertyDirectly
Description copied from interface:PropertyDescriptor
Returns a property value of an object without disturbing the object fault status.- Specified by:
readPropertyDirectly
in interfacePropertyDescriptor
- Throws:
PropertyException
-
writePropertyDirectly
public void writePropertyDirectly(Object object, Object oldValue, Object newValue) throws PropertyException Description copied from interface:PropertyDescriptor
Sets a property value of an object without disturbing the object fault status. Old value of the property is specified as a hint and can be ignored by the property implementor.- Specified by:
writePropertyDirectly
in interfacePropertyDescriptor
- Throws:
PropertyException
-
toString
-