Package org.apache.derby.impl.tools.ij
Class ijResultSetResult
- java.lang.Object
-
- org.apache.derby.impl.tools.ij.ijResultImpl
-
- 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
Fields Modifier and Type Field Description private int[]columnWidthsprivate int[]displayColumnsprivate java.sql.ResultSetresultSetprivate java.sql.Statementstatement
-
Constructor Summary
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearSQLWarnings()voidcloseStatement()int[]getColumnDisplayList()int[]getColumnWidthList()java.sql.ResultSetgetResultSet()java.sql.SQLWarninggetSQLWarnings()booleanisResultSet()-
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
-
-
-
-
Constructor Detail
-
ijResultSetResult
public ijResultSetResult(java.sql.ResultSet r) throws java.sql.SQLExceptionCreate 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.SQLExceptionCreate a ijResultImpl that represents a result set, only displaying a subset of the columns, using specified column widths.- Parameters:
r- The result set 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
-
isResultSet
public boolean isResultSet() throws java.sql.SQLException- Specified by:
isResultSetin interfaceijResult- Overrides:
isResultSetin classijResultImpl- Throws:
java.sql.SQLException
-
getResultSet
public java.sql.ResultSet getResultSet() throws java.sql.SQLException- Specified by:
getResultSetin interfaceijResult- Overrides:
getResultSetin classijResultImpl- Throws:
java.sql.SQLException
-
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- Throws:
java.sql.SQLException
-
clearSQLWarnings
public void clearSQLWarnings() throws java.sql.SQLException- Specified by:
clearSQLWarningsin interfaceijResult- Specified by:
clearSQLWarningsin classijResultImpl- Throws:
java.sql.SQLException
-
-