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
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()abstract booleanvisit(PropertyVisitor visitor) A visitor accept method.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.cayenne.reflect.PropertyDescriptor
equals
-
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
-
visit
Description copied from interface:PropertyDescriptorA visitor accept method.- Specified by:
visitin 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:
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
-