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) boolean
closeWhenDone
(package private) java.sql.Statement
statement
-
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 void
clearSQLWarnings()
void
closeStatement()
java.sql.ResultSet
getResultSet()
java.sql.SQLWarning
getSQLWarnings()
java.sql.Statement
getStatement()
int
getUpdateCount()
boolean
isResultSet()
boolean
isStatement()
boolean
isUpdateCount()
-
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:
isStatement
in interfaceijResult
- Overrides:
isStatement
in classijResultImpl
-
isResultSet
public boolean isResultSet() throws java.sql.SQLException
- Specified by:
isResultSet
in interfaceijResult
- Overrides:
isResultSet
in classijResultImpl
- Throws:
java.sql.SQLException
-
isUpdateCount
public boolean isUpdateCount() throws java.sql.SQLException
- Specified by:
isUpdateCount
in interfaceijResult
- Overrides:
isUpdateCount
in classijResultImpl
- Throws:
java.sql.SQLException
-
getStatement
public java.sql.Statement getStatement()
- Specified by:
getStatement
in interfaceijResult
- Overrides:
getStatement
in classijResultImpl
-
getUpdateCount
public int getUpdateCount() throws java.sql.SQLException
- Specified by:
getUpdateCount
in interfaceijResult
- Overrides:
getUpdateCount
in classijResultImpl
- Throws:
java.sql.SQLException
-
getResultSet
public java.sql.ResultSet getResultSet() throws java.sql.SQLException
- Specified by:
getResultSet
in interfaceijResult
- Overrides:
getResultSet
in classijResultImpl
- Throws:
java.sql.SQLException
-
closeStatement
public void closeStatement() throws java.sql.SQLException
- Specified by:
closeStatement
in interfaceijResult
- Overrides:
closeStatement
in classijResultImpl
- Throws:
java.sql.SQLException
-
getSQLWarnings
public java.sql.SQLWarning getSQLWarnings() throws java.sql.SQLException
- Specified by:
getSQLWarnings
in interfaceijResult
- Specified by:
getSQLWarnings
in classijResultImpl
- Throws:
java.sql.SQLException
-
clearSQLWarnings
public void clearSQLWarnings() throws java.sql.SQLException
- Specified by:
clearSQLWarnings
in interfaceijResult
- Specified by:
clearSQLWarnings
in classijResultImpl
- Throws:
java.sql.SQLException
-
-