Top Description Fields Constructors Methods
org.apache.derby.impl.tools.ij

public Class ijMultipleResultSetResult

extends ijResultImpl
Class Inheritance
Imports
java.sql.Connection, .ResultSet, .Statement, .SQLException, .SQLWarning, java.util.List, .ArrayList, org.apache.derby.iapi.tools.ToolUtils

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

Field Summary

Modifier and TypeField and Description
private int[]
private int[]
private ArrayList<ResultSet>

Constructor Summary

AccessConstructor and Description
public
ijMultipleResultSetResult(List<ResultSet>
The result sets to display
resultSets
,
int[]
Which column numbers to display, or null to display all columns.
display
,
int[]
The widths of the columns specified in 'display', or null to display using default column sizes.
widths
)

Create a ijResultImpl that represents multiple result sets, only displaying a subset of the columns, using specified column widths.

Method Summary

Modifier and TypeMethod and Description
public void
public void
public void
public int[]
public int[]
public List<ResultSet>
public SQLWarning

Returns:

the warnings from all resultsets as one SQLWarning chain
getSQLWarnings
()

Implements abstract org.apache.derby.impl.tools.ij.ijResultImpl.getSQLWarnings.

Implements org.apache.derby.impl.tools.ij.ijResult.getSQLWarnings.

public boolean
Inherited from org.apache.derby.impl.tools.ij.ijResultImpl:
getConnectiongetExceptiongetNextRowOfResultSetgetResultSetgetStatementgetUpdateCountgetVectorhasWarningsisConnectionisExceptionisMultiisNextRowOfResultSetisResultSetisStatementisUpdateCountisVectortoString

Field Detail

columnWidthsback to summary
private int[] columnWidths
displayColumnsback to summary
private int[] displayColumns
resultSetsback to summary
private ArrayList<ResultSet> resultSets

Constructor Detail

ijMultipleResultSetResultback to summary
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:List<ResultSet>

The result sets to display

display:int[]

Which column numbers to display, or null to display all columns.

widths:int[]

The widths of the columns specified in 'display', or null to display using default column sizes.

Method Detail

addResultSetback to summary
public void addResultSet(ResultSet rs)
clearSQLWarningsback to summary
public void clearSQLWarnings() throws SQLException

Implements abstract org.apache.derby.impl.tools.ij.ijResultImpl.clearSQLWarnings.

Implements org.apache.derby.impl.tools.ij.ijResult.clearSQLWarnings.

Clears the warnings in all resultsets

closeStatementback to summary
public void closeStatement() throws SQLException

Overrides org.apache.derby.impl.tools.ij.ijResultImpl.closeStatement.

Implements org.apache.derby.impl.tools.ij.ijResult.closeStatement.

getColumnDisplayListback to summary
public int[] getColumnDisplayList()

Overrides org.apache.derby.impl.tools.ij.ijResultImpl.getColumnDisplayList.

Implements org.apache.derby.impl.tools.ij.ijResult.getColumnDisplayList.

getColumnWidthListback to summary
public int[] getColumnWidthList()

Overrides org.apache.derby.impl.tools.ij.ijResultImpl.getColumnWidthList.

Implements org.apache.derby.impl.tools.ij.ijResult.getColumnWidthList.

getMultipleResultSetsback to summary
public List<ResultSet> getMultipleResultSets()

Overrides org.apache.derby.impl.tools.ij.ijResultImpl.getMultipleResultSets.

Implements org.apache.derby.impl.tools.ij.ijResult.getMultipleResultSets.

getSQLWarningsback to summary
public SQLWarning getSQLWarnings() throws SQLException

Implements abstract org.apache.derby.impl.tools.ij.ijResultImpl.getSQLWarnings.

Implements org.apache.derby.impl.tools.ij.ijResult.getSQLWarnings.

Returns:SQLWarning

the warnings from all resultsets as one SQLWarning chain

isMultipleResultSetResultback to summary
public boolean isMultipleResultSetResult()

Overrides org.apache.derby.impl.tools.ij.ijResultImpl.isMultipleResultSetResult.

Implements org.apache.derby.impl.tools.ij.ijResult.isMultipleResultSetResult.