Class BidirectionalPolicy
java.lang.Object
org.eclipse.persistence.oxm.mappings.BidirectionalPolicy
Purpose: Provides a means to configure bidirectional relationship maintenance for OXM mappings. ant
- Author:
- mmacivor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the AttributeAccessor that is used to get and set the value of the container on the target object.Gets the name of the backpointer attribute on the target object.org.eclipse.persistence.internal.queries.ContainerPolicy
Gets the name of the method to be used when accessing the value of the back pointer on the target object of this mapping.Gets the name of the method to be used when setting the value of the back pointer on the target object of this mapping.void
setBidirectionalTargetAccessor
(AttributeAccessor anAttributeAccessor) Sets the AttributeAccessor that is used to get and set the value of the container on the target object.void
setBidirectionalTargetAttributeName
(String attributeName) Sets the name of the backpointer attribute on the target object.void
void
setBidirectionalTargetContainerPolicy
(org.eclipse.persistence.internal.queries.ContainerPolicy cp) void
setBidirectionalTargetGetMethodName
(String methodName) Sets the method name to be used when accessing the value of the back pointer on the target object of this mapping.void
setBidirectionalTargetSetMethodName
(String methodName) Sets the name of the method to be used when setting the value of the back pointer on the target object of this mapping.
-
Constructor Details
-
BidirectionalPolicy
public BidirectionalPolicy()
-
-
Method Details
-
setBidirectionalTargetAccessor
Sets the AttributeAccessor that is used to get and set the value of the container on the target object.- Parameters:
anAttributeAccessor
- - the accessor to be used.
-
setBidirectionalTargetAttributeName
Sets the name of the backpointer attribute on the target object. Used to populate the backpointer. If the specified attribute doesn't exist on the reference class of this mapping, a DescriptorException will be thrown during initialize.- Parameters:
attributeName
- - the name of the backpointer attribute to be populated
-
getBidirectionalTargetAttributeName
Gets the name of the backpointer attribute on the target object. Used to populate the backpointer. -
setBidirectionalTargetGetMethodName
Sets the method name to be used when accessing the value of the back pointer on the target object of this mapping. If the specified method doesn't exist on the reference class of this mapping, a DescriptorException will be thrown during initialize.- Parameters:
methodName
- - the getter method to be used.
-
setBidirectionalTargetSetMethodName
Sets the name of the method to be used when setting the value of the back pointer on the target object of this mapping. If the specified method doesn't exist on the reference class of this mapping, a DescriptorException will be thrown during initialize.- Parameters:
methodName
- - the setter method to be used.
-
getBidirectionalTargetGetMethodName
Gets the name of the method to be used when accessing the value of the back pointer on the target object of this mapping. -
getBidirectionalTargetSetMethodName
Gets the name of the method to be used when setting the value of the back pointer on the target object of this mapping. -
getBidirectionalTargetContainerPolicy
public org.eclipse.persistence.internal.queries.ContainerPolicy getBidirectionalTargetContainerPolicy() -
setBidirectionalTargetContainerPolicy
public void setBidirectionalTargetContainerPolicy(org.eclipse.persistence.internal.queries.ContainerPolicy cp) -
setBidirectionalTargetContainerClass
-
getBidirectionalTargetAccessor
Gets the AttributeAccessor that is used to get and set the value of the container on the target object.
-