Package org.apache.cayenne.reflect
Class BaseProperty
java.lang.Object
org.apache.cayenne.reflect.BaseProperty
- All Implemented Interfaces:
PropertyDescriptor
- Direct Known Subclasses:
BaseArcProperty,SimpleAttributeProperty
public abstract class BaseProperty extends Object implements PropertyDescriptor
An abstract property descriptor that delegates property access to an
Accessor.
Used as a superclass for other implementations.- Since:
- 3.0
-
Field Summary
Fields Modifier and Type Field Description protected Accessoraccessorprotected ClassDescriptorowner -
Constructor Summary
Constructors Constructor Description BaseProperty(ClassDescriptor owner, Accessor accessor) -
Method Summary
Modifier and Type Method Description StringgetName()Returns property name.voidinjectValueHolder(Object object)Does nothing.ObjectreadProperty(Object object)Returns a property value, inflating unresolved object if need.ObjectreadPropertyDirectly(Object object)Returns a property value of an object without disturbing the object fault status.StringtoString()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.
-
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
public void writeProperty(Object object, Object oldValue, Object newValue) throws PropertyExceptionDescription 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 PropertyExceptionDescription 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
-