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 BaseArcProperty
complimentaryReverseArcName, relationship, reverseDbPath, targetDescriptorModifier and TypeFieldDescriptionprotected Stringprotected ObjRelationshipprotected CayennePathprotected ClassDescriptorFields inherited from class 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 BaseArcProperty
getComplimentaryReverseArc, getComplimentaryReverseDbRelationshipPath, getRelationship, getTargetDescriptor, isFault, setReverseModifier and TypeMethodDescriptionReturns a complimentary reverse ArcProperty or null if no reverse arc exists.Returns a path over reverse DbRelationships for this arc's ObjRelationship.Returns a relationship associated with this arc.Returns a ClassDescriptor for the type of graph nodes pointed to by this arc property.abstract booleanReturns 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.Methods inherited from class BaseProperty
getName, injectValueHolder, readProperty, readPropertyDirectly, toString, writeProperty, writePropertyDirectlyModifier and TypeMethodDescriptiongetName()Returns property name.voidinjectValueHolder(Object object) Does nothing.readProperty(Object object) Returns a property value, inflating unresolved object if need.readPropertyDirectly(Object object) Returns a property value of an object without disturbing the object fault status.toString()voidwriteProperty(Object object, Object oldValue, Object newValue) Sets a property value, inflating unresolved object if need.voidwritePropertyDirectly(Object object, Object oldValue, Object newValue) Sets a property value of an object without disturbing the object fault status.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ArcProperty
invalidateModifier and TypeMethodDescriptionvoidinvalidate(Object object) Turns a property of an object into a fault.Methods inherited from interface PropertyDescriptor
equals
-
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.
-