|
||||||||||
| 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
Property
readProperty in interface PropertyPropertyException
public void writeProperty(Object object,
Object oldValue,
Object newValue)
throws PropertyException
Property
writeProperty in interface PropertyPropertyExceptionpublic String getName()
Property
getName in interface Propertypublic abstract boolean visit(PropertyVisitor visitor)
Property
visit in interface Property
public void injectValueHolder(Object object)
throws PropertyException
injectValueHolder in interface PropertyPropertyException
public Object readPropertyDirectly(Object object)
throws PropertyException
Property
readPropertyDirectly in interface PropertyPropertyException
public void writePropertyDirectly(Object object,
Object oldValue,
Object newValue)
throws PropertyException
Property
writePropertyDirectly in interface PropertyPropertyExceptionpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||