org.axiondb.jdbc
Class AxionPreparedStatement

java.lang.Object
  extended byorg.axiondb.jdbc.BaseAxionStatement
      extended byorg.axiondb.jdbc.AxionStatement
          extended byorg.axiondb.jdbc.AxionPreparedStatement
All Implemented Interfaces:
PreparedStatement, Statement

public class AxionPreparedStatement
extends AxionStatement
implements Statement, PreparedStatement

A PreparedStatement 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 AxionPreparedStatement(AxionConnection conn, String sql)
           
 
Method Summary
 void addBatch()
           
 void addBatch(String sql)
           
 void clearParameters()
           
 void close()
           
 boolean execute()
           
 boolean execute(String sql)
           
 ResultSet executeQuery()
           
 ResultSet executeQuery(String sql)
           
 int executeUpdate()
           
 int executeUpdate(String sql)
           
 ResultSetMetaData getMetaData()
           
 ParameterMetaData getParameterMetaData()
          Currently unsupported.
 void setArray(int i, Array arr)
           
 void setAsciiStream(int n, InputStream in, int length)
           
 void setBigDecimal(int i, BigDecimal big)
           
 void setBinaryStream(int n, InputStream in, int length)
           
 void setBlob(int i, Blob blob)
           
 void setBoolean(int i, boolean bool)
           
 void setByte(int i, byte b)
           
 void setBytes(int i, byte[] bytes)
           
 void setCharacterStream(int n, Reader reader, int length)
           
 void setClob(int i, Clob clob)
           
 void setDate(int i, Date date)
           
 void setDate(int i, Date date, Calendar cal)
           
 void setDouble(int i, double d)
           
 void setEscapeProcessing(boolean enable)
           
 void setFloat(int i, float f)
           
 void setInt(int i, int value)
           
 void setLong(int i, long l)
           
 void setNull(int i, int sqlType)
           
 void setNull(int i, int sqlType, String typeName)
           
 void setObject(int i, Object o)
           
 void setObject(int i, Object o, int targetSqlType)
           
 void setObject(int i, Object o, int targetSqlType, int scale)
           
 void setRef(int i, Ref ref)
           
 void setShort(int i, short s)
           
 void setString(int i, String str)
           
 void setTime(int i, Time time)
           
 void setTime(int i, Time time, Calendar cal)
           
 void setTimestamp(int i, Timestamp timestamp)
           
 void setTimestamp(int i, Timestamp timestamp, Calendar cal)
           
 void setUnicodeStream(int n, InputStream in, int length)
          Deprecated. See PreparedStatement.setUnicodeStream(int, java.io.InputStream, int)
 void setURL(int i, URL url)
           
 
Methods inherited from class org.axiondb.jdbc.AxionStatement
addBatchCommand, cancel, clearBatch, clearBatchCommands, clearWarnings, execute, execute, execute, execute, executeBatch, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getBatchCommandCount, getBatchCommands, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, setCursorName, setFetchDirection, setFetchSize, setMaxFieldSize, setQueryTimeout
 
Methods inherited from class org.axiondb.jdbc.BaseAxionStatement
assertOpen, clearConnection, clearCurrentResult, clearCurrentUpdateCount, 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
cancel, clearBatch, clearWarnings, execute, execute, execute, executeBatch, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, setCursorName, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setQueryTimeout
 

Constructor Detail

AxionPreparedStatement

protected AxionPreparedStatement(AxionConnection conn,
                                 String sql)
                          throws SQLException
Method Detail

close

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

execute

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

executeQuery

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

executeUpdate

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

addBatch

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

addBatch

public void addBatch()
              throws SQLException
Specified by:
addBatch in interface PreparedStatement
Throws:
SQLException

setEscapeProcessing

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

clearParameters

public void clearParameters()
                     throws SQLException
Specified by:
clearParameters in interface PreparedStatement
Throws:
SQLException

execute

public boolean execute()
                throws SQLException
Specified by:
execute in interface PreparedStatement
Throws:
SQLException

executeQuery

public ResultSet executeQuery()
                       throws SQLException
Specified by:
executeQuery in interface PreparedStatement
Throws:
SQLException

executeUpdate

public int executeUpdate()
                  throws SQLException
Specified by:
executeUpdate in interface PreparedStatement
Throws:
SQLException

getMetaData

public ResultSetMetaData getMetaData()
                              throws SQLException
Specified by:
getMetaData in interface PreparedStatement
Throws:
SQLException

setArray

public void setArray(int i,
                     Array arr)
              throws SQLException
Specified by:
setArray in interface PreparedStatement
Throws:
SQLException

setAsciiStream

public void setAsciiStream(int n,
                           InputStream in,
                           int length)
                    throws SQLException
Specified by:
setAsciiStream in interface PreparedStatement
Throws:
SQLException

setBigDecimal

public void setBigDecimal(int i,
                          BigDecimal big)
                   throws SQLException
