public class AxionPreparedStatement extends AxionStatement implements java.sql.Statement, java.sql.PreparedStatement
PreparedStatement
implementation.Modifier and Type | Class and Description |
---|---|
protected class |
AxionPreparedStatement.Parameters |
_batchContext, _warning
Modifier | Constructor and Description |
---|---|
protected |
AxionPreparedStatement(AxionConnection conn,
java.lang.String sql) |
protected |
AxionPreparedStatement(AxionConnection conn,
java.lang.String sql,
int resultSetType,
int resultSetConcurrency) |
Modifier and Type | Method and Description |
---|---|
void |
addBatch() |
void |
addBatch(java.lang.String sql) |
void |
clearParameters() |
void |
close() |
void |
closeOnCompletion() |
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.
|
boolean |
isCloseOnCompletion() |
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) |
addWarning, cancel, clearBatch, clearWarnings, execute, execute, execute, execute, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMoreResults, getMoreResults, getParentLogger, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isPoolable, isWrapperFor, setCursorName, setFetchDirection, setFetchSize, setMaxFieldSize, setPoolable, setQueryTimeout, unwrap
addToBatchContext, assertOpen, clearBatchContext, clearConnection, clearCurrentResult, clearCurrentUpdateCount, closeCurrentResultSet, getAxionConnection, getBatchContext, getBatchCount, getConnection, getCurrentResultSet, getCurrentUpdateCount, getDatabase, getMaxRows, hasCurrentResultSet, parseCommand, setCurrentResult, setCurrentResultSet, setCurrentUpdateCount, setMaxRows
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeLargeUpdate, setObject, setObject
cancel, clearBatch, clearWarnings, execute, execute, execute, executeLargeBatch, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeLargeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getLargeMaxRows, getLargeUpdateCount, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isPoolable, setCursorName, setFetchDirection, setFetchSize, setLargeMaxRows, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout
protected AxionPreparedStatement(AxionConnection conn, java.lang.String sql) throws java.sql.SQLException
java.sql.SQLException
protected AxionPreparedStatement(AxionConnection conn, java.lang.String sql, int resultSetType, int resultSetConcurrency) throws java.sql.SQLException
java.sql.SQLException
public void close() throws java.sql.SQLException
close
in interface java.lang.AutoCloseable
close
in interface java.sql.Statement
close
in class BaseAxionStatement
java.sql.SQLException
public boolean execute(java.lang.String sql) throws java.sql.SQLException
execute
in interface java.sql.Statement
execute
in class AxionStatement
java.sql.SQLException
public java.sql.ResultSet executeQuery(java.lang.String sql) throws java.sql.SQLException
executeQuery
in interface java.sql.Statement
executeQuery
in class AxionStatement
java.sql.SQLException
public int executeUpdate(java.lang.String sql) throws java.sql.SQLException
executeUpdate
in interface java.sql.Statement
executeUpdate
in class AxionStatement
java.sql.SQLException
public void addBatch(java.lang.String sql) throws java.sql.SQLException
addBatch
in interface java.sql.Statement
addBatch
in class AxionStatement
java.sql.SQLException
public void addBatch() throws java.sql.SQLException
addBatch
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setEscapeProcessing(boolean enable) throws java.sql.SQLException
setEscapeProcessing
in interface java.sql.Statement
setEscapeProcessing
in class AxionStatement
java.sql.SQLException
public void clearParameters() throws java.sql.SQLException
clearParameters
in interface java.sql.PreparedStatement
java.sql.SQLException
public int[] executeBatch() throws java.sql.SQLException
executeBatch
in interface java.sql.Statement
executeBatch
in class AxionStatement
java.sql.SQLException
public boolean execute() throws java.sql.SQLException
execute
in interface java.sql.PreparedStatement
java.sql.SQLException
public java.sql.ResultSet executeQuery() throws java.sql.SQLException
executeQuery
in interface java.sql.PreparedStatement
java.sql.SQLException
public int executeUpdate() throws java.sql.SQLException
executeUpdate
in interface java.sql.PreparedStatement
java.sql.SQLException
public java.sql.ResultSetMetaData getMetaData() throws java.sql.SQLException
getMetaData
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setArray(int i, java.sql.Array arr) throws java.sql.SQLException
setArray
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setAsciiStream(int n, java.io.InputStream in, int length) throws java.sql.SQLException
setAsciiStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setBigDecimal(int i, java.math.BigDecimal big) throws java.sql.SQLException
setBigDecimal
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setBinaryStream(int n, java.io.InputStream in, int length) throws java.sql.SQLException
setBinaryStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setBlob(int i, java.sql.Blob blob) throws java.sql.SQLException
setBlob
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setBoolean(int i, boolean bool) throws java.sql.SQLException
setBoolean
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setByte(int i, byte b) throws java.sql.SQLException
setByte
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setBytes(int i, byte[] bytes) throws java.sql.SQLException
setBytes
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setCharacterStream(int n, java.io.Reader reader, int length) throws java.sql.SQLException
setCharacterStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setClob(int i, java.sql.Clob clob) throws java.sql.SQLException
setClob
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setDate(int i, java.sql.Date date) throws java.sql.SQLException
setDate
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setDate(int i, java.sql.Date date, java.util.Calendar cal) throws java.sql.SQLException
setDate
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setDouble(int i, double d) throws java.sql.SQLException
setDouble
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setFloat(int i, float f) throws java.sql.SQLException
setFloat
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setInt(int i, int value) throws java.sql.SQLException
setInt
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setLong(int i, long l) throws java.sql.SQLException
setLong
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setNull(int i, int sqlType) throws java.sql.SQLException
setNull
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setNull(int i, int sqlType, java.lang.String typeName) throws java.sql.SQLException
setNull
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setObject(int i, java.lang.Object o) throws java.sql.SQLException
setObject
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setObject(int i, java.lang.Object o, int targetSqlType) throws java.sql.SQLException
setObject
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setObject(int i, java.lang.Object o, int targetSqlType, int scale) throws java.sql.SQLException
setObject
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setRef(int i, java.sql.Ref ref) throws java.sql.SQLException
setRef
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setShort(int i, short s) throws java.sql.SQLException
setShort
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setString(int i, java.lang.String str) throws java.sql.SQLException
setString
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setTime(int i, java.sql.Time time) throws java.sql.SQLException
setTime
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setTime(int i, java.sql.Time time, java.util.Calendar cal) throws java.sql.SQLException
setTime
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setTimestamp(int i, java.sql.Timestamp timestamp) throws java.sql.SQLException
setTimestamp
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setTimestamp(int i, java.sql.Timestamp timestamp, java.util.Calendar cal) throws java.sql.SQLException
setTimestamp
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setURL(int i, java.net.URL url) throws java.sql.SQLException
setURL
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setUnicodeStream(int n, java.io.InputStream in, int length) throws java.sql.SQLException
PreparedStatement.setUnicodeStream(int, java.io.InputStream, int)
setUnicodeStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public java.sql.ParameterMetaData getParameterMetaData() throws java.sql.SQLException
getParameterMetaData
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setAsciiStream(int arg0, java.io.InputStream arg1) throws java.sql.SQLException
setAsciiStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setAsciiStream(int arg0, java.io.InputStream arg1, long arg2) throws java.sql.SQLException
setAsciiStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setBinaryStream(int arg0, java.io.InputStream arg1) throws java.sql.SQLException
setBinaryStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setBinaryStream(int arg0, java.io.InputStream arg1, long arg2) throws java.sql.SQLException
setBinaryStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setBlob(int arg0, java.io.InputStream arg1) throws java.sql.SQLException
setBlob
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setBlob(int arg0, java.io.InputStream arg1, long arg2) throws java.sql.SQLException
setBlob
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setCharacterStream(int arg0, java.io.Reader arg1) throws java.sql.SQLException
setCharacterStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setCharacterStream(int arg0, java.io.Reader arg1, long arg2) throws java.sql.SQLException
setCharacterStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setClob(int arg0, java.io.Reader arg1) throws java.sql.SQLException
setClob
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setClob(int arg0, java.io.Reader arg1, long arg2) throws java.sql.SQLException
setClob
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setNCharacterStream(int arg0, java.io.Reader arg1) throws java.sql.SQLException
setNCharacterStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setNCharacterStream(int arg0, java.io.Reader arg1, long arg2) throws java.sql.SQLException
setNCharacterStream
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setNClob(int arg0, java.sql.NClob arg1) throws java.sql.SQLException
setNClob
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setNClob(int arg0, java.io.Reader arg1) throws java.sql.SQLException
setNClob
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setNClob(int arg0, java.io.Reader arg1, long arg2) throws java.sql.SQLException
setNClob
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setNString(int arg0, java.lang.String arg1) throws java.sql.SQLException
setNString
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setRowId(int arg0, java.sql.RowId arg1) throws java.sql.SQLException
setRowId
in interface java.sql.PreparedStatement
java.sql.SQLException
public void setSQLXML(int arg0, java.sql.SQLXML arg1) throws java.sql.SQLException
setSQLXML
in interface java.sql.PreparedStatement
java.sql.SQLException
public boolean isCloseOnCompletion() throws java.sql.SQLException
isCloseOnCompletion
in interface java.sql.Statement
isCloseOnCompletion
in class AxionStatement
java.sql.SQLException
public void closeOnCompletion() throws java.sql.SQLException
closeOnCompletion
in interface java.sql.Statement
closeOnCompletion
in class AxionStatement
java.sql.SQLException