public abstract class BaseProperty extends Object implements Property
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
PropertyreadProperty in interface PropertyPropertyExceptionpublic void writeProperty(Object object, Object oldValue, Object newValue) throws PropertyException
PropertywriteProperty in interface PropertyPropertyExceptionpublic abstract boolean visit(PropertyVisitor visitor)
Propertypublic void injectValueHolder(Object object) throws PropertyException
injectValueHolder in interface PropertyPropertyExceptionpublic Object readPropertyDirectly(Object object) throws PropertyException
PropertyreadPropertyDirectly in interface PropertyPropertyExceptionpublic void writePropertyDirectly(Object object, Object oldValue, Object newValue) throws PropertyException
PropertywritePropertyDirectly in interface PropertyPropertyExceptionCopyright © 2001–2018 Apache Cayenne. All rights reserved.