com.simba.dsi.dataengine.utilities
Class ExecutionResults

java.lang.Object
  extended by com.simba.dsi.dataengine.utilities.ExecutionResults
All Implemented Interfaces:
IResults

public class ExecutionResults
extends java.lang.Object
implements IResults

An ExecutionResults object is used to hold all of the results generated by executing a SQL statement. A SQL statement may be a batch statement, which produces multiple results, such as a group of queries separated by semi-colons like "SELECT ... ; SELECT ...". An ExecutionResults holds an ExecutionResult for the result of executing each of the component statements of a batched SQL statement.


Field Summary
protected  java.util.ArrayList<ExecutionResult> m_resultsList
          The list of results: an ArrayList of ExecutionResult objects.
 
Constructor Summary
ExecutionResults()
          Constructor.
 
Method Summary
 void addErrorResult(IErrorResult errorResult, boolean isResultSet)
          Adds an IErrorResult to the list of results.
 void addExecutionResult(ExecutionResult execResult)
          Adds an ExecutionResult to the list of results.
 void addResultSet(IResultSet resultSet)
          Adds an IResultSet to the list of results.
 void addRowCountResult(IRowCountResult rowCountResult)
          Adds an IRowCountResult to the list of results.
 java.util.Iterator<ExecutionResult> getResultItr()
          Gets an iterator of all of the ExecutionResults.
 java.util.ArrayList<ExecutionResult> getResults()
          Gets the list of all results.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_resultsList

protected java.util.ArrayList<ExecutionResult> m_resultsList
The list of results: an ArrayList of ExecutionResult objects.

Constructor Detail

ExecutionResults

public ExecutionResults()
Constructor.

Initializes the ExecutionResults to hold an empty list of results.

Method Detail

addErrorResult

public void addErrorResult(IErrorResult errorResult,
                           boolean isResultSet)
Adds an IErrorResult to the list of results.

Parameters:
errorResult - Error result to add to the list.
isResultSet - The result should have been a ResultSet

addResultSet

public void addResultSet(IResultSet resultSet)
Adds an IResultSet to the list of results.

Parameters:
resultSet - Result set to add to the list.

addRowCountResult

public void addRowCountResult(IRowCountResult rowCountResult)
Adds an IRowCountResult to the list of results.

Parameters:
rowCountResult - Row count result to add to the list.

addExecutionResult

public void addExecutionResult(ExecutionResult execResult)
Adds an ExecutionResult to the list of results.

Parameters:
execResult - The ExecutionResult to add to the list.

getResults

public java.util.ArrayList<ExecutionResult> getResults()
Gets the list of all results. The list is ordered in the order that the results were added. The results are held in ExecutionResult objects.

Returns:
An ArrayList of ExecutionResult objects.

getResultItr

public java.util.Iterator<ExecutionResult> getResultItr()
Description copied from interface: IResults
Gets an iterator of all of the ExecutionResults. The list is ordered in the order that the results were added. The results are held in ExecutionResult objects. The JDBC API can call this method more than once per execution.

Specified by:
getResultItr in interface IResults
Returns:
An Iterator of ExecutionResult objects.


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