|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.property.SimpleProperty
public class SimpleProperty
A property descriptor that provides access to a simple object property, delegating property read/write operations to an accessor.
Field Summary | |
---|---|
protected PropertyAccessor |
accessor
|
protected ClassDescriptor |
owner
|
Constructor Summary | |
---|---|
SimpleProperty(ClassDescriptor owner,
PropertyAccessor accessor)
|
Method Summary | |
---|---|
java.lang.String |
getName()
Returns property name. |
void |
injectValueHolder(java.lang.Object object)
Does nothing. |
java.lang.Object |
readProperty(java.lang.Object object)
Returns a property value, resolving object fault if needed. |
java.lang.Object |
readPropertyDirectly(java.lang.Object object)
Returns a property value of an object without disturbing the object fault status. |
void |
shallowMerge(java.lang.Object from,
java.lang.Object to)
Copies a property value from one object to another. |
boolean |
visit(PropertyVisitor visitor)
|
void |
writeProperty(java.lang.Object object,
java.lang.Object oldValue,
java.lang.Object newValue)
Sets a property value,resolving object fault if needed. |
void |
writePropertyDirectly(java.lang.Object object,
java.lang.Object oldValue,
java.lang.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, toString, wait, wait, wait |
Field Detail |
---|
protected ClassDescriptor owner
protected PropertyAccessor accessor
Constructor Detail |
---|
public SimpleProperty(ClassDescriptor owner, PropertyAccessor accessor)
Method Detail |
---|
public java.lang.Object readProperty(java.lang.Object object) throws PropertyAccessException
Property
readProperty
in interface Property
PropertyAccessException
public void writeProperty(java.lang.Object object, java.lang.Object oldValue, java.lang.Object newValue) throws PropertyAccessException
Property
writeProperty
in interface Property
PropertyAccessException
public java.lang.String getName()
PropertyAccessor
getName
in interface PropertyAccessor
public boolean visit(PropertyVisitor visitor)
visit
in interface Property
public void injectValueHolder(java.lang.Object object) throws PropertyAccessException
injectValueHolder
in interface Property
PropertyAccessException
public void shallowMerge(java.lang.Object from, java.lang.Object to) throws PropertyAccessException
Property
shallowMerge
in interface Property
PropertyAccessException
public java.lang.Object readPropertyDirectly(java.lang.Object object) throws PropertyAccessException
PropertyAccessor
readPropertyDirectly
in interface PropertyAccessor
PropertyAccessException
public void writePropertyDirectly(java.lang.Object object, java.lang.Object oldValue, java.lang.Object newValue) throws PropertyAccessException
PropertyAccessor
writePropertyDirectly
in interface PropertyAccessor
PropertyAccessException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |