/** * Handle the marshal operation for this NodeValue's XMLField. The target * object's primary key value that is mapped to this NodeValue's XMLField * (in the XMLObjectReferenceMapping's source-target key field association list) * is retrieved and written out. */ public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) { if (xmlObjectReferenceMapping.isReadOnly()) { return false; } Object targetObject = marshalContext.getAttributeValue(object, xmlObjectReferenceMapping); return this.marshalSingleValue(xPathFragment, marshalRecord, object, targetObject, session, namespaceResolver, marshalContext); }
/** * Handle the marshal operation for this NodeValue's XMLField. The target * object's primary key value that is mapped to this NodeValue's XMLField * (in the XMLObjectReferenceMapping's source-target key field association list) * is retrieved and written out. */ public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, CoreAbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) { if (xmlObjectReferenceMapping.isReadOnly()) { return false; } Object targetObject = marshalContext.getAttributeValue(object, xmlObjectReferenceMapping); return this.marshalSingleValue(xPathFragment, marshalRecord, object, targetObject, session, namespaceResolver, marshalContext); }
/** * Handle the marshal operation for this NodeValue's XMLField. The target * object's primary key value that is mapped to this NodeValue's XMLField * (in the XMLObjectReferenceMapping's source-target key field association list) * is retrieved and written out. */ public boolean marshal(XPathFragment xPathFragment, MarshalRecord marshalRecord, Object object, AbstractSession session, NamespaceResolver namespaceResolver, MarshalContext marshalContext) { if (xmlObjectReferenceMapping.isReadOnly()) { return false; } Object targetObject = marshalContext.getAttributeValue(object, xmlObjectReferenceMapping); return this.marshalSingleValue(xPathFragment, marshalRecord, object, targetObject, session, namespaceResolver, marshalContext); }