setAttributeValueInObject(targetObject, attributeValue); if(null != getContainerAccessor()) { if(this.inverseReferenceMapping.getContainerPolicy() == null) { getContainerAccessor().setAttributeValueInObject(attributeValue, targetObject); } else { Object backpointerContainer = getContainerAccessor().getAttributeValueFromObject(attributeValue); if(backpointerContainer == null) { backpointerContainer = this.inverseReferenceMapping.getContainerPolicy().containerInstance(); getContainerAccessor().setAttributeValueInObject(attributeValue, backpointerContainer); this.inverseReferenceMapping.getContainerPolicy().addInto(targetObject, backpointerContainer, executionSession);
setAttributeValueInObject(targetObject, attributeValue); if(null != getContainerAccessor()) { if(this.inverseReferenceMapping.getContainerPolicy() == null) { getContainerAccessor().setAttributeValueInObject(attributeValue, targetObject); } else { Object backpointerContainer = getContainerAccessor().getAttributeValueFromObject(attributeValue); if(backpointerContainer == null) { backpointerContainer = this.inverseReferenceMapping.getContainerPolicy().containerInstance(); getContainerAccessor().setAttributeValueInObject(attributeValue, backpointerContainer); this.inverseReferenceMapping.getContainerPolicy().addInto(targetObject, backpointerContainer, executionSession);
setAttributeValueInObject(targetObject, attributeValue); if(null != getContainerAccessor()) { if(this.inverseReferenceMapping.getContainerPolicy() == null) { getContainerAccessor().setAttributeValueInObject(attributeValue, targetObject); } else { Object backpointerContainer = getContainerAccessor().getAttributeValueFromObject(attributeValue); if(backpointerContainer == null) { backpointerContainer = this.inverseReferenceMapping.getContainerPolicy().containerInstance(); getContainerAccessor().setAttributeValueInObject(attributeValue, backpointerContainer); this.inverseReferenceMapping.getContainerPolicy().addInto(targetObject, backpointerContainer, executionSession);
if(null != getContainerAccessor()) { Object currentObject = ((XMLRecord)row).getCurrentObject(); if(this.inverseReferenceMapping.getContainerPolicy() == null) { getContainerAccessor().setAttributeValueInObject(objectToAdd, currentObject); } else { Object backpointerContainer = getContainerAccessor().getAttributeValueFromObject(objectToAdd); if(backpointerContainer == null) { backpointerContainer = this.inverseReferenceMapping.getContainerPolicy().containerInstance(); getContainerAccessor().setAttributeValueInObject(objectToAdd, backpointerContainer); this.inverseReferenceMapping.getContainerPolicy().addInto(currentObject, backpointerContainer, executionSession);
while(cPolicy.hasNext(iterator)) { 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); mapping.getInverseReferenceMapping().getContainerPolicy().addInto(currentObject, backpointerContainer, session); if(mapping.getInverseReferenceMapping().getContainerPolicy() == null) { backpointerAccessor.setAttributeValueInObject(value, reference.getSourceObject()); } else { Object backpointerContainer = backpointerAccessor.getAttributeValueFromObject(value); if(backpointerContainer == null) { backpointerContainer = mapping.getInverseReferenceMapping().getContainerPolicy().containerInstance(); backpointerAccessor.setAttributeValueInObject(value, backpointerContainer); mapping.getInverseReferenceMapping().getContainerPolicy().addInto(reference.getSourceObject(), backpointerContainer, session);
if(null != getContainerAccessor()) { Object currentObject = ((XMLRecord)row).getCurrentObject(); if(this.inverseReferenceMapping.getContainerPolicy() == null) { getContainerAccessor().setAttributeValueInObject(objectToAdd, currentObject); } else { Object backpointerContainer = getContainerAccessor().getAttributeValueFromObject(objectToAdd); if(backpointerContainer == null) { backpointerContainer = this.inverseReferenceMapping.getContainerPolicy().containerInstance(); getContainerAccessor().setAttributeValueInObject(objectToAdd, backpointerContainer); this.inverseReferenceMapping.getContainerPolicy().addInto(currentObject, backpointerContainer, executionSession);
if(null != getContainerAccessor()) { Object currentObject = ((XMLRecord)row).getCurrentObject(); if(this.inverseReferenceMapping.getContainerPolicy() == null) { getContainerAccessor().setAttributeValueInObject(objectToAdd, currentObject); } else { Object backpointerContainer = getContainerAccessor().getAttributeValueFromObject(objectToAdd); if(backpointerContainer == null) { backpointerContainer = this.inverseReferenceMapping.getContainerPolicy().containerInstance(); getContainerAccessor().setAttributeValueInObject(objectToAdd, backpointerContainer); this.inverseReferenceMapping.getContainerPolicy().addInto(currentObject, backpointerContainer, executionSession);
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) { DatabaseMapping backpointerMapping =refDescriptor.getMappingForAttributeName(refMapping.getInverseReferenceMapping().getAttributeName()); if(backpointerMapping != null && backpointerMapping.isCollectionMapping()) { refMapping.getInverseReferenceMapping().getContainerPolicy().setContainerClass(((CollectionMapping)backpointerMapping).getContainerPolicy().getContainerClass());
if(xmlCompositeCollectionMapping.getInverseReferenceMapping().getContainerPolicy() == null) { 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); xmlCompositeCollectionMapping.getInverseReferenceMapping().getContainerPolicy().addInto(unmarshalRecord.getCurrentObject(), backpointerContainer, unmarshalRecord.getSession());
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); xmlCompositeObjectMapping.getInverseReferenceMapping().getContainerPolicy().addInto(unmarshalRecord.getCurrentObject(), backpointerContainer, unmarshalRecord.getSession());