Tabnine Logo
XMLInteraction.getOutputRootElementName
Code IndexAdd Tabnine to your IDE (free)

How to use
getOutputRootElementName
method
in
org.eclipse.persistence.eis.interactions.XMLInteraction

Best Java code snippets using org.eclipse.persistence.eis.interactions.XMLInteraction.getOutputRootElementName (Showing top 6 results out of 315)

origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Build a database row from the record returned from the interaction.
 */
public AbstractRecord buildRow(Record record, EISAccessor accessor) {
  if (record == null) {
    return null;
  }
  AbstractRecord row = accessor.getEISPlatform().createDatabaseRowFromDOMRecord(record, this, accessor);
  if (row == null) {
    return null;
  }
  if (getOutputResultPath().length() > 0) {
    row = (AbstractRecord)row.get(getOutputResultPath());
    // Handle the case were the output row is mapped into a database row of values.
  } else if (hasOutputArguments()) {
    row = createXMLRecord(getOutputRootElementName());
    for (int index = 0; index < getOutputArgumentNames().size(); index++) {
      DatabaseField field = (DatabaseField)getOutputArguments().get(index);
      row.put(field, row.get(getOutputArgumentNames().get(index)));
    }
  }
  return row;
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Build a database row from the record returned from the interaction.
 */
public AbstractRecord buildRow(Record record, EISAccessor accessor) {
  if (record == null) {
    return null;
  }
  AbstractRecord row = accessor.getEISPlatform().createDatabaseRowFromDOMRecord(record, this, accessor);
  if (row == null) {
    return null;
  }
  if (getOutputResultPath().length() > 0) {
    row = (AbstractRecord)row.get(getOutputResultPath());
    // Handle the case were the output row is mapped into a database row of values.
  } else if (hasOutputArguments()) {
    row = createXMLRecord(getOutputRootElementName());
    for (int index = 0; index < getOutputArgumentNames().size(); index++) {
      DatabaseField field = (DatabaseField)getOutputArguments().get(index);
      row.put(field, row.get(getOutputArgumentNames().get(index)));
    }
  }
  return row;
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Build a database row from the record returned from the interaction.
 */
public AbstractRecord buildRow(Record record, EISAccessor accessor) {
  if (record == null) {
    return null;
  }
  AbstractRecord row = accessor.getEISPlatform().createDatabaseRowFromDOMRecord(record, this, accessor);
  if (row == null) {
    return null;
  }
  if (getOutputResultPath().length() > 0) {
    row = (AbstractRecord)row.get(getOutputResultPath());
    // Handle the case were the output row is mapped into a database row of values.
  } else if (hasOutputArguments()) {
    row = createXMLRecord(getOutputRootElementName());
    for (int index = 0; index < getOutputArgumentNames().size(); index++) {
      DatabaseField field = (DatabaseField)getOutputArguments().get(index);
      row.put(field, row.get(getOutputArgumentNames().get(index)));
    }
  }
  return row;
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * 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);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * 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);
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * 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);
}
org.eclipse.persistence.eis.interactionsXMLInteractiongetOutputRootElementName

Javadoc

PUBLIC: Return the root element name to use for the output DOM.

Popular methods of XMLInteraction

  • createInputDOM
    Create a DOM for this interaction. Convert the database row or arguments into an XML DOM tree.
  • createXMLRecord
    INTERNAL: Use the createRecord method on ObjectBuilder in case the root element is namespace qualifi
  • getArgumentNames
  • getArguments
  • getFunctionName
  • getInputRecordName
  • getInputResultPath
  • getInputRootElementName
    PUBLIC: Return the root element name to use for the input DOM.
  • getInputRow
  • getInteractionSpec
  • getOutputArgumentNames
  • getOutputArguments
  • getOutputArgumentNames,
  • getOutputArguments,
  • getOutputResultPath,
  • getParameters,
  • getProperties,
  • getQuery,
  • hasArguments,
  • hasOutputArguments,
  • prepare

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSystemService (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • putExtra (Intent)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now