public class SimpleAttributeProperty extends BaseProperty implements AttributeProperty
accessor, owner
Constructor and Description |
---|
SimpleAttributeProperty(ClassDescriptor owner,
Accessor accessor,
ObjAttribute attribute) |
Modifier and Type | Method and Description |
---|---|
ObjAttribute |
getAttribute() |
Object |
readProperty(Object object)
Returns a property value, inflating unresolved object if need.
|
protected void |
resolveFault(Object object) |
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.
|
getName, injectValueHolder, readPropertyDirectly, toString, writePropertyDirectly
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getName, injectValueHolder, readPropertyDirectly, writePropertyDirectly
public SimpleAttributeProperty(ClassDescriptor owner, Accessor accessor, ObjAttribute attribute)
public boolean visit(PropertyVisitor visitor)
PropertyDescriptor
visit
in interface PropertyDescriptor
visit
in class BaseProperty
public ObjAttribute getAttribute()
getAttribute
in interface AttributeProperty
public Object readProperty(Object object) throws PropertyException
PropertyDescriptor
readProperty
in interface PropertyDescriptor
readProperty
in class BaseProperty
PropertyException
public void writeProperty(Object object, Object oldValue, Object newValue) throws PropertyException
PropertyDescriptor
writeProperty
in interface PropertyDescriptor
writeProperty
in class BaseProperty
PropertyException
protected void resolveFault(Object object) throws PropertyException
PropertyException
Copyright © 2001–2019 Apache Cayenne. All rights reserved.