|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cayenne.reflect.BaseProperty
org.apache.cayenne.reflect.BaseArcProperty
public abstract class BaseArcProperty
A base implementation of the ArcProperty.
| Field Summary | |
|---|---|
protected String |
complimentaryReverseArcName
|
protected ObjRelationship |
relationship
|
protected ClassDescriptor |
targetDescriptor
|
| Fields inherited from class org.apache.cayenne.reflect.BaseProperty |
|---|
accessor, owner |
| Constructor Summary | |
|---|---|
BaseArcProperty(ClassDescriptor owner,
ClassDescriptor targetDescriptor,
Accessor accessor,
String reverseName)
|
|
| Method Summary | |
|---|---|
ArcProperty |
getComplimentaryReverseArc()
Returns a complimentary reverse ArcProperty or null if no reverse arc exists. |
ObjRelationship |
getRelationship()
Returns a relationship associated with this arc. |
ClassDescriptor |
getTargetDescriptor()
Returns a ClassDescriptor for the type of graph nodes pointed to by this arc property. |
abstract boolean |
isFault(Object source)
Returns whether a target node connected to a given object is an unresolved fault. |
protected void |
setReverse(Object source,
Object oldTarget,
Object newTarget)
A convenience method to set the reverse arc used by subclasses. |
abstract boolean |
visit(PropertyVisitor visitor)
A visitor accept method. |
| Methods inherited from class org.apache.cayenne.reflect.BaseProperty |
|---|
getName, injectValueHolder, readProperty, readPropertyDirectly, toString, writeProperty, writePropertyDirectly |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.cayenne.reflect.ArcProperty |
|---|
invalidate |
| Methods inherited from interface org.apache.cayenne.reflect.Property |
|---|
getName, injectValueHolder, readProperty, readPropertyDirectly, writeProperty, writePropertyDirectly |
| Field Detail |
|---|
protected String complimentaryReverseArcName
protected ClassDescriptor targetDescriptor
protected ObjRelationship relationship
| Constructor Detail |
|---|
public BaseArcProperty(ClassDescriptor owner,
ClassDescriptor targetDescriptor,
Accessor accessor,
String reverseName)
| Method Detail |
|---|
public abstract boolean visit(PropertyVisitor visitor)
Property
visit in interface Propertyvisit in class BasePropertypublic abstract boolean isFault(Object source)
ArcProperty
isFault in interface ArcPropertysource - an object that is a source object of the relationship.public ObjRelationship getRelationship()
ArcProperty
getRelationship in interface ArcPropertypublic ArcProperty getComplimentaryReverseArc()
ArcProperty
getComplimentaryReverseArc in interface ArcPropertypublic ClassDescriptor getTargetDescriptor()
ArcPropertyClassDescriptor.getSubclassDescriptor(Class) before using the descriptor to
access objects.
getTargetDescriptor in interface ArcProperty
protected void setReverse(Object source,
Object oldTarget,
Object newTarget)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||