boolean namespaceAware = ((XMLRecord)databaseRow).isNamespaceAware() || ((XMLRecord)databaseRow).hasCustomNamespaceMapper(); if(value instanceof String){ if(namespaceAware){
boolean namespaceAware = ((XMLRecord)databaseRow).isNamespaceAware() || ((XMLRecord)databaseRow).hasCustomNamespaceMapper(); if(value instanceof String){ if(namespaceAware){
boolean namespaceAware = ((XMLRecord) rowFromDatabase).isNamespaceAware(); String indicatorValue = (String)indicator; int index = -1;
boolean namespaceAware = ((XMLRecord) rowFromDatabase).isNamespaceAware(); String indicatorValue = (String)indicator; int index = -1;
public void writeSingleValue(Object value, Object parent, XMLRecord xmlRow, AbstractSession session) { Object attributeValue = convertObjectValueToDataValue(value, session, xmlRow.getMarshaller()); if (attributeValue != null) { XMLField variableField = new XMLField(); variableField.setXPathFragment(getXPathFragmentForValue(attributeValue, xmlRow.getNamespaceResolver(), xmlRow.isNamespaceAware(), xmlRow.getNamespaceSeparator())); xmlRow.put(variableField, buildCompositeRow(variableField, attributeValue, session, xmlRow, WriteType.UNDEFINED)); } }
public void writeSingleValue(Object value, Object parent, XMLRecord xmlRow, AbstractSession session) { Object attributeValue = convertObjectValueToDataValue(value, session, xmlRow.getMarshaller()); if (attributeValue != null) { XMLField variableField = new XMLField(); variableField.setXPathFragment(getXPathFragmentForValue(attributeValue, xmlRow.getNamespaceResolver(), xmlRow.isNamespaceAware(), xmlRow.getNamespaceSeparator())); xmlRow.put(variableField, buildCompositeRow(variableField, attributeValue, session, xmlRow, WriteType.UNDEFINED)); } }
XPathQName leafElementXPathQName = new XPathQName(leafElementType, ((XMLRecord) nestedRow).isNamespaceAware()); Object indicator = aDescriptor.getInheritancePolicy().getClassIndicatorMapping().get(leafElementXPathQName); if(indicator != null) {
XPathQName leafElementXPathQName = new XPathQName(leafElementType, ((XMLRecord) nestedRow).isNamespaceAware()); Object indicator = aDescriptor.getInheritancePolicy().getClassIndicatorMapping().get(leafElementXPathQName); if(indicator != null) {
XPathQName leafElementXPathQName = new XPathQName(leafElementType, ((XMLRecord) nestedRow).isNamespaceAware()); Object indicator = aDescriptor.getInheritancePolicy().getClassIndicatorMapping().get(leafElementXPathQName); if(indicator != null) {
XPathQName leafElementXPathQName = new XPathQName(leafElementType, ((XMLRecord) nestedRow).isNamespaceAware()); Object indicator = aDescriptor.getInheritancePolicy().getClassIndicatorMapping().get(leafElementXPathQName); if(indicator != null) {
public void writeFromObjectIntoRow(Object object, AbstractRecord row, AbstractSession session, WriteType writeType) throws DescriptorException { if (this.isReadOnly()) { return; } Object attributeValue = this.getAttributeValueFromObject(object); ContainerPolicy cp = this.getContainerPolicy(); Object iter = cp.iteratorFor(attributeValue); if(null != iter) { while(cp.hasNext(iter)) { Object element = cp.next(iter, session); // convert the value - if necessary element = convertObjectValueToDataValue(element, session, ((XMLRecord) row).getMarshaller()); if(element != null) { XMLField variableField = new XMLField(); XMLRecord xmlRow = (XMLRecord)row; //variableField.setXPathFragment(getXPathFragmentForValue(element,(XMLRecord)row)); variableField.setXPathFragment(getXPathFragmentForValue(element,xmlRow.getNamespaceResolver(), xmlRow.isNamespaceAware(), xmlRow.getNamespaceSeparator())); row.put(variableField, buildCompositeRow(variableField, element, session, row, writeType)); } } } }
public void writeFromObjectIntoRow(Object object, AbstractRecord row, AbstractSession session, WriteType writeType) throws DescriptorException { if (this.isReadOnly()) { return; } Object attributeValue = this.getAttributeValueFromObject(object); ContainerPolicy cp = this.getContainerPolicy(); Object iter = cp.iteratorFor(attributeValue); if(null != iter) { while(cp.hasNext(iter)) { Object element = cp.next(iter, session); // convert the value - if necessary element = convertObjectValueToDataValue(element, session, ((XMLRecord) row).getMarshaller()); if(element != null) { XMLField variableField = new XMLField(); XMLRecord xmlRow = (XMLRecord)row; //variableField.setXPathFragment(getXPathFragmentForValue(element,(XMLRecord)row)); variableField.setXPathFragment(getXPathFragmentForValue(element,xmlRow.getNamespaceResolver(), xmlRow.isNamespaceAware(), xmlRow.getNamespaceSeparator())); row.put(variableField, buildCompositeRow(variableField, element, session, row, writeType)); } } } }
XPathQName xpathQName = new XPathQName(leafElementType, row.isNamespaceAware()); Object indicator = inheritancePolicy.getClassIndicatorMapping().get(xpathQName); if (indicator != null) {
XPathQName xpathQName = new XPathQName(leafElementType, row.isNamespaceAware()); Object indicator = inheritancePolicy.getClassIndicatorMapping().get(xpathQName); if (indicator != null) {