| java.lang.Object craftsman.spy.SpyEntity craftsman.spy.SpyStatement craftsman.spy.SpyPreparedStatement
All known Subclasses: craftsman.spy.SpyCallableStatement,
SpyPreparedStatement | public class SpyPreparedStatement extends SpyStatement implements PreparedStatement(Code) | | The classe used to represent a precompiled SQL statement.
author: Sébastien LECACHEUR |
Method Summary | |
public void | addBatch() | public void | clearParameters() | public boolean | execute() | public int[] | executeBatch() | public ResultSet | executeQuery() | public int | executeUpdate() | protected int | getEstimatedParametersCount() Retrieves the estimation of the number of parameters for
the prepared SQL. | public ResultSetMetaData | getMetaData() | public ParameterMetaData | getParameterMetaData() | public void | setArray(int i, Array x) | public void | setAsciiStream(int parameterIndex, InputStream x, int length) | public void | setBigDecimal(int parameterIndex, BigDecimal x) | public void | setBinaryStream(int parameterIndex, InputStream x, int length) | public void | setBlob(int i, Blob x) | public void | setBoolean(int parameterIndex, boolean x) | public void | setByte(int parameterIndex, byte x) | public void | setBytes(int parameterIndex, byte[] x) | public void | setCharacterStream(int parameterIndex, Reader reader, int length) | public void | setClob(int i, Clob x) | public void | setDate(int parameterIndex, Date x) | public void | setDate(int parameterIndex, Date x, Calendar cal) | public void | setDouble(int parameterIndex, double x) | public void | setFloat(int parameterIndex, float x) | public void | setInt(int parameterIndex, int x) | public void | setLong(int parameterIndex, long x) | public void | setNull(int parameterIndex, int sqlType) | public void | setNull(int paramIndex, int sqlType, String typeName) | public void | setObject(int parameterIndex, Object x) | public void | setObject(int parameterIndex, Object x, int targetSqlType) | public void | setObject(int parameterIndex, Object x, int targetSqlType, int scale) | public void | setRef(int i, Ref x) | public void | setShort(int parameterIndex, short x) | public void | setString(int parameterIndex, String x) | public void | setTime(int parameterIndex, Time x) | public void | setTime(int parameterIndex, Time x, Calendar cal) | public void | setTimestamp(int parameterIndex, Timestamp x) | public void | setTimestamp(int parameterIndex, Timestamp x, Calendar cal) | public void | setURL(int parameterIndex, URL x) | public void | setUnicodeStream(int parameterIndex, InputStream x, int length) |
preparedSql | protected String preparedSql(Code) | | The current prepared SQL.
|
SpyPreparedStatement | protected SpyPreparedStatement(Connection c, PreparedStatement pstm, String sql)(Code) | | Constructs a new Spy JDBC prepared statement.
Parameters: c - Connection The used connection. Parameters: pstm - PreparedStatement The real JDBC prepared statement. Parameters: sql - String The prepared SQL. |
getEstimatedParametersCount | protected int getEstimatedParametersCount()(Code) | | Retrieves the estimation of the number of parameters for
the prepared SQL.
int The number of parameters. |
|
|