org.axiondb.jdbc
Class AxionStatement

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

public class AxionStatement
extends BaseAxionStatement
implements Statement

A Statement implementation.

Version:
$Revision: 1.29 $ $Date: 2004/09/09 23:47:43 $

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 AxionStatement(AxionConnection conn)
           
 
Method Summary
 void addBatch(String sql)
           
protected  void addBatchCommand(AxionCommand cmd)
           
 void cancel()
           
 void clearBatch()
           
protected  void clearBatchCommands()
           
 void clearWarnings()
           
protected  boolean execute(AxionCommand cmd)
           
 boolean execute(String sql)
           
 boolean execute(String sql, int autoGeneratedKeys)
          Currently unsupported when autoGeneratedKeys is not Statement.NO_GENERATED_KEYS.
 boolean execute(String sql, int[] columnIndexes)
          Currently unsupported.
 boolean execute(String sql, String[] columnNames)
          Currently unsupported.
 int[] executeBatch()
           
protected  ResultSet executeQuery(AxionCommand cmd)
           
 ResultSet executeQuery(String sql)
           
protected  int executeUpdate(AxionCommand cmd)
           
 int executeUpdate(String sql)
           
 int executeUpdate(String sql, int autoGeneratedKeys)
          Currently unsupported when auotGeneratedKeys is not Statement.NO_GENERATED_KEYS.
 int executeUpdate(String arg0, int[] arg1)
          Currently unsupported.
 int executeUpdate(String arg0, String[] arg1)
          Currently unsupported.
protected  int getBatchCommandCount()
           
protected  Iterator getBatchCommands()
           
 int getFetchDirection()
           
 int getFetchSize()
           
 ResultSet getGeneratedKeys()
           
 int getMaxFieldSize()
           
 boolean getMoreResults()
           
 boolean getMoreResults(int current)
          Currently unsupported when current is not Statement.CLOSE_CURRENT_RESULT or Statement.CLOSE_ALL_RESULTS.
 int getQueryTimeout()
           
 ResultSet getResultSet()
           
 int getResultSetConcurrency()
           
 int getResultSetHoldability()
          Currently unsupported.
 int getResultSetType()
           
 int getUpdateCount()
           
 SQLWarning getWarnings()
           
 void setCursorName(String name)
           
 void setEscapeProcessing(boolean enable)
           
 void setFetchDirection(int direction)
           
 void setFetchSize(int rows)
           
 void setMaxFieldSize(int size)
           
 void setQueryTimeout(int seconds)
           
 
Methods inherited from class org.axiondb.jdbc.BaseAxionStatement
assertOpen, clearConnection, clearCurrentResult, clearCurrentUpdateCount, close, closeCurrentResultSet, getAxionConnection, getConnection, getCurrentResultSet, getCurrentUpdateCount, getDatabase, getMaxRows, hasCurrentResultSet, parseCommand, setCurrentResult, setCurrentResultSet, setCurrentUpdateCount, setMaxRows
 
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
close, getConnection, getMaxRows, setMaxRows
 

Constructor Detail

AxionStatement

protected AxionStatement(AxionConnection conn)
                  throws SQLException
Method Detail

addBatch

public void addBatch(String sql)
              throws SQLException
Specified by:
addBatch in interface Statement
Throws:
SQLException

cancel

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

clearBatch

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

clearWarnings

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

executeBatch

public int[] executeBatch()
                   throws SQLException
Specified by:
executeBatch in interface Statement
Throws:
SQLException

execute

public boolean execute(String sql)
                throws SQLException
Specified by:
execute in interface Statement
Throws:
SQLException

executeQuery

public ResultSet executeQuery(String sql)
                       throws SQLException
Specified by:
executeQuery in interface Statement
Throws:
SQLException

executeUpdate

public int executeUpdate(String sql)
                  throws SQLException
Specified by:
executeUpdate in interface Statement
Throws:
SQLException

getFetchDirection

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

getFetchSize

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

getMaxFieldSize

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

getMoreResults

