org.axiondb.jdbc
Class AxionPreparedStatement
java.lang.Object
org.axiondb.jdbc.BaseAxionStatement
org.axiondb.jdbc.AxionStatement
org.axiondb.jdbc.AxionPreparedStatement
- All Implemented Interfaces:
- PreparedStatement, Statement, Wrapper
public class AxionPreparedStatement
- extends AxionStatement
- implements Statement, PreparedStatement
A PreparedStatement implementation.
- Version:
- $Revision: 1.34 $ $Date: 2007/11/13 19:04:01 $
|
Method Summary |
void |
addBatch()
|
void |
addBatch(String sql)
|
void |
clearParameters()
|
void |
close()
|
boolean |
execute()
|
boolean |
execute(String sql)
|
int[] |
executeBatch()
|
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 arg0,
InputStream arg1)
|
void |
setAsciiStream(int n,
InputStream in,
int length)
|
void |
setAsciiStream(int arg0,
InputStream arg1,
long arg2)
|
void |
setBigDecimal(int i,
BigDecimal big)
|
void |
setBinaryStream(int arg0,
InputStream arg1)
|
void |
setBinaryStream(int n,
InputStream in,
int length)
|
void |
setBinaryStream(int arg0,
InputStream arg1,
long arg2)
|
void |
setBlob(int i,
Blob blob)
|
void |
setBlob(int arg0,
InputStream arg1)
|
void |
setBlob(int arg0,
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,
Reader arg1)
|
void |
setCharacterStream(int n,
Reader reader,
int length)
|
void |
setCharacterStream(int arg0,
Reader arg1,
long arg2)
|
void |
setClob(int i,
Clob clob)
|
void |
setClob(int arg0,
Reader arg1)
|
void |
setClob(int arg0,
Reader arg1,
long arg2)
|
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 |
setNCharacterStream(int arg0,
Reader arg1)
|
void |
setNCharacterStream(int arg0,
Reader arg1,
long arg2)
|
void |
setNClob(int arg0,
NClob arg1)
|
void |
setNClob(int arg0,
Reader arg1)
|
void |
setNClob(int arg0,
Reader arg1,
long arg2)
|
void |
setNString(int arg0,
String arg1)
|
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 |
setRowId(int arg0,
RowId arg1)
|
void |
setShort(int i,
short s)
|
void |
setSQLXML(int arg0,
SQLXML arg1)
|
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 |
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 |
AxionPreparedStatement
protected AxionPreparedStatement(AxionConnection conn,
String sql)
throws SQLException
- Throws:
SQLException
AxionPreparedStatement
protected AxionPreparedStatement(AxionConnection conn,
String sql,
int resultSetType,
int resultSetConcurrency)
throws SQLException
- Throws:
SQLException
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
executeBatch
public int[] executeBatch()
throws SQLException
- Specified by:
executeBatch in interface Statement- Overrides:
executeBatch in class AxionStatement
- 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
setAsciiStream
public void setAsciiStream(int arg0,
InputStream arg1)
throws SQLException
- Specified by:
setAsciiStream in interface PreparedStatement
- Throws:
SQLException
setAsciiStream
public void setAsciiStream(int arg0,
InputStream arg1,
long arg2)
throws SQLException
- Specified by:
setAsciiStream in interface PreparedStatement
- Throws:
SQLException
setBinaryStream
public void setBinaryStream(int arg0,
InputStream arg1)
throws SQLException
- Specified by:
setBinaryStream in interface PreparedStatement
- Throws:
SQLException
setBinaryStream
public void setBinaryStream(int arg0,
InputStream arg1,
long arg2)
throws SQLException
- Specified by:
setBinaryStream in interface PreparedStatement
- Throws:
SQLException
setBlob
public void setBlob(int arg0,
InputStream arg1)
throws SQLException
- Specified by:
setBlob in interface PreparedStatement
- Throws:
SQLException
setBlob
public void setBlob(int arg0,
InputStream arg1,
long arg2)
throws SQLException
- Specified by:
setBlob in interface PreparedStatement
- Throws:
SQLException
setCharacterStream
public void setCharacterStream(int arg0,
Reader arg1)
throws SQLException
- Specified by:
setCharacterStream in interface PreparedStatement
- Throws:
SQLException
setCharacterStream
public void setCharacterStream(int arg0,
Reader arg1,
long arg2)
throws SQLException
- Specified by:
setCharacterStream in interface PreparedStatement
- Throws:
SQLException
setClob
public void setClob(int arg0,
Reader arg1)
throws SQLException
- Specified by:
setClob in interface PreparedStatement
- Throws:
SQLException
setClob
public void setClob(int arg0,
Reader arg1,
long arg2)
throws SQLException
- Specified by:
setClob in interface PreparedStatement
- Throws:
SQLException
setNCharacterStream
public void setNCharacterStream(int arg0,
Reader arg1)
throws SQLException
- Specified by:
setNCharacterStream in interface PreparedStatement
- Throws:
SQLException
setNCharacterStream
public void setNCharacterStream(int arg0,
Reader arg1,
long arg2)
throws SQLException
- Specified by:
setNCharacterStream in interface PreparedStatement
- Throws:
SQLException
setNClob
public void setNClob(int arg0,
NClob arg1)
throws SQLException
- Specified by:
setNClob in interface PreparedStatement
- Throws:
SQLException
setNClob
public void setNClob(int arg0,
Reader arg1)
throws SQLException
- Specified by:
setNClob in interface PreparedStatement
- Throws:
SQLException
setNClob
public void setNClob(int arg0,
Reader arg1,
long arg2)
throws SQLException
- Specified by:
setNClob in interface PreparedStatement
- Throws:
SQLException
setNString
public void setNString(int arg0,
String arg1)
throws SQLException
- Specified by:
setNString in interface PreparedStatement
- Throws:
SQLException
setRowId
public void setRowId(int arg0,
RowId arg1)
throws SQLException
- Specified by:
setRowId in interface PreparedStatement
- Throws:
SQLException
setSQLXML
public void setSQLXML(int arg0,
SQLXML arg1)
throws SQLException
- Specified by:
setSQLXML in interface PreparedStatement
- Throws:
SQLException