/** * Gets the AttributeAccessor that is used to get and set the value of the * container on the target object. * @deprecated Replaced by getInverseReferenceMapping().getAttributeAccessor() */ @Deprecated public AttributeAccessor getContainerAccessor() { if (this.inverseReferenceMapping == null) { return null; } return this.inverseReferenceMapping.getAttributeAccessor(); }
/** * Gets the AttributeAccessor that is used to get and set the value of the * container on the target object. * @deprecated Replaced by getInverseReferenceMapping().getAttributeAccessor() */ @Deprecated public AttributeAccessor getContainerAccessor() { if (this.inverseReferenceMapping == null) { return null; } return this.inverseReferenceMapping.getAttributeAccessor(); }
/** * Gets the AttributeAccessor that is used to get and set the value of the * container on the target object. * @deprecated Replaced by getInverseReferenceMapping().getAttributeAccessor() */ @Deprecated public AttributeAccessor getContainerAccessor() { if (this.inverseReferenceMapping == null) { return null; } return this.inverseReferenceMapping.getAttributeAccessor(); }
/** * Gets the AttributeAccessor that is used to get and set the value of the * container on the target object. * @deprecated Replaced by getInverseReferenceMapping().getAttributeAccessor() */ @Deprecated public AttributeAccessor getContainerAccessor() { if (this.inverseReferenceMapping == null) { return null; } return this.inverseReferenceMapping.getAttributeAccessor(); }
/** * Gets the AttributeAccessor that is used to get and set the value of the * container on the target object. * @deprecated Replaced by getInverseReferenceMapping().getAttributeAccessor() */ @Deprecated public AttributeAccessor getContainerAccessor() { if (this.inverseReferenceMapping == null) { return null; } return this.inverseReferenceMapping.getAttributeAccessor(); }
/** * Gets the AttributeAccessor that is used to get and set the value of the * container on the target object. * @deprecated Replaced by getInverseReferenceMapping().getAttributeAccessor() */ @Deprecated public AttributeAccessor getContainerAccessor() { if (this.inverseReferenceMapping == null) { return null; } return this.inverseReferenceMapping.getAttributeAccessor(); }
if (null != this.inverseReferenceMapping.getAttributeAccessor()) { this.inverseReferenceMapping.getAttributeAccessor().initializeAttributes(this.referenceClass);
if (null != this.inverseReferenceMapping.getAttributeAccessor()) { this.inverseReferenceMapping.getAttributeAccessor().initializeAttributes(this.referenceClass);
if (null != this.inverseReferenceMapping.getAttributeAccessor()) { this.inverseReferenceMapping.getAttributeAccessor().initializeAttributes(this.referenceClass);
xmlCompositeObjectMapping.getInverseReferenceMapping().getAttributeAccessor().setAttributeValueInObject(unmarshalRecord.getCurrentObject(), valueToSet);
Class containerClass = null; if(oxmMapping instanceof XMLCompositeObjectMapping) { containerAccessor = ((XMLCompositeObjectMapping)oxmMapping).getInverseReferenceMapping().getAttributeAccessor(); containerClass = ((XMLCompositeObjectMapping)oxmMapping).getReferenceClass(); } else if(oxmMapping instanceof XMLCompositeCollectionMapping) { containerAccessor = ((XMLCompositeCollectionMapping)oxmMapping).getInverseReferenceMapping().getAttributeAccessor(); containerClass = ((XMLCompositeCollectionMapping)oxmMapping).getReferenceClass(); if(nextMapping instanceof XMLObjectReferenceMapping) { XMLObjectReferenceMapping refMapping = (XMLObjectReferenceMapping)nextMapping; if(refMapping.getInverseReferenceMapping().getAttributeAccessor() != null && refMapping.getInverseReferenceMapping().getContainerPolicy() != null) { ClassDescriptor refDescriptor = ormSession.getClassDescriptor(refMapping.getReferenceClass()); if(refDescriptor != null) {
Object next = cPolicy.next(iterator, session); if(mapping.getInverseReferenceMapping().getContainerPolicy() == null) { mapping.getInverseReferenceMapping().getAttributeAccessor().setAttributeValueInObject(next, currentObject); } else { Object backpointerContainer = mapping.getInverseReferenceMapping().getAttributeAccessor().getAttributeValueFromObject(next); if(backpointerContainer == null) { backpointerContainer = mapping.getInverseReferenceMapping().getContainerPolicy().containerInstance(); mapping.getInverseReferenceMapping().getAttributeAccessor().setAttributeValueInObject(next, backpointerContainer); AttributeAccessor backpointerAccessor = mapping.getInverseReferenceMapping().getAttributeAccessor(); if(mapping.getInverseReferenceMapping().getContainerPolicy() == null) { backpointerAccessor.setAttributeValueInObject(value, reference.getSourceObject());
xmlCompositeCollectionMapping.getInverseReferenceMapping().getAttributeAccessor().setAttributeValueInObject(objectValue, unmarshalRecord.getCurrentObject()); } else { Object backpointerContainer = xmlCompositeCollectionMapping.getInverseReferenceMapping().getAttributeAccessor().getAttributeValueFromObject(objectValue); if(backpointerContainer == null) { backpointerContainer = xmlCompositeCollectionMapping.getInverseReferenceMapping().getContainerPolicy().containerInstance(); xmlCompositeCollectionMapping.getInverseReferenceMapping().getAttributeAccessor().setAttributeValueInObject(objectValue, backpointerContainer);
if(xmlCompositeObjectMapping.getInverseReferenceMapping() != null) { if(xmlCompositeObjectMapping.getInverseReferenceMapping().getContainerPolicy() == null) { xmlCompositeObjectMapping.getInverseReferenceMapping().getAttributeAccessor().setAttributeValueInObject(object, unmarshalRecord.getCurrentObject()); } else { Object backpointerContainer = xmlCompositeObjectMapping.getInverseReferenceMapping().getAttributeAccessor().getAttributeValueFromObject(object); if(backpointerContainer == null) { backpointerContainer = xmlCompositeObjectMapping.getInverseReferenceMapping().getContainerPolicy().containerInstance(); xmlCompositeObjectMapping.getInverseReferenceMapping().getAttributeAccessor().setAttributeValueInObject(object, backpointerContainer);