Class SimpleAttributeProperty
java.lang.Object
org.apache.cayenne.reflect.BaseProperty
org.apache.cayenne.reflect.SimpleAttributeProperty
- All Implemented Interfaces:
AttributeProperty, PropertyDescriptor
A descriptor of an "attribute" persistent property.
- Since:
- 3.0
-
Field Summary
Fields inherited from class BaseProperty
accessor, owner -
Constructor Summary
ConstructorsConstructorDescriptionSimpleAttributeProperty(ClassDescriptor owner, Accessor accessor, ObjAttribute attribute) -
Method Summary
Modifier and TypeMethodDescriptionreadProperty(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 BaseProperty
getName, injectValueHolder, readPropertyDirectly, toString, writePropertyDirectlyModifier and TypeMethodDescriptiongetName()Returns property name.voidinjectValueHolder(Object object) Does nothing.readPropertyDirectly(Object object) Returns a property value of an object without disturbing the object fault status.toString()voidwritePropertyDirectly(Object object, Object oldValue, Object newValue) Sets a property value of an object without disturbing the object fault status.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface PropertyDescriptor
equals
-
Constructor Details
-
SimpleAttributeProperty
-
-
Method Details
-
visit
Description copied from interface:PropertyDescriptorA visitor accept method.- Specified by:
visitin interfacePropertyDescriptor- Specified by:
visitin classBaseProperty- 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 interfaceAttributeProperty
-
readProperty
Description copied from interface:PropertyDescriptorReturns a property value, inflating unresolved object if need.- Specified by:
readPropertyin interfacePropertyDescriptor- Overrides:
readPropertyin classBaseProperty- 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- Overrides:
writePropertyin classBaseProperty- Throws:
PropertyException
-
resolveFault
- Throws:
PropertyException
-