org.apache.derby.impl.tools.ij
Class ijMultipleResultSetResult

java.lang.Object
  extended by org.apache.derby.impl.tools.ij.ijResultImpl
      extended by org.apache.derby.impl.tools.ij.ijMultipleResultSetResult
All Implemented Interfaces:
ijResult

public class ijMultipleResultSetResult
extends ijResultImpl

This impl is intended to be used with multiple resultsets, where the execution of the statement is already complete.


Field Summary
(package private)  int[] columnWidths
           
(package private)  int[] displayColumns
           
(package private)  java.util.List resultSets
           
 
Constructor Summary
ijMultipleResultSetResult(java.util.List resultSets)
          Create a ijResultImpl that represents multiple result set.
ijMultipleResultSetResult(java.util.List resultSets, int[] display, int[] widths)
          Create a ijResultImpl that represents multiple result sets, only displaying a subset of the columns, using specified column widths.
 
Method Summary
 void addResultSet(java.sql.ResultSet rs)
           
 void clearSQLWarnings()
          Clears the warnings in all resultsets
 void closeStatement()
           
 int[] getColumnDisplayList()
           
 int[] getColumnWidthList()
           
 java.util.List getMultipleResultSets()
           
 java.sql.SQLWarning getSQLWarnings()
           
 boolean isMultipleResultSetResult()
           
 
Methods inherited from class org.apache.derby.impl.tools.ij.ijResultImpl
getConnection, getException, getNextRowOfResultSet, getResultSet, getStatement, getUpdateCount, getVector, hasWarnings, isConnection, isException, isMulti, isNextRowOfResultSet, isResultSet, isStatement, isUpdateCount, isVector, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

resultSets

java.util.List resultSets

displayColumns

int[] displayColumns

columnWidths

int[] columnWidths
Constructor Detail

ijMultipleResultSetResult

public ijMultipleResultSetResult(java.util.List resultSets)
                          throws java.sql.SQLException
Create a ijResultImpl that represents multiple result set.

Throws:
java.sql.SQLException

ijMultipleResultSetResult

public ijMultipleResultSetResult(java.util.List resultSets,
                                 int[] display,
                                 int[] widths)
                          throws java.sql.SQLException
Create a ijResultImpl that represents multiple result sets, only displaying a subset of the columns, using specified column widths.

Parameters:
resultSets - The result sets to display
display - Which column numbers to display, or null to display all columns.
widths - The widths of the columns specified in 'display', or null to display using default column sizes.
Throws:
java.sql.SQLException
Method Detail

addResultSet

public void addResultSet(java.sql.ResultSet rs)

isMultipleResultSetResult

public boolean isMultipleResultSetResult()
Specified by:
isMultipleResultSetResult in interface ijResult
Overrides:
isMultipleResultSetResult in class ijResultImpl

getMultipleResultSets

public java.util.List getMultipleResultSets()
Specified by:
getMultipleResultSets in interface ijResult
Overrides:
getMultipleResultSets in class ijResultImpl

closeStatement

public void closeStatement()
                    throws java.sql.SQLException
Specified by:
closeStatement in interface ijResult
Overrides:
closeStatement in class ijResultImpl
Throws:
java.sql.SQLException

getColumnDisplayList

public int[] getColumnDisplayList()
Specified by:
getColumnDisplayList in interface ijResult
Overrides:
getColumnDisplayList in class ijResultImpl

getColumnWidthList

public int[] getColumnWidthList()
Specified by:
getColumnWidthList in interface ijResult
Overrides:
getColumnWidthList in class ijResultImpl

getSQLWarnings

public java.sql.SQLWarning getSQLWarnings()
                                   throws java.sql.SQLException
Specified by:
getSQLWarnings in interface ijResult
Specified by:
getSQLWarnings in class ijResultImpl
Returns:
the warnings from all resultsets as one SQLWarning chain
Throws:
java.sql.SQLException

clearSQLWarnings

public void clearSQLWarnings()
                      throws java.sql.SQLException
Clears the warnings in all resultsets

Specified by:
clearSQLWarnings in interface ijResult
Specified by:
clearSQLWarnings in class ijResultImpl
Throws:
java.sql.SQLException

Built on Thu 2011-03-10 11:54:14+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.