Class BaseProperty
java.lang.Object
org.apache.cayenne.reflect.BaseProperty
- All Implemented Interfaces:
PropertyDescriptor
- Direct Known Subclasses:
SimpleAttributeProperty
An abstract property descriptor that delegates property access to an
Accessor.
Used as a superclass for other implementations.- Since:
- 3.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns property name.voidinjectValueHolder(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()voidwriteProperty(Object object, Object oldValue, Object newValue) Sets a property value, inflating unresolved object if need.voidwritePropertyDirectly(Object object, Object oldValue, Object newValue) Sets a property value of an object without disturbing the object fault status.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface PropertyDescriptor
equals, visit
-
Field Details
-
owner
-
accessor
-
-
Constructor Details
-
BaseProperty
-
-
Method Details
-
readProperty
Description copied from interface:PropertyDescriptorReturns a property value, inflating unresolved object if need.- Specified by:
readPropertyin interfacePropertyDescriptor- Throws:
PropertyException
-
writeProperty
Description copied from interface:PropertyDescriptorSets 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:
writePropertyin interfacePropertyDescriptor- Throws:
PropertyException
-
getName
Description copied from interface:PropertyDescriptorReturns property name.- Specified by:
getNamein interfacePropertyDescriptor
-
injectValueHolder
Does nothing.- Specified by:
injectValueHolderin interfacePropertyDescriptor- Throws:
PropertyException
-
readPropertyDirectly
Description copied from interface:PropertyDescriptorReturns a property value of an object without disturbing the object fault status.- Specified by:
readPropertyDirectlyin interfacePropertyDescriptor- Throws:
PropertyException
-
writePropertyDirectly
public void writePropertyDirectly(Object object, Object oldValue, Object newValue) throws PropertyException Description copied from interface:PropertyDescriptorSets 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:
writePropertyDirectlyin interfacePropertyDescriptor- Throws:
PropertyException
-
toString
-