Package org.apache.derby.impl.tools.ij
Class ijMultipleResultSetResult
- java.lang.Object
-
- org.apache.derby.impl.tools.ij.ijResultImpl
-
- 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
Fields Modifier and Type Field Description private int[]columnWidthsprivate int[]displayColumnsprivate java.util.ArrayList<java.sql.ResultSet>resultSets
-
Constructor Summary
Constructors Constructor Description ijMultipleResultSetResult(java.util.List<java.sql.ResultSet> 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddResultSet(java.sql.ResultSet rs)voidclearSQLWarnings()Clears the warnings in all resultsetsvoidcloseStatement()int[]getColumnDisplayList()int[]getColumnWidthList()java.util.List<java.sql.ResultSet>getMultipleResultSets()java.sql.SQLWarninggetSQLWarnings()booleanisMultipleResultSetResult()-
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
-
-
-
-
Constructor Detail
-
ijMultipleResultSetResult
public ijMultipleResultSetResult(java.util.List<java.sql.ResultSet> resultSets, int[] display, int[] widths) throws java.sql.SQLExceptionCreate a ijResultImpl that represents multiple result sets, only displaying a subset of the columns, using specified column widths.- Parameters:
resultSets- The result sets to displaydisplay- 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:
isMultipleResultSetResultin interfaceijResult- Overrides:
isMultipleResultSetResultin classijResultImpl
-
getMultipleResultSets
public java.util.List<java.sql.ResultSet> getMultipleResultSets()
- Specified by:
getMultipleResultSetsin interfaceijResult- Overrides:
getMultipleResultSetsin classijResultImpl
-
closeStatement
public void closeStatement() throws java.sql.SQLException- Specified by:
closeStatementin interfaceijResult- Overrides:
closeStatementin classijResultImpl- Throws:
java.sql.SQLException
-
getColumnDisplayList
public int[] getColumnDisplayList()
- Specified by:
getColumnDisplayListin interfaceijResult- Overrides:
getColumnDisplayListin classijResultImpl
-
getColumnWidthList
public int[] getColumnWidthList()
- Specified by:
getColumnWidthListin interfaceijResult- Overrides:
getColumnWidthListin classijResultImpl
-
getSQLWarnings
public java.sql.SQLWarning getSQLWarnings() throws java.sql.SQLException- Specified by:
getSQLWarningsin interfaceijResult- Specified by:
getSQLWarningsin classijResultImpl- Returns:
- the warnings from all resultsets as one SQLWarning chain
- Throws:
java.sql.SQLException
-
clearSQLWarnings
public void clearSQLWarnings() throws java.sql.SQLExceptionClears the warnings in all resultsets- Specified by:
clearSQLWarningsin interfaceijResult- Specified by:
clearSQLWarningsin classijResultImpl- Throws:
java.sql.SQLException
-
-