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

java.lang.Object
  extended byorg.apache.derby.impl.tools.ij.ijResultImpl
      extended byorg.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.

Author:
ames

Field Summary
(package private)  boolean closeWhenDone
           
(package private)  java.sql.Statement statement
           
 
Constructor Summary
(package private) ijStatementResult(java.sql.Statement s, boolean c)
           
 
Method Summary
 void clearSQLWarnings()
           
 void closeStatement()
           
 java.sql.Connection getConnection()
           
 java.sql.SQLException getException()
           
 java.sql.ResultSet getNextRowOfResultSet()
           
 java.sql.ResultSet getResultSet()
           
 java.sql.SQLWarning getSQLWarnings()
           
 java.sql.Statement getStatement()
           
 int getUpdateCount()
           
 java.util.Vector getVector()
           
 boolean hasWarnings()
           
 boolean isConnection()
           
 boolean isException()
           
 boolean isMulti()
           
 boolean isNextRowOfResultSet()
           
 boolean isResultSet()
           
 boolean isStatement()
           
 boolean isUpdateCount()
           
 boolean isVector()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

statement

java.sql.Statement statement

closeWhenDone

boolean closeWhenDone
Constructor Detail

ijStatementResult

ijStatementResult(java.sql.Statement s,
                  boolean c)
Method Detail

isStatement

public boolean isStatement()
Specified by:
isStatement in interface ijResult
Overrides:
isStatement in class ijResultImpl

isResultSet

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

isUpdateCount

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

getStatement

public java.sql.Statement getStatement()
Specified by:
getStatement in interface ijResult
Overrides:
getStatement in class ijResultImpl

getUpdateCount

public int getUpdateCount()
                   throws java.sql.SQLException
Specified by:
getUpdateCount in interface ijResult
Overrides:
getUpdateCount 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

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

isConnection

public boolean isConnection()
Specified by:
isConnection in interface ijResult

isNextRowOfResultSet

public boolean isNextRowOfResultSet()
Specified by:
isNextRowOfResultSet in interface ijResult

isVector

public boolean isVector()
Specified by:
isVector in interface ijResult

isMulti

public boolean isMulti()
Specified by:
isMulti in interface ijResult

isException

public boolean isException()
Specified by:
isException in interface ijResult

hasWarnings

public boolean hasWarnings()
                    throws java.sql.SQLException
Specified by:
hasWarnings in interface ijResult
Throws:
java.sql.SQLException

getConnection

public java.sql.Connection getConnection()
Specified by:
getConnection in interface ijResult

getNextRowOfResultSet

public java.sql.ResultSet getNextRowOfResultSet()
Specified by:
getNextRowOfResultSet in interface ijResult

getVector

public java.util.Vector getVector()
Specified by:
getVector in interface ijResult

getException

public java.sql.SQLException getException()
Specified by:
getException in interface ijResult

toString

public java.lang.String toString()

Built on Mon 2007-06-04 09:58:47+0400, from revision ???

Apache Derby V10.1 Engine Documentation - Copyright © 1997,2005 The Apache Software Foundation or its licensors, as applicable.