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
PropertyDescriptor
readProperty
in interface PropertyDescriptor
PropertyException
public void writeProperty(Object object, Object oldValue, Object newValue) throws PropertyException
PropertyDescriptor
writeProperty
in interface PropertyDescriptor
PropertyException
public String getName()
PropertyDescriptor
getName
in interface PropertyDescriptor
public abstract boolean visit(PropertyVisitor visitor)
PropertyDescriptor
visit
in interface PropertyDescriptor
public void injectValueHolder(Object object) throws PropertyException
injectValueHolder
in interface PropertyDescriptor
PropertyException
public Object readPropertyDirectly(Object object) throws PropertyException
PropertyDescriptor
readPropertyDirectly
in interface PropertyDescriptor
PropertyException
public void writePropertyDirectly(Object object, Object oldValue, Object newValue) throws PropertyException
PropertyDescriptor
writePropertyDirectly
in interface PropertyDescriptor
PropertyException
Copyright © 2001–2023 Apache Cayenne. All rights reserved.