Package org.apache.cayenne.reflect
Class BaseToOneProperty
java.lang.Object
org.apache.cayenne.reflect.BaseProperty
org.apache.cayenne.reflect.BaseArcProperty
org.apache.cayenne.reflect.BaseToOneProperty
- All Implemented Interfaces:
ArcProperty,PropertyDescriptor,ToOneProperty
A convenience base superclass for
ToOneProperty implementors.- Since:
- 3.0
-
Field Summary
Fields inherited from class org.apache.cayenne.reflect.BaseArcProperty
complimentaryReverseArcName, relationship, reverseDbPath, targetDescriptorFields inherited from class org.apache.cayenne.reflect.BaseProperty
accessor, owner -
Constructor Summary
ConstructorsConstructorDescriptionBaseToOneProperty(ClassDescriptor owner, ClassDescriptor targetDescriptor, Accessor accessor, String reverseName) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanvisit(PropertyVisitor visitor) A visitor accept method.Methods inherited from class org.apache.cayenne.reflect.BaseArcProperty
getComplimentaryReverseArc, getComplimentaryReverseDbRelationshipPath, getRelationship, getTargetDescriptor, isFault, setReverseMethods inherited from class org.apache.cayenne.reflect.BaseProperty
getName, injectValueHolder, readProperty, readPropertyDirectly, toString, writeProperty, writePropertyDirectlyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.cayenne.reflect.ArcProperty
getComplimentaryReverseArc, getComplimentaryReverseDbRelationshipPath, getRelationship, getTargetDescriptor, invalidate, isFaultMethods inherited from interface org.apache.cayenne.reflect.PropertyDescriptor
equals, getName, injectValueHolder, readProperty, readPropertyDirectly, writeProperty, writePropertyDirectly
-
Constructor Details
-
BaseToOneProperty
public BaseToOneProperty(ClassDescriptor owner, ClassDescriptor targetDescriptor, Accessor accessor, String reverseName)
-
-
Method Details
-
setTarget
- Specified by:
setTargetin interfaceToOneProperty
-
visit
Description copied from interface:PropertyDescriptorA visitor accept method.- Specified by:
visitin interfacePropertyDescriptor- Specified by:
visitin classBaseArcProperty- 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.
-