org.axiondb.jdbc
Class BaseAxionStatement

java.lang.Object
  extended byorg.axiondb.jdbc.BaseAxionStatement
All Implemented Interfaces:
Statement
Direct Known Subclasses:
AxionStatement

public abstract class BaseAxionStatement
extends Object
implements Statement

Abstract base Statement implementation.

Version:
$Revision: 1.8 $ $Date: 2003/10/22 22:53:18 $

Field Summary
 
Fields inherited from interface java.sql.Statement
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
 
Constructor Summary
protected BaseAxionStatement(AxionConnection conn)
           
 
Method Summary
protected  void assertOpen()
           
protected  void clearConnection()
           
protected  void clearCurrentResult()
           
protected  int clearCurrentUpdateCount()
           
 void close()
           
protected  void closeCurrentResultSet()
           
protected  AxionConnection getAxionConnection()
           
 Connection getConnection()
           
protected  AxionResultSet getCurrentResultSet()
           
protected  int getCurrentUpdateCount()
           
protected  Database getDatabase()
           
 int getMaxRows()
           
protected  boolean hasCurrentResultSet()
           
protected  AxionCommand parseCommand(String sql)
           
protected  void setCurrentResult(boolean isrset, AxionCommand cmd)
           
protected  void setCurrentResultSet(AxionResultSet rset)
           
protected  void setCurrentUpdateCount(int count)
           
 void setMaxRows(int max)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.sql.Statement
addBatch, cancel, clearBatch, clearWarnings, execute, execute, execute, execute, executeBatch, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setQueryTimeout
 

Constructor Detail

BaseAxionStatement

protected BaseAxionStatement(AxionConnection conn)
                      throws SQLException
Method Detail

getConnection

public Connection getConnection()
                         throws SQLException
Specified by:
getConnection in interface Statement
Throws:
SQLException

close

public void close()
           throws SQLException
Specified by:
close in interface Statement
Throws:
SQLException

setMaxRows

public void setMaxRows(int max)
                throws SQLException
Specified by:
setMaxRows in interface Statement
Throws:
SQLException

getMaxRows

public int getMaxRows()
               throws SQLException
Specified by:
getMaxRows in interface Statement
Throws:
SQLException

assertOpen

protected void assertOpen()
                   throws SQLException
Throws:
SQLException

getAxionConnection

protected AxionConnection getAxionConnection()
                                      throws SQLException
Throws:
SQLException

clearConnection

protected void clearConnection()

clearCurrentResult

protected void clearCurrentResult()
                           throws SQLException
Throws:
SQLException

setCurrentResult

protected void setCurrentResult(boolean isrset,
                                AxionCommand cmd)

setCurrentResultSet

protected void setCurrentResultSet(AxionResultSet rset)
Parameters:
rset - the non-null instance to set current ResultSet to
See Also:
clearCurrentResult()

getCurrentResultSet

protected AxionResultSet getCurrentResultSet()

hasCurrentResultSet

protected boolean hasCurrentResultSet()

closeCurrentResultSet

protected void closeCurrentResultSet()
                              throws SQLException
Throws:
SQLException

getCurrentUpdateCount

protected int getCurrentUpdateCount()

setCurrentUpdateCount

protected void setCurrentUpdateCount(int count)

clearCurrentUpdateCount

protected int clearCurrentUpdateCount()

getDatabase

protected Database getDatabase()
                        throws AxionException
Throws:
AxionException

parseCommand

protected AxionCommand parseCommand(String sql)
                             throws SQLException
Throws:
SQLException