Package org.apache.cayenne.reflect
Class BaseArcProperty
java.lang.Object
org.apache.cayenne.reflect.BaseProperty
org.apache.cayenne.reflect.BaseArcProperty
- All Implemented Interfaces:
- ArcProperty,- PropertyDescriptor
- Direct Known Subclasses:
- BaseToManyProperty,- BaseToOneProperty
public abstract class BaseArcProperty extends BaseProperty implements ArcProperty
A base implementation of the 
ArcProperty.- Since:
- 3.0
- 
Field SummaryFields Modifier and Type Field Description protected StringcomplimentaryReverseArcNameprotected ObjRelationshiprelationshipprotected StringreverseDbPathprotected ClassDescriptortargetDescriptorFields inherited from class org.apache.cayenne.reflect.BasePropertyaccessor, owner
- 
Constructor SummaryConstructors Constructor Description BaseArcProperty(ClassDescriptor owner, ClassDescriptor targetDescriptor, Accessor accessor, String reverseName)
- 
Method SummaryModifier and Type Method Description ArcPropertygetComplimentaryReverseArc()Returns a complimentary reverse ArcProperty or null if no reverse arc exists.StringgetComplimentaryReverseDbRelationshipPath()Returns a path over reverse DbRelationships for this arc's ObjRelationship.ObjRelationshipgetRelationship()Returns a relationship associated with this arc.ClassDescriptorgetTargetDescriptor()Returns a ClassDescriptor for the type of graph nodes pointed to by this arc property.abstract booleanisFault(Object source)Returns whether a target node connected to a given object is an unresolved fault.protected voidsetReverse(Object source, Object oldTarget, Object newTarget)A convenience method to set the reverse arc used by subclasses.abstract booleanvisit(PropertyVisitor visitor)A visitor accept method.Methods inherited from class org.apache.cayenne.reflect.BasePropertygetName, injectValueHolder, readProperty, readPropertyDirectly, toString, writeProperty, writePropertyDirectlyMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.cayenne.reflect.ArcPropertyinvalidateMethods inherited from interface org.apache.cayenne.reflect.PropertyDescriptorgetName, injectValueHolder, readProperty, readPropertyDirectly, writeProperty, writePropertyDirectly
- 
Field Details- 
complimentaryReverseArcName
- 
targetDescriptor
- 
relationship
- 
reverseDbPath
 
- 
- 
Constructor Details- 
BaseArcPropertypublic BaseArcProperty(ClassDescriptor owner, ClassDescriptor targetDescriptor, Accessor accessor, String reverseName)
 
- 
- 
Method Details- 
visitDescription copied from interface:PropertyDescriptorA visitor accept method.- Specified by:
- visitin interface- PropertyDescriptor
- Specified by:
- visitin class- BaseProperty
- Returns:
- a status returned by the corresponding callback method of the visitor. It serves as an indication of whether peer properties processing is still needed.
 
- 
isFaultDescription copied from interface:ArcPropertyReturns whether a target node connected to a given object is an unresolved fault.- Specified by:
- isFaultin interface- ArcProperty
- Parameters:
- source- an object that is a source object of the relationship.
 
- 
getComplimentaryReverseDbRelationshipPathDescription copied from interface:ArcPropertyReturns a path over reverse DbRelationships for this arc's ObjRelationship.- Specified by:
- getComplimentaryReverseDbRelationshipPathin interface- ArcProperty
 
- 
getRelationshipDescription copied from interface:ArcPropertyReturns a relationship associated with this arc.- Specified by:
- getRelationshipin interface- ArcProperty
 
- 
getComplimentaryReverseArcDescription copied from interface:ArcPropertyReturns a complimentary reverse ArcProperty or null if no reverse arc exists.- Specified by:
- getComplimentaryReverseArcin interface- ArcProperty
 
- 
getTargetDescriptorDescription copied from interface:ArcPropertyReturns a ClassDescriptor for the type of graph nodes pointed to by this arc property. Note that considering that a target object may be a subclass of the class handled by the descriptor, users of this method may need to callClassDescriptor.getSubclassDescriptor(Class)before using the descriptor to access objects.- Specified by:
- getTargetDescriptorin interface- ArcProperty
 
- 
setReverseA convenience method to set the reverse arc used by subclasses.
 
-