| java.lang.Object org.ofbiz.minerva.pool.jdbc.StatementInPool org.ofbiz.minerva.pool.jdbc.PreparedStatementInPool
PreparedStatementInPool | public class PreparedStatementInPool extends StatementInPool implements PreparedStatement(Code) | | Wrapper around a PreparedStatement that supports error-handling
and caching.
author: Aaron Mulder ammulder@alumni.princeton.edu |
Method Summary | |
public void | addBatch() | public void | clearParameters() | public void | close() | public boolean | execute() | public ResultSet | executeQuery() | public int | executeUpdate() | public ResultSetMetaData | getMetaData() | public ParameterMetaData | getParameterMetaData() | public String | getSql() Returns the SQL Statement string. | public PreparedStatement | getUnderlyingPreparedStatement() Gets a reference to the "real" Statement. | 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, int targetSqlType, int scale) | public void | setObject(int parameterIndex, Object x, int targetSqlType) | public void | setObject(int parameterIndex, Object x) | 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 arg0, URL arg1) | public void | setUnicodeStream(int parameterIndex, InputStream x, int length) |
getSql | public String getSql()(Code) | | Returns the SQL Statement string.
|
getUnderlyingPreparedStatement | public PreparedStatement getUnderlyingPreparedStatement()(Code) | | Gets a reference to the "real" Statement. This should only be used if
you need to cast that to a specific type to call a proprietary method -
you will defeat all the pooling if you use the underlying Statement
directly.
|
setCharacterStream | public void setCharacterStream(int parameterIndex, Reader reader, int length) throws SQLException(Code) | | |
|
|