Package org.apache.derby.impl.tools.ij
Class ijStatementResult
- java.lang.Object
-
- org.apache.derby.impl.tools.ij.ijResultImpl
-
- org.apache.derby.impl.tools.ij.ijStatementResult
-
- All Implemented Interfaces:
ijResult
class ijStatementResult extends ijResultImpl
This is an impl for a statement execution; the result is either an update count or result set depending on what was executed.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) booleancloseWhenDone(package private) java.sql.Statementstatement
-
Constructor Summary
Constructors Constructor Description ijStatementResult(java.sql.Statement s, boolean c)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearSQLWarnings()voidcloseStatement()java.sql.ResultSetgetResultSet()java.sql.SQLWarninggetSQLWarnings()java.sql.StatementgetStatement()intgetUpdateCount()booleanisResultSet()booleanisStatement()booleanisUpdateCount()-
Methods inherited from class org.apache.derby.impl.tools.ij.ijResultImpl
getColumnDisplayList, getColumnWidthList, getConnection, getException, getMultipleResultSets, getNextRowOfResultSet, getVector, hasWarnings, isConnection, isException, isMulti, isMultipleResultSetResult, isNextRowOfResultSet, isVector, toString
-
-
-
-
Method Detail
-
isStatement
public boolean isStatement()
- Specified by:
isStatementin interfaceijResult- Overrides:
isStatementin classijResultImpl
-
isResultSet
public boolean isResultSet() throws java.sql.SQLException- Specified by:
isResultSetin interfaceijResult- Overrides:
isResultSetin classijResultImpl- Throws:
java.sql.SQLException
-
isUpdateCount
public boolean isUpdateCount() throws java.sql.SQLException- Specified by:
isUpdateCountin interfaceijResult- Overrides:
isUpdateCountin classijResultImpl- Throws:
java.sql.SQLException
-
getStatement
public java.sql.Statement getStatement()
- Specified by:
getStatementin interfaceijResult- Overrides:
getStatementin classijResultImpl
-
getUpdateCount
public int getUpdateCount() throws java.sql.SQLException- Specified by:
getUpdateCountin interfaceijResult- Overrides:
getUpdateCountin 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
-
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
-
-