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 SummaryFields Modifier and Type Field Description protected Accessoraccessorprotected ClassDescriptorowner
- 
Constructor SummaryConstructors Constructor Description BaseProperty(ClassDescriptor owner, Accessor accessor)
- 
Method SummaryModifier 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- 
readPropertyDescription copied from interface:PropertyDescriptorReturns a property value, inflating unresolved object if need.- Specified by:
- readPropertyin interface- PropertyDescriptor
- Throws:
- PropertyException
 
- 
writePropertypublic 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 interface- PropertyDescriptor
- Throws:
- PropertyException
 
- 
getNameDescription copied from interface:PropertyDescriptorReturns property name.- Specified by:
- getNamein interface- PropertyDescriptor
 
- 
visitDescription copied from interface:PropertyDescriptorA visitor accept method.- Specified by:
- visitin interface- PropertyDescriptor
- 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.
 
- 
injectValueHolderDoes nothing.- Specified by:
- injectValueHolderin interface- PropertyDescriptor
- Throws:
- PropertyException
 
- 
readPropertyDirectlyDescription copied from interface:PropertyDescriptorReturns a property value of an object without disturbing the object fault status.- Specified by:
- readPropertyDirectlyin interface- PropertyDescriptor
- Throws:
- PropertyException
 
- 
writePropertyDirectlypublic 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 interface- PropertyDescriptor
- Throws:
- PropertyException
 
- 
toString
 
-