public abstract class BaseArcProperty extends BaseProperty implements ArcProperty
ArcProperty.| Modifier and Type | Field and Description |
|---|---|
protected String |
complimentaryReverseArcName |
protected ObjRelationship |
relationship |
protected ClassDescriptor |
targetDescriptor |
accessor, owner| Constructor and Description |
|---|
BaseArcProperty(ClassDescriptor owner,
ClassDescriptor targetDescriptor,
Accessor accessor,
String reverseName) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
getName, injectValueHolder, readProperty, readPropertyDirectly, toString, writeProperty, writePropertyDirectlyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitinvalidategetName, injectValueHolder, readProperty, readPropertyDirectly, writeProperty, writePropertyDirectlyprotected String complimentaryReverseArcName
protected ClassDescriptor targetDescriptor
protected ObjRelationship relationship
public BaseArcProperty(ClassDescriptor owner, ClassDescriptor targetDescriptor, Accessor accessor, String reverseName)
public abstract boolean visit(PropertyVisitor visitor)
Propertyvisit in interface Propertyvisit in class BasePropertypublic abstract boolean isFault(Object source)
ArcPropertyisFault in interface ArcPropertysource - an object that is a source object of the relationship.public ObjRelationship getRelationship()
ArcPropertygetRelationship in interface ArcPropertypublic ArcProperty getComplimentaryReverseArc()
ArcPropertygetComplimentaryReverseArc in interface ArcPropertypublic ClassDescriptor getTargetDescriptor()
ArcPropertyClassDescriptor.getSubclassDescriptor(Class) before using the descriptor to
access objects.getTargetDescriptor in interface ArcPropertyCopyright © 2001–2018 Apache Cayenne. All rights reserved.