Package org.apache.cayenne.reflect
Interface PropertyDescriptor
- All Known Subinterfaces:
- ArcProperty,- AttributeProperty,- Property,- ToManyMapProperty,- ToManyProperty,- ToOneProperty
- All Known Implementing Classes:
- BaseArcProperty,- BaseProperty,- BaseToManyProperty,- BaseToOneProperty,- SimpleAttributeProperty
public interface PropertyDescriptor
Defines bean property API used by Cayenne to access object data, do faulting
 and graph maintenance tasks.
- Since:
- 4.0
- 
Method SummaryModifier and Type Method Description StringgetName()Returns property name.voidinjectValueHolder(Object object)If a property is implemented as a ValueHolder, this operation would create an unfaulted value holder and inject it into the object, if an object doesn't have it set yet.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.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.
- 
Method Details- 
getNameString getName()Returns property name.
- 
readPropertyDirectlyReturns a property value of an object without disturbing the object fault status.- Throws:
- PropertyException
 
- 
readPropertyReturns a property value, inflating unresolved object if need.- Throws:
- PropertyException
 
- 
writePropertyDirectlyvoid writePropertyDirectly(Object object, Object oldValue, Object newValue) throws PropertyExceptionSets 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.- Throws:
- PropertyException
 
- 
writePropertySets 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.- Throws:
- PropertyException
 
- 
visitA visitor accept method.- 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.
 
- 
injectValueHolderIf a property is implemented as a ValueHolder, this operation would create an unfaulted value holder and inject it into the object, if an object doesn't have it set yet.- Throws:
- PropertyException
 
 
-