congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
IndexedInteraction
Code IndexAdd Tabnine to your IDE (free)

How to use
IndexedInteraction
in
org.eclipse.persistence.eis.interactions

Best Java code snippets using org.eclipse.persistence.eis.interactions.IndexedInteraction (Showing top 15 results out of 315)

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

/**
 * PUBLIC:
 * Define the argument to the interaction for the index argument.
 * This must be called in the order of the arguments in the input indexed record.
 * The argumentValue is the value of the argument to be used to pass to the interaction.
 */
public void addArgumentValue(Object argumentValue) {
  getArguments().addElement(argumentValue);
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * PUBLIC:
 * Define the field/argument name to be substitute for the index output argument.
 * This must be called in the order of the output arguments in the result indexed record.
 * The argumentFieldName is the field or argument name in the descriptor that maps to the indexed value.
 */
public void addOutputArgument(String argumentFieldName) {
  getOutputArguments().addElement(new DatabaseField(argumentFieldName));
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * Create an indexed input record for this interaction.
 * Populate the data into the record from this interaction's arguments.
 */
public Record createInputRecord(EISAccessor accessor) {
  try {
    IndexedRecord record = accessor.getRecordFactory().createIndexedRecord(getInputRecordName());
    for (int index = 0; index < getParameters().size(); index++) {
      Object parameter = getParameters().get(index);
      // Allow conversion of nested rows and collections.
      record.add(createRecordElement("", parameter, accessor));
    }
    return record;
  } catch (ResourceException exception) {
    throw EISException.resourceException(exception, accessor, null);
  }
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

  row = new DatabaseRecord(indexedRecord.size());
  for (int index = 0; index < indexedRecord.size(); index++) {
    DatabaseField field = (DatabaseField)getOutputArguments().get(index);
    row.put(field, indexedRecord.get(index));
  if (getOutputArgumentNames().size() == 1) {
    mappedRecord = (MappedRecord)mappedRecord.get(getOutputArgumentNames().get(0));
  } else if (getOutputArgumentNames().size() > 1) {
    row = new DatabaseRecord(getOutputArgumentNames().size());
    for (int index = 0; index < getOutputArgumentNames().size(); index++) {
      DatabaseField field = (DatabaseField)getOutputArguments().get(index);
      row.put(field, mappedRecord.get(getOutputArgumentNames().get(index)));
} else {
  row = new DatabaseRecord(1);
  row.put(getOutputResultPath(), record);
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * Create an indexed input record for this interaction.
 * Populate the data into the record from this interaction's arguments.
 */
public Record createInputRecord(EISAccessor accessor) {
  try {
    IndexedRecord record = accessor.getRecordFactory().createIndexedRecord(getInputRecordName());
    for (int index = 0; index < getParameters().size(); index++) {
      Object parameter = getParameters().get(index);
      // Allow conversion of nested rows and collections.
      record.add(createRecordElement("", parameter, accessor));
    }
    return record;
  } catch (ResourceException exception) {
    throw EISException.resourceException(exception, accessor, null);
  }
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

  row = new DatabaseRecord(indexedRecord.size());
  for (int index = 0; index < indexedRecord.size(); index++) {
    DatabaseField field = (DatabaseField)getOutputArguments().get(index);
    row.put(field, indexedRecord.get(index));
  if (getOutputArgumentNames().size() == 1) {
    mappedRecord = (MappedRecord)mappedRecord.get(getOutputArgumentNames().get(0));
  } else if (getOutputArgumentNames().size() > 1) {
    row = new DatabaseRecord(getOutputArgumentNames().size());
    for (int index = 0; index < getOutputArgumentNames().size(); index++) {
      DatabaseField field = (DatabaseField)getOutputArguments().get(index);
      row.put(field, mappedRecord.get(getOutputArgumentNames().get(index)));
} else {
  row = new DatabaseRecord(1);
  row.put(getOutputResultPath(), record);
origin: com.haulmont.thirdparty/eclipselink

/**
 * Create an indexed input record for this interaction.
 * Populate the data into the record from this interaction's arguments.
 */
public Record createInputRecord(EISAccessor accessor) {
  try {
    IndexedRecord record = accessor.getRecordFactory().createIndexedRecord(getInputRecordName());
    for (int index = 0; index < getParameters().size(); index++) {
      Object parameter = getParameters().get(index);
      // Allow conversion of nested rows and collections.
      record.add(createRecordElement("", parameter, accessor));
    }
    return record;
  } catch (ResourceException exception) {
    throw EISException.resourceException(exception, accessor, null);
  }
}
origin: com.haulmont.thirdparty/eclipselink

  row = new DatabaseRecord(indexedRecord.size());
  for (int index = 0; index < indexedRecord.size(); index++) {
    DatabaseField field = (DatabaseField)getOutputArguments().get(index);
    row.put(field, indexedRecord.get(index));
  if (getOutputArgumentNames().size() == 1) {
    mappedRecord = (MappedRecord)mappedRecord.get(getOutputArgumentNames().get(0));
  } else if (getOutputArgumentNames().size() > 1) {
    row = new DatabaseRecord(getOutputArgumentNames().size());
    for (int index = 0; index < getOutputArgumentNames().size(); index++) {
      DatabaseField field = (DatabaseField)getOutputArguments().get(index);
      row.put(field, mappedRecord.get(getOutputArgumentNames().get(index)));
} else {
  row = new DatabaseRecord(1);
  row.put(getOutputResultPath(), record);
origin: com.haulmont.thirdparty/eclipselink

/**
 * PUBLIC:
 * Define the argument to the interaction for the index argument.
 * This must be called in the order of the arguments in the input indexed record.
 * The argumentValue is the value of the argument to be used to pass to the interaction.
 */
public void addArgumentValue(Object argumentValue) {
  getArguments().addElement(argumentValue);
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * PUBLIC:
 * Define the field/argument name to be substitute for the index output argument.
 * This must be called in the order of the output arguments in the result indexed record.
 * The argumentFieldName is the field or argument name in the descriptor that maps to the indexed value.
 */
public void addOutputArgument(String argumentFieldName) {
  getOutputArguments().addElement(new DatabaseField(argumentFieldName));
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * PUBLIC:
 * Define the argument to the interaction for the index argument.
 * This must be called in the order of the arguments in the input indexed record.
 * The argumentValue is the value of the argument to be used to pass to the interaction.
 */
public void addArgumentValue(Object argumentValue) {
  getArguments().addElement(argumentValue);
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * PUBLIC:
 * Define the field/argument name to be substitute for the index output argument.
 * This must be called in the order of the output arguments in the result indexed record.
 * The argumentFieldName is the field or argument name in the descriptor that maps to the indexed value.
 */
public void addOutputArgument(String argumentFieldName) {
  getOutputArguments().addElement(new DatabaseField(argumentFieldName));
}
origin: org.eclipse.persistence/org.eclipse.persistence.core

/**
 * PUBLIC:
 * Define the argument to the interaction for the index argument.
 * This must be called in the order of the arguments in the input indexed record.
 * The argumentFieldName is the field or argument name in the descriptor that maps to the indexed value.
 */
public void addArgument(String argumentFieldName) {
  getArguments().addElement(new DatabaseField(argumentFieldName));
}
origin: com.haulmont.thirdparty/eclipselink

/**
 * PUBLIC:
 * Define the argument to the interaction for the index argument.
 * This must be called in the order of the arguments in the input indexed record.
 * The argumentFieldName is the field or argument name in the descriptor that maps to the indexed value.
 */
public void addArgument(String argumentFieldName) {
  getArguments().addElement(new DatabaseField(argumentFieldName));
}
origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

/**
 * PUBLIC:
 * Define the argument to the interaction for the index argument.
 * This must be called in the order of the arguments in the input indexed record.
 * The argumentFieldName is the field or argument name in the descriptor that maps to the indexed value.
 */
public void addArgument(String argumentFieldName) {
  getArguments().addElement(new DatabaseField(argumentFieldName));
}
org.eclipse.persistence.eis.interactionsIndexedInteraction

Javadoc

Defines the specification for a call to a JCA interaction that uses indexed records. Builds the input and output records from the arguments.

Most used methods

  • createRecordElement
  • getArguments
    The arguments are the values in order of occurance in the record.
  • getInputRecordName
  • getOutputArgumentNames
  • getOutputArguments
    The output arguments in order of occurance in the record.
  • getOutputResultPath
  • getParameters

Popular in Java

  • Making http requests using okhttp
  • requestLocationUpdates (LocationManager)
  • findViewById (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • JFileChooser (javax.swing)
  • Top PhpStorm plugins
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