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
This impl is intended to be used with multiple resultsets, where
the execution of the statement is already complete.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int[]
private int[]
-
Constructor Summary
ConstructorsConstructorDescriptionijMultipleResultSetResult
(List<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
Modifier and TypeMethodDescriptionvoid
void
Clears the warnings in all resultsetsvoid
int[]
int[]
boolean
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
-
Field Details
-
resultSets
-
displayColumns
private int[] displayColumns -
columnWidths
private int[] columnWidths
-
-
Constructor Details
-
ijMultipleResultSetResult
public ijMultipleResultSetResult(List<ResultSet> resultSets, int[] display, int[] widths) throws 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 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:
SQLException
-
-
Method Details
-
addResultSet
-
isMultipleResultSetResult
public boolean isMultipleResultSetResult()- Specified by:
isMultipleResultSetResult
in interfaceijResult
- Overrides:
isMultipleResultSetResult
in classijResultImpl
-
getMultipleResultSets
- Specified by:
getMultipleResultSets
in interfaceijResult
- Overrides:
getMultipleResultSets
in classijResultImpl
-
closeStatement
- Specified by:
closeStatement
in interfaceijResult
- Overrides:
closeStatement
in classijResultImpl
- Throws:
SQLException
-
getColumnDisplayList
public int[] getColumnDisplayList()- Specified by:
getColumnDisplayList
in interfaceijResult
- Overrides:
getColumnDisplayList
in classijResultImpl
-
getColumnWidthList
public int[] getColumnWidthList()- Specified by:
getColumnWidthList
in interfaceijResult
- Overrides:
getColumnWidthList
in classijResultImpl
-
getSQLWarnings
- Specified by:
getSQLWarnings
in interfaceijResult
- Specified by:
getSQLWarnings
in classijResultImpl
- Returns:
- the warnings from all resultsets as one SQLWarning chain
- Throws:
SQLException
-
clearSQLWarnings
Clears the warnings in all resultsets- Specified by:
clearSQLWarnings
in interfaceijResult
- Specified by:
clearSQLWarnings
in classijResultImpl
- Throws:
SQLException
-