Package org.apache.cayenne.reflect
Class SimpleAttributeProperty
java.lang.Object
org.apache.cayenne.reflect.BaseProperty
org.apache.cayenne.reflect.SimpleAttributeProperty
- All Implemented Interfaces:
- AttributeProperty,- PropertyDescriptor
public class SimpleAttributeProperty extends BaseProperty implements AttributeProperty
A descriptor of an "attribute" persistent property.
- Since:
- 3.0
- 
Field SummaryFields inherited from class org.apache.cayenne.reflect.BasePropertyaccessor, owner
- 
Constructor SummaryConstructors Constructor Description SimpleAttributeProperty(ClassDescriptor owner, Accessor accessor, ObjAttribute attribute)
- 
Method SummaryModifier and Type Method Description ObjAttributegetAttribute()ObjectreadProperty(Object object)Returns a property value, inflating unresolved object if need.protected voidresolveFault(Object object)booleanvisit(PropertyVisitor visitor)A visitor accept method.voidwriteProperty(Object object, Object oldValue, Object newValue)Sets a property value, inflating unresolved object if need.Methods inherited from class org.apache.cayenne.reflect.BasePropertygetName, injectValueHolder, readPropertyDirectly, toString, writePropertyDirectlyMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.cayenne.reflect.PropertyDescriptorgetName, injectValueHolder, readPropertyDirectly, writePropertyDirectly
- 
Constructor Details- 
SimpleAttributeProperty
 
- 
- 
Method Details- 
visitDescription copied from interface:PropertyDescriptorA visitor accept method.- Specified by:
- visitin interface- PropertyDescriptor
- Specified by:
- visitin class- BaseProperty
- 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.
 
- 
getAttribute- Specified by:
- getAttributein interface- AttributeProperty
 
- 
readPropertyDescription copied from interface:PropertyDescriptorReturns a property value, inflating unresolved object if need.- Specified by:
- readPropertyin interface- PropertyDescriptor
- Overrides:
- readPropertyin class- BaseProperty
- 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
- Overrides:
- writePropertyin class- BaseProperty
- Throws:
- PropertyException
 
- 
resolveFault- Throws:
- PropertyException
 
 
-