|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.reflect.BaseProperty
public abstract class BaseProperty
An abstract property descriptor that delegates property access to an Accessor
.
Used as a superclass for other implementations.
Field Summary | |
---|---|
protected Accessor |
accessor
|
protected ClassDescriptor |
owner
|
Constructor Summary | |
---|---|
BaseProperty(ClassDescriptor owner,
Accessor accessor)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected ClassDescriptor owner
protected Accessor accessor
Constructor Detail |
---|
public BaseProperty(ClassDescriptor owner, Accessor accessor)
Method Detail |
---|
public Object readProperty(Object object) throws PropertyException
PropertyDescriptor
readProperty
in interface Property
readProperty
in interface PropertyDescriptor
PropertyException
public void writeProperty(Object object, Object oldValue, Object newValue) throws PropertyException
PropertyDescriptor
writeProperty
in interface Property
writeProperty
in interface PropertyDescriptor
PropertyException
public String getName()
PropertyDescriptor
getName
in interface Property
getName
in interface PropertyDescriptor
public abstract boolean visit(PropertyVisitor visitor)
PropertyDescriptor
visit
in interface Property
visit
in interface PropertyDescriptor
public void injectValueHolder(Object object) throws PropertyException
injectValueHolder
in interface Property
injectValueHolder
in interface PropertyDescriptor
PropertyException
public Object readPropertyDirectly(Object object) throws PropertyException
PropertyDescriptor
readPropertyDirectly
in interface Property
readPropertyDirectly
in interface PropertyDescriptor
PropertyException
public void writePropertyDirectly(Object object, Object oldValue, Object newValue) throws PropertyException
PropertyDescriptor
writePropertyDirectly
in interface Property
writePropertyDirectly
in interface PropertyDescriptor
PropertyException
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |