A base delegating implementation of
PreparedStatement
.
All of the methods from the
PreparedStatement
interface
simply check to see that the
PreparedStatement
is active,
and call the corresponding method on the "delegate"
provided in my constructor.
Extends AbandonedTrace to implement Statement tracking and
logging of code which created the Statement. Tracking the
Statement ensures that the Connection which created it can
close any open Statement's on Connection close.
addBatch
public void addBatch()
throws SQLException
clearParameters
public void clearParameters()
throws SQLException
execute
public boolean execute()
throws SQLException
executeQuery
public ResultSet executeQuery()
throws SQLException
executeUpdate
public int executeUpdate()
throws SQLException
getMetaData
public ResultSetMetaData getMetaData()
throws SQLException
getParameterMetaData
public ParameterMetaData getParameterMetaData()
throws SQLException
setArray
public void setArray(int i,
Array x)
throws SQLException
setAsciiStream
public void setAsciiStream(int parameterIndex,
InputStream x,
int length)
throws SQLException
setBigDecimal
public void setBigDecimal(int parameterIndex,
BigDecimal x)
throws SQLException
setBinaryStream
public void setBinaryStream(int parameterIndex,
InputStream x,
int length)
throws SQLException
setBlob
public void setBlob(int i,
Blob x)
throws SQLException
setBoolean
public void setBoolean(int parameterIndex,
boolean x)
throws SQLException
setByte
public void setByte(int parameterIndex,
byte x)
throws SQLException
setBytes
public void setBytes(int parameterIndex,
byte[] x)
throws SQLException
setCharacterStream
public void setCharacterStream(int parameterIndex,
Reader reader,
int length)
throws SQLException
setClob
public void setClob(int i,
Clob x)
throws SQLException
setDate
public void setDate(int parameterIndex,
Date x)
throws SQLException
setDate
public void setDate(int parameterIndex,
Date x,
Calendar cal)
throws SQLException
setDelegate
public void setDelegate(PreparedStatement s)
Sets my delegate.
setDouble
public void setDouble(int parameterIndex,
double x)
throws SQLException
setFloat
public void setFloat(int parameterIndex,
float x)
throws SQLException
setInt
public void setInt(int parameterIndex,
int x)
throws SQLException
setLong
public void setLong(int parameterIndex,
long x)
throws SQLException
setNull
public void setNull(int parameterIndex,
int sqlType)
throws SQLException
setNull
public void setNull(int paramIndex,
int sqlType,
String typeName)
throws SQLException
setObject
public void setObject(int parameterIndex,
Object x)
throws SQLException
setObject
public void setObject(int parameterIndex,
Object x,
int targetSqlType)
throws SQLException
setObject
public void setObject(int parameterIndex,
Object x,
int targetSqlType,
int scale)
throws SQLException
setRef
public void setRef(int i,
Ref x)
throws SQLException
setShort
public void setShort(int parameterIndex,
short x)
throws SQLException
setString
public void setString(int parameterIndex,
String x)
throws SQLException
setTime
public void setTime(int parameterIndex,
Time x)
throws SQLException
setTime
public void setTime(int parameterIndex,
Time x,
Calendar cal)
throws SQLException
setTimestamp
public void setTimestamp(int parameterIndex,
Timestamp x)
throws SQLException
setTimestamp
public void setTimestamp(int parameterIndex,
Timestamp x,
Calendar cal)
throws SQLException
setURL
public void setURL(int parameterIndex,
URL x)
throws SQLException
setUnicodeStream
public void setUnicodeStream(int parameterIndex,
InputStream x,
int length)
throws SQLException