public class ThinPreparedStatement extends ThinStatement implements PreparedStatement
CLOSE_ALL_RESULTS, CLOSE_CURRENT_RESULT, EXECUTE_FAILED, KEEP_CURRENT_RESULT, NO_GENERATED_KEYS, RETURN_GENERATED_KEYS, SUCCESS_NO_INFO
Constructor and Description |
---|
ThinPreparedStatement(ThinConnection connection,
String sql) |
Modifier and Type | Method and Description |
---|---|
void |
addBatch() |
void |
analyzeSql() |
void |
clearParameters() |
boolean |
execute() |
ResultSet |
executeQuery() |
int |
executeUpdate() |
ResultSetMetaData |
getMetaData() |
Object[] |
getParamData() |
ParameterMetaData |
getParameterMetaData() |
ValueMetaInterface[] |
getParamMeta() |
String |
getSql() |
String |
replaceSql() |
void |
setArray(int nr,
Array value) |
void |
setAsciiStream(int nr,
InputStream value) |
void |
setAsciiStream(int nr,
InputStream value,
int arg2) |
void |
setAsciiStream(int nr,
InputStream value,
long arg2) |
void |
setBigDecimal(int nr,
BigDecimal value) |
void |
setBinaryStream(int nr,
InputStream value) |
void |
setBinaryStream(int nr,
InputStream value,
int arg2) |
void |
setBinaryStream(int nr,
InputStream value,
long arg2) |
void |
setBlob(int nr,
Blob value) |
void |
setBlob(int nr,
InputStream value) |
void |
setBlob(int nr,
InputStream value,
long arg2) |
void |
setBoolean(int nr,
boolean value) |
void |
setByte(int nr,
byte value) |
void |
setBytes(int nr,
byte[] value) |
void |
setCharacterStream(int nr,
Reader value) |
void |
setCharacterStream(int nr,
Reader value,
int arg2) |
void |
setCharacterStream(int nr,
Reader value,
long arg2) |
void |
setClob(int nr,
Clob value) |
void |
setClob(int nr,
Reader value) |
void |
setClob(int nr,
Reader value,
long arg2) |
void |
setDate(int nr,
Date value) |
void |
setDate(int nr,
Date value,
Calendar calendar) |
void |
setDouble(int nr,
double value) |
void |
setFloat(int nr,
float value) |
void |
setInt(int nr,
int value) |
void |
setLong(int nr,
long value) |
void |
setNCharacterStream(int nr,
Reader value) |
void |
setNCharacterStream(int nr,
Reader value,
long arg2) |
void |
setNClob(int nr,
NClob value) |
void |
setNClob(int nr,
Reader value) |
void |
setNClob(int nr,
Reader value,
long arg2) |
void |
setNString(int nr,
String value) |
void |
setNull(int nr,
int sqlType) |
void |
setNull(int nr,
int value,
String arg2) |
void |
setObject(int nr,
Object value) |
void |
setObject(int nr,
Object value,
int arg2) |
void |
setObject(int nr,
Object value,
int arg2,
int arg3) |
void |
setRef(int nr,
Ref value) |
void |
setRowId(int nr,
RowId value) |
void |
setShort(int nr,
short value) |
void |
setSql(String sql) |
void |
setSQLXML(int nr,
SQLXML value) |
void |
setString(int nr,
String value) |
void |
setTime(int nr,
Time value) |
void |
setTime(int nr,
Time value,
Calendar arg2) |
void |
setTimestamp(int nr,
Timestamp value) |
void |
setTimestamp(int nr,
Timestamp value,
Calendar arg2) |
void |
setUnicodeStream(int nr,
InputStream value,
int arg2)
Deprecated.
|
void |
setURL(int nr,
URL value) |
addBatch, cancel, clearBatch, clearWarnings, close, closeOnCompletion, execute, execute, execute, execute, executeBatch, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, isWrapperFor, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout, unwrap
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addBatch, cancel, clearBatch, clearWarnings, close, closeOnCompletion, execute, execute, execute, execute, executeBatch, executeQuery, executeUpdate, executeUpdate, executeUpdate, executeUpdate, getConnection, getFetchDirection, getFetchSize, getGeneratedKeys, getMaxFieldSize, getMaxRows, getMoreResults, getMoreResults, getQueryTimeout, getResultSet, getResultSetConcurrency, getResultSetHoldability, getResultSetType, getUpdateCount, getWarnings, isClosed, isCloseOnCompletion, isPoolable, setCursorName, setEscapeProcessing, setFetchDirection, setFetchSize, setMaxFieldSize, setMaxRows, setPoolable, setQueryTimeout
isWrapperFor, unwrap
public ThinPreparedStatement(ThinConnection connection, String sql) throws SQLException
SQLException
public void analyzeSql() throws SQLException
SQLException
public String replaceSql() throws SQLException
SQLException
public void addBatch() throws SQLException
addBatch
in interface PreparedStatement
SQLException
public void clearParameters() throws SQLException
clearParameters
in interface PreparedStatement
SQLException
public boolean execute() throws SQLException
execute
in interface PreparedStatement
SQLException
public ResultSet executeQuery() throws SQLException
executeQuery
in interface PreparedStatement
SQLException
public int executeUpdate() throws SQLException
executeUpdate
in interface PreparedStatement
SQLException
public ResultSetMetaData getMetaData() throws SQLException
getMetaData
in interface PreparedStatement
SQLException
public ParameterMetaData getParameterMetaData() throws SQLException
getParameterMetaData
in interface PreparedStatement
SQLException
public void setArray(int nr, Array value) throws SQLException
setArray
in interface PreparedStatement
SQLException
public void setAsciiStream(int nr, InputStream value) throws SQLException
setAsciiStream
in interface PreparedStatement
SQLException
public void setAsciiStream(int nr, InputStream value, int arg2) throws SQLException
setAsciiStream
in interface PreparedStatement
SQLException
public void setAsciiStream(int nr, InputStream value, long arg2) throws SQLException
setAsciiStream
in interface PreparedStatement
SQLException
public void setBigDecimal(int nr, BigDecimal value) throws SQLException
setBigDecimal
in interface PreparedStatement
SQLException
public void setBinaryStream(int nr, InputStream value) throws SQLException
setBinaryStream
in interface PreparedStatement
SQLException
public void setBinaryStream(int nr, InputStream value, int arg2) throws SQLException
setBinaryStream
in interface PreparedStatement
SQLException
public void setBinaryStream(int nr, InputStream value, long arg2) throws SQLException
setBinaryStream
in interface PreparedStatement
SQLException
public void setBlob(int nr, Blob value) throws SQLException
setBlob
in interface PreparedStatement
SQLException
public void setBlob(int nr, InputStream value) throws SQLException
setBlob
in interface PreparedStatement
SQLException
public void setBlob(int nr, InputStream value, long arg2) throws SQLException
setBlob
in interface PreparedStatement
SQLException
public void setBoolean(int nr, boolean value) throws SQLException
setBoolean
in interface PreparedStatement
SQLException
public void setByte(int nr, byte value) throws SQLException
setByte
in interface PreparedStatement
SQLException
public void setBytes(int nr, byte[] value) throws SQLException
setBytes
in interface PreparedStatement
SQLException
public void setCharacterStream(int nr, Reader value) throws SQLException
setCharacterStream
in interface PreparedStatement
SQLException
public void setCharacterStream(int nr, Reader value, int arg2) throws SQLException
setCharacterStream
in interface PreparedStatement
SQLException
public void setCharacterStream(int nr, Reader value, long arg2) throws SQLException
setCharacterStream
in interface PreparedStatement
SQLException
public void setClob(int nr, Clob value) throws SQLException
setClob
in interface PreparedStatement
SQLException
public void setClob(int nr, Reader value) throws SQLException
setClob
in interface PreparedStatement
SQLException
public void setClob(int nr, Reader value, long arg2) throws SQLException
setClob
in interface PreparedStatement
SQLException
public void setDate(int nr, Date value) throws SQLException
setDate
in interface PreparedStatement
SQLException
public void setDate(int nr, Date value, Calendar calendar) throws SQLException
setDate
in interface PreparedStatement
SQLException
public void setDouble(int nr, double value) throws SQLException
setDouble
in interface PreparedStatement
SQLException
public void setFloat(int nr, float value) throws SQLException
setFloat
in interface PreparedStatement
SQLException
public void setInt(int nr, int value) throws SQLException
setInt
in interface PreparedStatement
SQLException
public void setLong(int nr, long value) throws SQLException
setLong
in interface PreparedStatement
SQLException
public void setNCharacterStream(int nr, Reader value) throws SQLException
setNCharacterStream
in interface PreparedStatement
SQLException
public void setNCharacterStream(int nr, Reader value, long arg2) throws SQLException
setNCharacterStream
in interface PreparedStatement
SQLException
public void setNClob(int nr, NClob value) throws SQLException
setNClob
in interface PreparedStatement
SQLException
public void setNClob(int nr, Reader value) throws SQLException
setNClob
in interface PreparedStatement
SQLException
public void setNClob(int nr, Reader value, long arg2) throws SQLException
setNClob
in interface PreparedStatement
SQLException
public void setNString(int nr, String value) throws SQLException
setNString
in interface PreparedStatement
SQLException
public void setNull(int nr, int sqlType) throws SQLException
setNull
in interface PreparedStatement
SQLException
public void setNull(int nr, int value, String arg2) throws SQLException
setNull
in interface PreparedStatement
SQLException
public void setObject(int nr, Object value) throws SQLException
setObject
in interface PreparedStatement
SQLException
public void setObject(int nr, Object value, int arg2) throws SQLException
setObject
in interface PreparedStatement
SQLException
public void setObject(int nr, Object value, int arg2, int arg3) throws SQLException
setObject
in interface PreparedStatement
SQLException
public void setRef(int nr, Ref value) throws SQLException
setRef
in interface PreparedStatement
SQLException
public void setRowId(int nr, RowId value) throws SQLException
setRowId
in interface PreparedStatement
SQLException
public void setSQLXML(int nr, SQLXML value) throws SQLException
setSQLXML
in interface PreparedStatement
SQLException
public void setShort(int nr, short value) throws SQLException
setShort
in interface PreparedStatement
SQLException
public void setString(int nr, String value) throws SQLException
setString
in interface PreparedStatement
SQLException
public void setTime(int nr, Time value) throws SQLException
setTime
in interface PreparedStatement
SQLException
public void setTime(int nr, Time value, Calendar arg2) throws SQLException
setTime
in interface PreparedStatement
SQLException
public void setTimestamp(int nr, Timestamp value) throws SQLException
setTimestamp
in interface PreparedStatement
SQLException
public void setTimestamp(int nr, Timestamp value, Calendar arg2) throws SQLException
setTimestamp
in interface PreparedStatement
SQLException
public void setURL(int nr, URL value) throws SQLException
setURL
in interface PreparedStatement
SQLException
@Deprecated public void setUnicodeStream(int nr, InputStream value, int arg2) throws SQLException
setUnicodeStream
in interface PreparedStatement
SQLException
public String getSql()
public void setSql(String sql)
sql
- the sql to setpublic ValueMetaInterface[] getParamMeta()
public Object[] getParamData()