public abstract class BaseArcProperty extends BaseProperty implements ArcProperty
ArcProperty.| Modifier and Type | Field and Description |
|---|---|
protected String |
complimentaryReverseArcName |
protected ObjRelationship |
relationship |
protected String |
reverseDbPath |
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.
|
String |
getComplimentaryReverseDbRelationshipPath()
Returns a path over reverse DbRelationships for this arc's
ObjRelationship.
|
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
protected String reverseDbPath
public BaseArcProperty(ClassDescriptor owner, ClassDescriptor targetDescriptor, Accessor accessor, String reverseName)
public abstract boolean visit(PropertyVisitor visitor)
PropertyDescriptorvisit in interface PropertyDescriptorvisit in class BasePropertypublic abstract boolean isFault(Object source)
ArcPropertyisFault in interface ArcPropertysource - an object that is a source object of the relationship.public String getComplimentaryReverseDbRelationshipPath()
ArcPropertygetComplimentaryReverseDbRelationshipPath in interface ArcPropertypublic 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–2023 Apache Cayenne. All rights reserved.