Tabnine Logo
EISPlatform.createDatabaseRowFromDOMRecord
Code IndexAdd Tabnine to your IDE (free)

How to use
createDatabaseRowFromDOMRecord
method
in
org.eclipse.persistence.eis.EISPlatform

Best Java code snippets using org.eclipse.persistence.eis.EISPlatform.createDatabaseRowFromDOMRecord (Showing top 6 results out of 315)

origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Build a collection of database rows from the Record returned from the interaction.
 */
public Vector buildRows(Record record, EISAccessor accessor) {
  Vector rows = null;
  if (record == null) {
    return new Vector(0);
  }
  AbstractRecord row = accessor.getEISPlatform().createDatabaseRowFromDOMRecord(record, this, accessor);
  if (getOutputResultPath().length() > 0) {
    Vector values = (Vector)row.getValues(getOutputResultPath());
    if (values == null) {
      values = new Vector(0);
    }
    rows = values;
  } else {
    rows = new Vector(1);
    rows.add(row);
  }
  return rows;
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Build a collection of database rows from the Record returned from the interaction.
 */
public Vector buildRows(Record record, EISAccessor accessor) {
  Vector rows = null;
  if (record == null) {
    return new Vector(0);
  }
  AbstractRecord row = accessor.getEISPlatform().createDatabaseRowFromDOMRecord(record, this, accessor);
  if (getOutputResultPath().length() > 0) {
    Vector values = (Vector)row.getValues(getOutputResultPath());
    if (values == null) {
      values = new Vector(0);
    }
    rows = values;
  } else {
    rows = new Vector(1);
    rows.add(row);
  }
  return rows;
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * Build a collection of database rows from the Record returned from the interaction.
 */
public Vector buildRows(Record record, EISAccessor accessor) {
  Vector rows = null;
  if (record == null) {
    return new Vector(0);
  }
  AbstractRecord row = accessor.getEISPlatform().createDatabaseRowFromDOMRecord(record, this, accessor);
  if (getOutputResultPath().length() > 0) {
    Vector values = (Vector)row.getValues(getOutputResultPath());
    if (values == null) {
      values = new Vector(0);
    }
    rows = values;
  } else {
    rows = new Vector(1);
    rows.add(row);
  }
  return rows;
}
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: 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;
}
org.eclipse.persistence.eisEISPlatformcreateDatabaseRowFromDOMRecord

Javadoc

INTERNAL: Allow the platform to handle the creation of the Record for the DOM record. By default instantiate an EISDOMRecord which introspects the record for a getDOM method.

Popular methods of EISPlatform

  • <init>
    Default constructor.
  • appendParameter
    Add the parameter. Convert the parameter to a string and write it. Convert rows to XML strings.
  • buildInteractionSpec
    Allow the platform to build the interaction spec based on properties defined in the interaction.
  • buildRow
    INTERNAL: Allow the platform to handle record to row conversion.
  • buildRows
    Allow the platform to handle record to row conversion.
  • createDOMRecord
    Allow the platform to handle the creation of the DOM record. By default create a mapped record an as
  • createInputRecord
    Allow the platform to create the appropriate type of record for the interaction.
  • createOutputRecord
    Allow the platform to create the appropriate type of record for the interaction. If an output record
  • getConversionManager
    The platform holds its own instance of conversion manager to allow customization.
  • getRecordConverter
    Return the record converter.
  • isDOMRecordSupported
    Return if this platform supports XML/DOM Records.
  • requiresAutoCommit
    Return if this platform requires auto commit of the local transaction for interactions outside of an
  • isDOMRecordSupported,
  • requiresAutoCommit,
  • setDOMInRecord,
  • setIsDOMRecordSupported,
  • setIsIndexedRecordSupported,
  • setIsMappedRecordSupported,
  • setRequiresAutoCommit,
  • setShouldConvertDataToStrings,
  • setSupportsLocalTransactions

Popular in Java

  • Reading from database using SQL prepared statement
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (Timer)
  • getContentResolver (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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