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

public Class ijResultSetResult

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

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

Field Summary

Modifier and TypeField and Description
private int[]
private int[]
private ResultSet
private Statement

Constructor Summary

AccessConstructor and Description
public
ijResultSetResult(ResultSet r)

Create a ijResultImpl that represents a result set.

public
ijResultSetResult(ResultSet
The result set to display
r
,
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 a result set, only displaying a subset of the columns, using specified column widths.

Method Summary

Modifier and TypeMethod and Description
public void
public void
public int[]
public int[]
public ResultSet
public SQLWarning
public boolean
Inherited from org.apache.derby.impl.tools.ij.ijResultImpl:
getConnectiongetExceptiongetMultipleResultSetsgetNextRowOfResultSetgetStatementgetUpdateCountgetVectorhasWarningsisConnectionisExceptionisMultiisMultipleResultSetResultisNextRowOfResultSetisStatementisUpdateCountisVectortoString

Field Detail

columnWidthsback to summary
private int[] columnWidths
displayColumnsback to summary
private int[] displayColumns
resultSetback to summary
private ResultSet resultSet
statementback to summary
private Statement statement

Constructor Detail

ijResultSetResultback to summary
public ijResultSetResult(ResultSet r) throws SQLException

Create a ijResultImpl that represents a result set.

ijResultSetResultback to summary
public ijResultSetResult(ResultSet r, int[] display, int[] widths) throws SQLException

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

Parameters
r:ResultSet

The result set 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

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.

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.

getResultSetback to summary
public ResultSet getResultSet() throws SQLException

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

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

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.

isResultSetback to summary
public boolean isResultSet() throws SQLException

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

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