Specified by:
setBigDecimal in interface PreparedStatement
Throws:
SQLException

setBinaryStream

public void setBinaryStream(int n,
                            InputStream in,
                            int length)
                     throws SQLException
Specified by:
setBinaryStream in interface PreparedStatement
Throws:
SQLException

setBlob

public void setBlob(int i,
                    Blob blob)
             throws SQLException
Specified by:
setBlob in interface PreparedStatement
Throws:
SQLException

setBoolean

public void setBoolean(int i,
                       boolean bool)
                throws SQLException
Specified by:
setBoolean in interface PreparedStatement
Throws:
SQLException

setByte

public void setByte(int i,
                    byte b)
             throws SQLException
Specified by:
setByte in interface PreparedStatement
Throws:
SQLException

setBytes

public void setBytes(int i,
                     byte[] bytes)
              throws SQLException
Specified by:
setBytes in interface PreparedStatement
Throws:
SQLException

setCharacterStream

public void setCharacterStream(int n,
                               Reader reader,
                               int length)
                        throws SQLException
Specified by:
setCharacterStream in interface PreparedStatement
Throws:
SQLException

setClob

public void setClob(int i,
                    Clob clob)
             throws SQLException
Specified by:
setClob in interface PreparedStatement
Throws:
SQLException

setDate

public void setDate(int i,
                    Date date)
             throws SQLException
Specified by:
setDate in interface PreparedStatement
Throws:
SQLException

setDate

public void setDate(int i,
                    Date date,
                    Calendar cal)
             throws SQLException
Specified by:
setDate in interface PreparedStatement
Throws:
SQLException

setDouble

public void setDouble(int i,
                      double d)
               throws SQLException
Specified by:
setDouble in interface PreparedStatement
Throws:
SQLException

setFloat

public void setFloat(int i,
                     float f)
              throws SQLException
Specified by:
setFloat in interface PreparedStatement
Throws:
SQLException

setInt

public void setInt(int i,
                   int value)
            throws SQLException
Specified by:
setInt in interface PreparedStatement
Throws:
SQLException

setLong

public void setLong(int i,
                    long l)
             throws SQLException
Specified by:
setLong in interface PreparedStatement
Throws:
SQLException

setNull

public void setNull(int i,
                    int sqlType)
             throws SQLException
Specified by:
setNull in interface PreparedStatement
Throws:
SQLException

setNull

public void setNull(int i,
                    int sqlType,
                    String typeName)
             throws SQLException
Specified by:
setNull in interface PreparedStatement
Throws:
SQLException

setObject

public void setObject(int i,
                      Object o)
               throws SQLException
Specified by:
setObject in interface PreparedStatement
Throws:
SQLException

setObject

public void setObject(int i,
                      Object o,
                      int targetSqlType)
               throws SQLException
Specified by:
setObject in interface PreparedStatement
Throws:
SQLException

setObject

public void setObject(int i,
                      Object o,
                      int targetSqlType,
                      int scale)
               throws SQLException
Specified by:
setObject in interface PreparedStatement
Throws:
SQLException

setRef

public void setRef(int i,
                   Ref ref)
            throws SQLException
Specified by:
setRef in interface PreparedStatement
Throws:
SQLException

setShort

public void setShort(int i,
                     short s)
              throws SQLException
Specified by:
setShort in interface PreparedStatement
Throws:
SQLException

setString

public void setString(int i,
                      String str)
               throws SQLException
Specified by:
setString in interface PreparedStatement
Throws:
SQLException

setTime

public void setTime(int i,
                    Time time)
             throws SQLException
Specified by:
setTime in interface PreparedStatement
Throws:
SQLException

setTime

public void setTime(int i,
                    Time time,
                    Calendar cal)
             throws SQLException
Specified by:
setTime in interface PreparedStatement
Throws:
SQLException

setTimestamp

public void setTimestamp(int i,
                         Timestamp timestamp)
                  throws SQLException
Specified by:
setTimestamp in interface PreparedStatement
Throws:
SQLException

setTimestamp

public void setTimestamp(int i,
                         Timestamp timestamp,
                         Calendar cal)
                  throws SQLException
Specified by:
setTimestamp in interface PreparedStatement
Throws:
SQLException

setURL

public void setURL(int i,
                   URL url)
            throws SQLException
Specified by:
setURL in interface PreparedStatement
Throws:
SQLException

setUnicodeStream

public void setUnicodeStream(int n,
                             InputStream in,
                             int length)
                      throws SQLException
Deprecated. See PreparedStatement.setUnicodeStream(int, java.io.InputStream, int)

Specified by:
setUnicodeStream in interface PreparedStatement
Throws:
SQLException

getParameterMetaData

public ParameterMetaData getParameterMetaData()
                                       throws SQLException
Currently unsupported.

Specified by:
getParameterMetaData in interface PreparedStatement
Throws:
SQLException