com.simba.dsi.dataengine.utilities
Class ExecutionContexts

java.lang.Object
  extended by com.simba.dsi.dataengine.utilities.ExecutionContexts

public class ExecutionContexts
extends java.lang.Object

ExecutionContexts is used to package a group of ExecutionContext objects, each corresponding to a single execution of a SQL statement with its own set of parameter values.


Constructor Summary
ExecutionContexts(java.util.ArrayList<ParameterMetadata> metadata, java.util.ArrayList<java.util.ArrayList<ParameterInputValue>> inputData)
          Constructor.
ExecutionContexts(java.util.ArrayList<ParameterMetadata> metadata, java.util.ArrayList<java.util.ArrayList<ParameterInputValue>> inputData, ParameterGeneratedValues generatedParams)
          Constructor.
 
Method Summary
 java.util.Iterator<ExecutionContext> contextIterator()
          Returns an iterator over the ExecutionContext objects.
 ExecutionContextStatus getContextStatus(int paramSet)
          Gets the execution status for the context at the given index.
 int getCount()
          Returns the number of ExecutionContext objects.
 java.util.ArrayList<ParameterMetadata> getMetadata()
          Returns an ArrayList of ParameterMetadata describing all of the parameters in the SQL statement.
 java.util.Iterator<java.util.ArrayList<DataWrapper>> outputIterator()
          Returns an iterator over the ArrayLists of DataWrappers for output parameter values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutionContexts

public ExecutionContexts(java.util.ArrayList<ParameterMetadata> metadata,
                         java.util.ArrayList<java.util.ArrayList<ParameterInputValue>> inputData)
Constructor.

The ordering of parameters in inputData matches the ordering of input and input/output parameters within metadata.

Parameters:
metadata - ArrayList of ParameterMetadata for all parameters.
inputData - ArrayList of ArrayLists of ParameterInputValue for input parameters. If there are no input parameters, this should still be an ArrayList of the correct size, holding multiple empty ArrayLists.

ExecutionContexts

public ExecutionContexts(java.util.ArrayList<ParameterMetadata> metadata,
                         java.util.ArrayList<java.util.ArrayList<ParameterInputValue>> inputData,
                         ParameterGeneratedValues generatedParams)
Constructor.

The ordering of parameters in inputData matches the ordering of input and input/output parameters within metadata.

Parameters:
metadata - ArrayList of ParameterMetadata for all parameters.
inputData - ArrayList of ArrayLists of ParameterInputValue for input parameters. If there are no input parameters, this should still be an ArrayList of the correct size,
generatedParams - ArrayLists of ParameterGeneratedValues for generated parameters. If there are no generated parameters this can be null
Method Detail

contextIterator

public java.util.Iterator<ExecutionContext> contextIterator()
Returns an iterator over the ExecutionContext objects.

Returns:
An Iterator over ExecutionContext objects.

getContextStatus

public ExecutionContextStatus getContextStatus(int paramSet)
Gets the execution status for the context at the given index.

Parameters:
paramSet - Context index.
Returns:
The execution status for the context at the given index.

getCount

public int getCount()
Returns the number of ExecutionContext objects.

Returns:
Number of ExecutionContext objects.

getMetadata

public java.util.ArrayList<ParameterMetadata> getMetadata()
Returns an ArrayList of ParameterMetadata describing all of the parameters in the SQL statement. Note that this metadata may not match metadata provided by a call to IQueryExecutor.getMetadataForParameters(), as ODBC users can change parameter information.

Returns:
An ArrayList of ParameterMetadata.

outputIterator

public java.util.Iterator<java.util.ArrayList<DataWrapper>> outputIterator()
Returns an iterator over the ArrayLists of DataWrappers for output parameter values.

Returns:
An iterator over the ArrayLists of DataWrappers for output parameter values.


Copyright © 2006-2014 Simba Technologies Incorporated. All Rights Reserved.