public abstract class BaseProperty extends Object implements PropertyDescriptor
Accessor.
Used as a superclass for other implementations.| Modifier and Type | Field and Description |
|---|---|
protected Accessor |
accessor |
protected ClassDescriptor |
owner |
| Constructor and Description |
|---|
BaseProperty(ClassDescriptor owner,
Accessor accessor) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns property name.
|
void |
injectValueHolder(Object object)
Does nothing.
|
Object |
readProperty(Object object)
Returns a property value, inflating unresolved object if need.
|
Object |
readPropertyDirectly(Object object)
Returns a property value of an object without disturbing the object fault
status.
|
String |
toString() |
abstract boolean |
visit(PropertyVisitor visitor)
A visitor accept method.
|
void |
writeProperty(Object object,
Object oldValue,
Object newValue)
Sets a property value, inflating unresolved object if need.
|
void |
writePropertyDirectly(Object object,
Object oldValue,
Object newValue)
Sets a property value of an object without disturbing the object fault
status.
|
protected ClassDescriptor owner
protected Accessor accessor
public BaseProperty(ClassDescriptor owner, Accessor accessor)
public Object readProperty(Object object) throws PropertyException
PropertyDescriptorreadProperty in interface PropertyDescriptorPropertyExceptionpublic void writeProperty(Object object, Object oldValue, Object newValue) throws PropertyException
PropertyDescriptorwriteProperty in interface PropertyDescriptorPropertyExceptionpublic String getName()
PropertyDescriptorgetName in interface PropertyDescriptorpublic abstract boolean visit(PropertyVisitor visitor)
PropertyDescriptorvisit in interface PropertyDescriptorpublic void injectValueHolder(Object object) throws PropertyException
injectValueHolder in interface PropertyDescriptorPropertyExceptionpublic Object readPropertyDirectly(Object object) throws PropertyException
PropertyDescriptorreadPropertyDirectly in interface PropertyDescriptorPropertyExceptionpublic void writePropertyDirectly(Object object, Object oldValue, Object newValue) throws PropertyException
PropertyDescriptorwritePropertyDirectly in interface PropertyDescriptorPropertyExceptionCopyright © 2001–2023 Apache Cayenne. All rights reserved.