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, writePropertyDirectly
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
invalidate
getName, injectValueHolder, readProperty, readPropertyDirectly, writeProperty, writePropertyDirectly
protected 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)
PropertyDescriptor
visit
in interface PropertyDescriptor
visit
in class BaseProperty
public abstract boolean isFault(Object source)
ArcProperty
isFault
in interface ArcProperty
source
- an object that is a source object of the relationship.public String getComplimentaryReverseDbRelationshipPath()
ArcProperty
getComplimentaryReverseDbRelationshipPath
in interface ArcProperty
public ObjRelationship getRelationship()
ArcProperty
getRelationship
in interface ArcProperty
public ArcProperty getComplimentaryReverseArc()
ArcProperty
getComplimentaryReverseArc
in interface ArcProperty
public ClassDescriptor getTargetDescriptor()
ArcProperty
ClassDescriptor.getSubclassDescriptor(Class)
before
using the descriptor to access objects.getTargetDescriptor
in interface ArcProperty
Copyright © 2001–2019 Apache Cayenne. All rights reserved.