org.axiondb.jdbc
Class AxionPreparedStatement
java.lang.Object
org.axiondb.jdbc.BaseAxionStatement
org.axiondb.jdbc.AxionStatement
org.axiondb.jdbc.AxionPreparedStatement
- All Implemented Interfaces:
- java.sql.PreparedStatement, java.sql.Statement, java.sql.Wrapper
public class AxionPreparedStatement
- extends AxionStatement
- implements java.sql.Statement, java.sql.PreparedStatement
A PreparedStatement
implementation.
- Version:
- $Revision: 1.34 $ $Date: 2007/11/13 19:04:01 $
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 |
Method Summary |
void |
addBatch()
|
void |
addBatch(java.lang.String sql)
|
void |
clearParameters()
|
void |
close()
|
boolean |
execute()
|
boolean |
execute(java.lang.String sql)
|
int[] |
executeBatch()
|
java.sql.ResultSet |
executeQuery()
|
java.sql.ResultSet |
executeQuery(java.lang.String sql)
|
int |
executeUpdate()
|
int |
executeUpdate(java.lang.String sql)
|
java.sql.ResultSetMetaData |
getMetaData()
|
java.sql.ParameterMetaData |
getParameterMetaData()
Currently unsupported. |
void |
setArray(int i,
java.sql.Array arr)
|
void |
setAsciiStream(int arg0,
java.io.InputStream arg1)
|
void |
setAsciiStream(int n,
java.io.InputStream in,
int length)
|
void |
setAsciiStream(int arg0,
java.io.InputStream arg1,
long arg2)
|
void |
setBigDecimal(int i,
java.math.BigDecimal big)
|
void |
setBinaryStream(int arg0,
java.io.InputStream arg1)
|
void |
setBinaryStream(int n,
java.io.InputStream in,
int length)
|
void |
setBinaryStream(int arg0,
java.io.InputStream arg1,
long arg2)
|
void |
setBlob(int i,
java.sql.Blob blob)
|
void |
setBlob(int arg0,
java.io.InputStream arg1)
|
void |
setBlob(int arg0,
java.io.InputStream arg1,
long arg2)
|
void |
setBoolean(int i,
boolean bool)
|
void |
setByte(int i,
byte b)
|
void |
setBytes(int i,
byte[] bytes)
|
void |
setCharacterStream(int arg0,
java.io.Reader arg1)
|
void |
setCharacterStream(int n,
java.io.Reader reader,
int length)
|
void |
setCharacterStream(int arg0,
java.io.Reader arg1,
long arg2)
|
void |
setClob(int i,
java.sql.Clob clob)
|
void |
setClob(int arg0,
java.io.Reader arg1)
|
void |
setClob(int arg0,
java.io.Reader arg1,
long arg2)
|
void |
setDate(int i,
java.sql.Date date)
|
void |
setDate(int i,
java.sql.Date date,
java.util.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 |
setNCharacterStream(int arg0,
java.io.Reader arg1)
|
void |
setNCharacterStream(int arg0,
java.io.Reader arg1,
long arg2)
|
void |
setNClob(int arg0,
java.sql.NClob arg1)
|
void |
setNClob(int arg0,
java.io.Reader arg1)
|
void |
setNClob(int arg0,
java.io.Reader arg1,
long arg2)
|
void |
setNString(int arg0,
java.lang.String arg1)
|
void |
setNull(int i,
int sqlType)
|
void |
setNull(int i,
int sqlType,
java.lang.String typeName)
|
void |
setObject(int i,
java.lang.Object o)
|
void |
setObject(int i,
java.lang.Object o,
int targetSqlType)
|
void |
setObject(int i,
java.lang.Object o,
int targetSqlType,
int scale)
|
void |
setRef(int i,
java.sql.Ref ref)
|
void |
setRowId(int arg0,
java.sql.RowId arg1)
|
void |
setShort(int i,
short s)
|
void |
setSQLXML(int arg0,
java.sql.SQLXML arg1)
|
void |
setString(int i,
java.lang.String str)
|
void |
setTime(int i,
java.sql.Time time)
|
void |
setTime(int i,
java.sql.Time time,
java.util.Calendar cal)
|
void |
setTimestamp(int i,
java.sql.Timestamp timestamp)
|
void |
setTimestamp(int i,
java.sql.Timestamp timestamp,
java.util.Calendar cal)
|
void |
setUnicodeStream(int n,
java.io.InputStream in,
int length)
Deprecated. See PreparedStatement.setUnicodeStream(int, java.io.InputStream, int) |
void |
setURL(int i,
java.net.URL url)
|
Methods inherited from class org.axiondb.jdbc.AxionStatement |
addWarning, cancel, clearBatch, clearWarnings, execute, execute, execute, execute, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isPoolable, isWrapperFor, setCursorName, setFetchDirection, setFetchSize, setMaxFieldSize, setPoolable, setQueryTimeout, unwrap |
Methods inherited from class org.axiondb.jdbc.BaseAxionStatement |
addToBatchContext, assertOpen, clearBatchContext, clearConnection, clearCurrentResult, clearCurrentUpdateCount, closeCurrentResultSet, getAxionConnection, getBatchContext, getBatchCount, 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, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isPoolable, setCursorName, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout |
Methods inherited from interface java.sql.Wrapper |
isWrapperFor, unwrap |
AxionPreparedStatement
protected AxionPreparedStatement(AxionConnection conn,
java.lang.String sql)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
AxionPreparedStatement
protected AxionPreparedStatement(AxionConnection conn,
java.lang.String sql,
int resultSetType,
int resultSetConcurrency)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
close
public void close()
throws java.sql.SQLException
- Specified by:
close
in interface java.sql.Statement
- Overrides:
close
in class BaseAxionStatement
- Throws:
java.sql.SQLException
execute
public boolean execute(java.lang.String sql)
throws java.sql.SQLException
- Specified by:
execute
in interface java.sql.Statement
- Overrides:
execute
in class AxionStatement
- Throws:
java.sql.SQLException
executeQuery
public java.sql.ResultSet executeQuery(java.lang.String sql)
throws java.sql.SQLException
- Specified by:
executeQuery
in interface java.sql.Statement
- Overrides:
executeQuery
in class AxionStatement
- Throws:
java.sql.SQLException
executeUpdate
public int executeUpdate(java.lang.String sql)
throws java.sql.SQLException
- Specified by:
executeUpdate
in interface java.sql.Statement
- Overrides:
executeUpdate
in class AxionStatement
- Throws:
java.sql.SQLException
addBatch
public void addBatch(java.lang.String sql)
throws java.sql.SQLException
- Specified by:
addBatch
in interface java.sql.Statement
- Overrides:
addBatch
in class AxionStatement
- Throws:
java.sql.SQLException
addBatch
public void addBatch()
throws java.sql.SQLException
- Specified by:
addBatch
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setEscapeProcessing
public void setEscapeProcessing(boolean enable)
throws java.sql.SQLException
- Specified by:
setEscapeProcessing
in interface java.sql.Statement
- Overrides:
setEscapeProcessing
in class AxionStatement
- Throws:
java.sql.SQLException
clearParameters
public void clearParameters()
throws java.sql.SQLException
- Specified by:
clearParameters
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
executeBatch
public int[] executeBatch()
throws java.sql.SQLException
- Specified by:
executeBatch
in interface java.sql.Statement
- Overrides:
executeBatch
in class AxionStatement
- Throws:
java.sql.SQLException
execute
public boolean execute()
throws java.sql.SQLException
- Specified by:
execute
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
executeQuery
public java.sql.ResultSet executeQuery()
throws java.sql.SQLException
- Specified by:
executeQuery
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
executeUpdate
public int executeUpdate()
throws java.sql.SQLException
- Specified by:
executeUpdate
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
getMetaData
public java.sql.ResultSetMetaData getMetaData()
throws java.sql.SQLException
- Specified by:
getMetaData
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setArray
public void setArray(int i,
java.sql.Array arr)
throws java.sql.SQLException
- Specified by:
setArray
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setAsciiStream
public void setAsciiStream(int n,
java.io.InputStream in,
int length)
throws java.sql.SQLException
- Specified by:
setAsciiStream
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setBigDecimal
public void setBigDecimal(int i,
java.math.BigDecimal big)
throws java.sql.SQLException
- Specified by:
setBigDecimal
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setBinaryStream
public void setBinaryStream(int n,
java.io.InputStream in,
int length)
throws java.sql.SQLException
- Specified by:
setBinaryStream
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setBlob
public void setBlob(int i,
java.sql.Blob blob)
throws java.sql.SQLException
- Specified by:
setBlob
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setBoolean
public void setBoolean(int i,
boolean bool)
throws java.sql.SQLException
- Specified by:
setBoolean
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setByte
public void setByte(int i,
byte b)
throws java.sql.SQLException
- Specified by:
setByte
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setBytes
public void setBytes(int i,
byte[] bytes)
throws java.sql.SQLException
- Specified by:
setBytes
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setCharacterStream
public void setCharacterStream(int n,
java.io.Reader reader,
int length)
throws java.sql.SQLException
- Specified by:
setCharacterStream
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setClob
public void setClob(int i,
java.sql.Clob clob)
throws java.sql.SQLException
- Specified by:
setClob
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setDate
public void setDate(int i,
java.sql.Date date)
throws java.sql.SQLException
- Specified by:
setDate
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setDate
public void setDate(int i,
java.sql.Date date,
java.util.Calendar cal)
throws java.sql.SQLException
- Specified by:
setDate
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setDouble
public void setDouble(int i,
double d)
throws java.sql.SQLException
- Specified by:
setDouble
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setFloat
public void setFloat(int i,
float f)
throws java.sql.SQLException
- Specified by:
setFloat
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setInt
public void setInt(int i,
int value)
throws java.sql.SQLException
- Specified by:
setInt
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setLong
public void setLong(int i,
long l)
throws java.sql.SQLException
- Specified by:
setLong
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setNull
public void setNull(int i,
int sqlType)
throws java.sql.SQLException
- Specified by:
setNull
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setNull
public void setNull(int i,
int sqlType,
java.lang.String typeName)
throws java.sql.SQLException
- Specified by:
setNull
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setObject
public void setObject(int i,
java.lang.Object o)
throws java.sql.SQLException
- Specified by:
setObject
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setObject
public void setObject(int i,
java.lang.Object o,
int targetSqlType)
throws java.sql.SQLException
- Specified by:
setObject
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setObject
public void setObject(int i,
java.lang.Object o,
int targetSqlType,
int scale)
throws java.sql.SQLException
- Specified by:
setObject
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setRef
public void setRef(int i,
java.sql.Ref ref)
throws java.sql.SQLException
- Specified by:
setRef
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setShort
public void setShort(int i,
short s)
throws java.sql.SQLException
- Specified by:
setShort
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setString
public void setString(int i,
java.lang.String str)
throws java.sql.SQLException
- Specified by:
setString
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setTime
public void setTime(int i,
java.sql.Time time)
throws java.sql.SQLException
- Specified by:
setTime
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setTime
public void setTime(int i,
java.sql.Time time,
java.util.Calendar cal)
throws java.sql.SQLException
- Specified by:
setTime
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setTimestamp
public void setTimestamp(int i,
java.sql.Timestamp timestamp)
throws java.sql.SQLException
- Specified by:
setTimestamp
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setTimestamp
public void setTimestamp(int i,
java.sql.Timestamp timestamp,
java.util.Calendar cal)
throws java.sql.SQLException
- Specified by:
setTimestamp
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setURL
public void setURL(int i,
java.net.URL url)
throws java.sql.SQLException
- Specified by:
setURL
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setUnicodeStream
public void setUnicodeStream(int n,
java.io.InputStream in,
int length)
throws java.sql.SQLException
- Deprecated. See
PreparedStatement.setUnicodeStream(int, java.io.InputStream, int)
- Specified by:
setUnicodeStream
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
getParameterMetaData
public java.sql.ParameterMetaData getParameterMetaData()
throws java.sql.SQLException
- Currently unsupported.
- Specified by:
getParameterMetaData
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setAsciiStream
public void setAsciiStream(int arg0,
java.io.InputStream arg1)
throws java.sql.SQLException
- Specified by:
setAsciiStream
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setAsciiStream
public void setAsciiStream(int arg0,
java.io.InputStream arg1,
long arg2)
throws java.sql.SQLException
- Specified by:
setAsciiStream
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setBinaryStream
public void setBinaryStream(int arg0,
java.io.InputStream arg1)
throws java.sql.SQLException
- Specified by:
setBinaryStream
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setBinaryStream
public void setBinaryStream(int arg0,
java.io.InputStream arg1,
long arg2)
throws java.sql.SQLException
- Specified by:
setBinaryStream
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setBlob
public void setBlob(int arg0,
java.io.InputStream arg1)
throws java.sql.SQLException
- Specified by:
setBlob
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setBlob
public void setBlob(int arg0,
java.io.InputStream arg1,
long arg2)
throws java.sql.SQLException
- Specified by:
setBlob
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setCharacterStream
public void setCharacterStream(int arg0,
java.io.Reader arg1)
throws java.sql.SQLException
- Specified by:
setCharacterStream
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setCharacterStream
public void setCharacterStream(int arg0,
java.io.Reader arg1,
long arg2)
throws java.sql.SQLException
- Specified by:
setCharacterStream
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setClob
public void setClob(int arg0,
java.io.Reader arg1)
throws java.sql.SQLException
- Specified by:
setClob
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setClob
public void setClob(int arg0,
java.io.Reader arg1,
long arg2)
throws java.sql.SQLException
- Specified by:
setClob
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setNCharacterStream
public void setNCharacterStream(int arg0,
java.io.Reader arg1)
throws java.sql.SQLException
- Specified by:
setNCharacterStream
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setNCharacterStream
public void setNCharacterStream(int arg0,
java.io.Reader arg1,
long arg2)
throws java.sql.SQLException
- Specified by:
setNCharacterStream
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setNClob
public void setNClob(int arg0,
java.sql.NClob arg1)
throws java.sql.SQLException
- Specified by:
setNClob
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setNClob
public void setNClob(int arg0,
java.io.Reader arg1)
throws java.sql.SQLException
- Specified by:
setNClob
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setNClob
public void setNClob(int arg0,
java.io.Reader arg1,
long arg2)
throws java.sql.SQLException
- Specified by:
setNClob
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setNString
public void setNString(int arg0,
java.lang.String arg1)
throws java.sql.SQLException
- Specified by:
setNString
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setRowId
public void setRowId(int arg0,
java.sql.RowId arg1)
throws java.sql.SQLException
- Specified by:
setRowId
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException
setSQLXML
public void setSQLXML(int arg0,
java.sql.SQLXML arg1)
throws java.sql.SQLException
- Specified by:
setSQLXML
in interface java.sql.PreparedStatement
- Throws:
java.sql.SQLException