/** * INTERNAL: * Use the createRecord method on ObjectBuilder in case the root element is namespace qualified */ protected XMLRecord createXMLRecord(String rootName) { XMLRecord xmlRec; if (getQuery().getDescriptor() != null && getQuery().getDescriptor() instanceof EISDescriptor) { xmlRec = (XMLRecord)((XMLObjectBuilder)this.getQuery().getDescriptor().getObjectBuilder()).createRecord(getInputRootElementName(), getQuery().getSession()); } else { xmlRec = new org.eclipse.persistence.oxm.record.DOMRecord(getInputRootElementName()); xmlRec.setSession(getQuery().getSession()); } return xmlRec; } }
/** * INTERNAL: * Use the createRecord method on ObjectBuilder in case the root element is namespace qualified */ protected XMLRecord createXMLRecord(String rootName) { XMLRecord xmlRec; if (getQuery().getDescriptor() != null && getQuery().getDescriptor() instanceof EISDescriptor) { xmlRec = (XMLRecord)((XMLObjectBuilder)this.getQuery().getDescriptor().getObjectBuilder()).createRecord(getInputRootElementName(), getQuery().getSession()); } else { xmlRec = new org.eclipse.persistence.oxm.record.DOMRecord(getInputRootElementName()); xmlRec.setSession(getQuery().getSession()); } return xmlRec; } }
/** * INTERNAL: * Use the createRecord method on ObjectBuilder in case the root element is namespace qualified */ protected XMLRecord createXMLRecord(String rootName) { XMLRecord xmlRec; if (getQuery().getDescriptor() != null && getQuery().getDescriptor() instanceof EISDescriptor) { xmlRec = (XMLRecord)((XMLObjectBuilder)this.getQuery().getDescriptor().getObjectBuilder()).createRecord(getInputRootElementName(), getQuery().getSession()); } else { xmlRec = new org.eclipse.persistence.oxm.record.DOMRecord(getInputRootElementName()); xmlRec.setSession(getQuery().getSession()); } return xmlRec; } }
/** * Set the default record name from the descriptor. */ public void prepare(AbstractSession session) { if (getInputRootElementName().length() == 0) { if ((getQuery() != null) && (getQuery().getDescriptor() instanceof EISDescriptor)) { EISDescriptor descriptor = (EISDescriptor)getQuery().getDescriptor(); setInputRootElementName(descriptor.getDataTypeName()); } else { setInputRootElementName("input"); } } if (getOutputRootElementName().length() == 0) { if ((getQuery() != null) && (getQuery().getDescriptor() instanceof EISDescriptor)) { EISDescriptor descriptor = (EISDescriptor)getQuery().getDescriptor(); setOutputRootElementName(descriptor.getDataTypeName()); } else { setInputRootElementName("output"); } } super.prepare(session); }
/** * Set the default record name from the descriptor. */ public void prepare(AbstractSession session) { if (getInputRootElementName().length() == 0) { if ((getQuery() != null) && (getQuery().getDescriptor() instanceof EISDescriptor)) { EISDescriptor descriptor = (EISDescriptor)getQuery().getDescriptor(); setInputRootElementName(descriptor.getDataTypeName()); } else { setInputRootElementName("input"); } } if (getOutputRootElementName().length() == 0) { if ((getQuery() != null) && (getQuery().getDescriptor() instanceof EISDescriptor)) { EISDescriptor descriptor = (EISDescriptor)getQuery().getDescriptor(); setOutputRootElementName(descriptor.getDataTypeName()); } else { setInputRootElementName("output"); } } super.prepare(session); }
/** * Set the default record name from the descriptor. */ public void prepare(AbstractSession session) { if (getInputRootElementName().length() == 0) { if ((getQuery() != null) && (getQuery().getDescriptor() instanceof EISDescriptor)) { EISDescriptor descriptor = (EISDescriptor)getQuery().getDescriptor(); setInputRootElementName(descriptor.getDataTypeName()); } else { setInputRootElementName("input"); } } if (getOutputRootElementName().length() == 0) { if ((getQuery() != null) && (getQuery().getDescriptor() instanceof EISDescriptor)) { EISDescriptor descriptor = (EISDescriptor)getQuery().getDescriptor(); setOutputRootElementName(descriptor.getDataTypeName()); } else { setInputRootElementName("output"); } } super.prepare(session); }
/** * Create a DOM input record for this interaction. * Convert the database row or arguments into an XML DOM tree. */ public Record createInputRecord(EISAccessor accessor) { Record record = accessor.getEISPlatform().createDOMRecord(getInputRecordName(), accessor); Element dom = createInputDOM(accessor); accessor.getEISPlatform().setDOMInRecord(dom, record, this, accessor); if (record instanceof XMLRecord) { ((XMLRecord) record).setSession(this.getQuery().getSession()); } return record; }
/** * Create a DOM input record for this interaction. * Convert the database row or arguments into an XML DOM tree. */ public Record createInputRecord(EISAccessor accessor) { Record record = accessor.getEISPlatform().createDOMRecord(getInputRecordName(), accessor); Element dom = createInputDOM(accessor); accessor.getEISPlatform().setDOMInRecord(dom, record, this, accessor); if (record instanceof XMLRecord) { ((XMLRecord) record).setSession(this.getQuery().getSession()); } return record; }
/** * Create a DOM input record for this interaction. * Convert the database row or arguments into an XML DOM tree. */ public Record createInputRecord(EISAccessor accessor) { Record record = accessor.getEISPlatform().createDOMRecord(getInputRecordName(), accessor); Element dom = createInputDOM(accessor); accessor.getEISPlatform().setDOMInRecord(dom, record, this, accessor); if (record instanceof XMLRecord) { ((XMLRecord) record).setSession(this.getQuery().getSession()); } return record; }