org.axiondb.jdbc
Class BaseAxionStatement
java.lang.Object
org.axiondb.jdbc.BaseAxionStatement
- All Implemented Interfaces:
- java.sql.Statement, java.sql.Wrapper
- Direct Known Subclasses:
- AxionStatement
public abstract class BaseAxionStatement
- extends java.lang.Object
- implements java.sql.Statement
Abstract base Statement
implementation.
- Version:
- $Revision: 1.10 $ $Date: 2005/12/20 18:32:27 $
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 |
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, isClosed, isPoolable, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setPoolable, setQueryTimeout |
Methods inherited from interface java.sql.Wrapper |
isWrapperFor, unwrap |
_batchContext
protected java.util.ArrayList _batchContext
_warning
protected java.sql.SQLWarning _warning
BaseAxionStatement
protected BaseAxionStatement(AxionConnection conn)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
close
public void close()
throws java.sql.SQLException
- Specified by:
close
in interface java.sql.Statement
- Throws:
java.sql.SQLException
getConnection
public java.sql.Connection getConnection()
throws java.sql.SQLException
- Specified by:
getConnection
in interface java.sql.Statement
- Throws:
java.sql.SQLException
getMaxRows
public int getMaxRows()
throws java.sql.SQLException
- Specified by:
getMaxRows
in interface java.sql.Statement
- Throws:
java.sql.SQLException
setMaxRows
public void setMaxRows(int max)
throws java.sql.SQLException
- Specified by:
setMaxRows
in interface java.sql.Statement
- Throws:
java.sql.SQLException
assertOpen
protected final void assertOpen()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
clearConnection
protected final void clearConnection()
clearCurrentResult
protected void clearCurrentResult()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
clearCurrentUpdateCount
protected int clearCurrentUpdateCount()
closeCurrentResultSet
protected void closeCurrentResultSet()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getAxionConnection
protected final AxionConnection getAxionConnection()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getCurrentResultSet
protected final AxionResultSet getCurrentResultSet()
getCurrentUpdateCount
protected final int getCurrentUpdateCount()
getDatabase
protected final Database getDatabase()
throws AxionException
- Throws:
AxionException
hasCurrentResultSet
protected final boolean hasCurrentResultSet()
parseCommand
public AxionCommand parseCommand(java.lang.String sql)
throws java.sql.SQLException
- Throws:
java.sql.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()
setCurrentUpdateCount
protected final void setCurrentUpdateCount(int count)
addToBatchContext
protected final void addToBatchContext(java.lang.Object obj)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
clearBatchContext
protected final void clearBatchContext()
getBatchContext
protected final java.util.Iterator getBatchContext()
getBatchCount
protected final int getBatchCount()