public boolean getMoreResults()
                       throws SQLException
Specified by:
getMoreResults in interface Statement
Throws:
SQLException

getQueryTimeout

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

getResultSet

public ResultSet getResultSet()
                       throws SQLException
Specified by:
getResultSet in interface Statement
Throws:
SQLException

getResultSetConcurrency

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

getResultSetType

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

getUpdateCount

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

getWarnings

public SQLWarning getWarnings()
                       throws SQLException
Specified by:
getWarnings in interface Statement
Throws:
SQLException

setCursorName

public void setCursorName(String name)
                   throws SQLException
Specified by:
setCursorName in interface Statement
Throws:
SQLException

setEscapeProcessing

public void setEscapeProcessing(boolean enable)
                         throws SQLException
Specified by:
setEscapeProcessing in interface Statement
Throws:
SQLException

setFetchDirection

public void setFetchDirection(int direction)
                       throws SQLException
Specified by:
setFetchDirection in interface Statement
Throws:
SQLException

setFetchSize

public void setFetchSize(int rows)
                  throws SQLException
Specified by:
setFetchSize in interface Statement
Throws:
SQLException

setMaxFieldSize

public void setMaxFieldSize(int size)
                     throws SQLException
Specified by:
setMaxFieldSize in interface Statement
Throws:
SQLException

setQueryTimeout

public void setQueryTimeout(int seconds)
                     throws SQLException
Specified by:
setQueryTimeout in interface Statement
Throws:
SQLException

getGeneratedKeys

public ResultSet getGeneratedKeys()
                           throws SQLException
Specified by:
getGeneratedKeys in interface Statement
Throws:
SQLException

execute

public boolean execute(String sql,
                       int autoGeneratedKeys)
                throws SQLException
Currently unsupported when autoGeneratedKeys is not Statement.NO_GENERATED_KEYS.

Specified by:
execute in interface Statement
Throws:
SQLException

execute

public boolean execute(String sql,
                       int[] columnIndexes)
                throws SQLException
Currently unsupported.

Specified by:
execute in interface Statement
Throws:
SQLException

execute

public boolean execute(String sql,
                       String[] columnNames)
                throws SQLException
Currently unsupported.

Specified by:
execute in interface Statement
Throws:
SQLException

executeUpdate

public int executeUpdate(String sql,
                         int autoGeneratedKeys)
                  throws SQLException
Currently unsupported when auotGeneratedKeys is not Statement.NO_GENERATED_KEYS.

Specified by:
executeUpdate in interface Statement
Throws:
SQLException

executeUpdate

public int executeUpdate(String arg0,
                         int[] arg1)
                  throws SQLException
Currently unsupported.

Specified by:
executeUpdate in interface Statement
Throws:
SQLException

executeUpdate

public int executeUpdate(String arg0,
                         String[] arg1)
                  throws SQLException
Currently unsupported.

Specified by:
executeUpdate in interface Statement
Throws:
SQLException

getMoreResults

public boolean getMoreResults(int current)
                       throws SQLException
Currently unsupported when current is not Statement.CLOSE_CURRENT_RESULT or Statement.CLOSE_ALL_RESULTS.

Specified by:
getMoreResults in interface Statement
Throws:
SQLException

getResultSetHoldability

public int getResultSetHoldability()
                            throws SQLException
Currently unsupported.

Specified by:
getResultSetHoldability in interface Statement
Throws:
SQLException

addBatchCommand

protected void addBatchCommand(AxionCommand cmd)

clearBatchCommands

protected void clearBatchCommands()

getBatchCommands

protected Iterator getBatchCommands()

getBatchCommandCount

protected int getBatchCommandCount()

execute

protected boolean execute(AxionCommand cmd)
                   throws SQLException
Throws:
SQLException

executeQuery

protected ResultSet executeQuery(AxionCommand cmd)
                          throws SQLException
Throws:
SQLException

executeUpdate

protected int executeUpdate(AxionCommand cmd)
                     throws SQLException
Throws:
SQLException