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

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

public class ijResultSetResult
extends ijResultImpl

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


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

Field Detail

resultSet

java.sql.ResultSet resultSet

statement

java.sql.Statement statement

displayColumns

int[] displayColumns

columnWidths

int[] columnWidths
Constructor Detail

ijResultSetResult

public ijResultSetResult(java.sql.ResultSet r)
                  throws java.sql.SQLException
Create a ijResultImpl that represents a result set.

Throws:
java.sql.SQLException

ijResultSetResult

public ijResultSetResult(java.sql.ResultSet r,
                         int[] display,
                         int[] widths)
                  throws java.sql.SQLException
Create a ijResultImpl that represents a result set, only displaying a subset of the columns, using specified column widths.

Parameters:
r - The result set 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

isResultSet

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

getResultSet

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

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
Throws:
java.sql.SQLException

clearSQLWarnings

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

Built on Thu 2012-03-29 21:53:33+0000, from revision ???

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