| java.lang.Object org.objectweb.jonas.dbm.JStatement
JStatement | public class JStatement implements PreparedStatement(Code) | | Wrapper on a PreparedStatement. This wrapper is used to track close method
in order to avoid closing the statement, and putting it instead in a pool.
author: durieuxp |
Method Summary | |
public void | addBatch() | public void | addBatch(String sql) | public void | cancel() | public void | clearBatch() | public void | clearParameters() | public void | clearWarnings() | public void | close() | public boolean | equals(Object stmt) | public boolean | execute() | public boolean | execute(String sql) | public boolean | execute(String sql, int autoGeneratedKeys) | public boolean | execute(String sql, int[] columnIndexes) | public boolean | execute(String sql, String[] columnNames) | public int[] | executeBatch() | public ResultSet | executeQuery() | public ResultSet | executeQuery(String sql) | public int | executeUpdate() | public int | executeUpdate(String sql) | public int | executeUpdate(String sql, int autoGeneratedKeys) | public int | executeUpdate(String sql, int[] columnIndexes) | public int | executeUpdate(String sql, String[] columnNames) | public boolean | forceClose() Force a close on the Prepare Statement. | public void | forget() | public Connection | getConnection() | public int | getFetchDirection() | public int | getFetchSize() | public ResultSet | getGeneratedKeys() | public int | getMaxFieldSize() | public int | getMaxRows() | public ResultSetMetaData | getMetaData() | public boolean | getMoreResults() | public boolean | getMoreResults(int current) | public ParameterMetaData | getParameterMetaData() | public int | getQueryTimeout() | public ResultSet | getResultSet() | public int | getResultSetConcurrency() | public int | getResultSetHoldability() | public int | getResultSetType() | public String | getSql() | public int | getUpdateCount() | public SQLWarning | getWarnings() | public int | hashCode() | public boolean | isClosed() | public void | reuse() | 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 | setCursorName(String name) | 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 | setEscapeProcessing(boolean enable) | public void | setFetchDirection(int direction) | public void | setFetchSize(int rows) | public void | setFloat(int parameterIndex, float x) | public void | setInt(int parameterIndex, int x) | public void | setLong(int parameterIndex, long x) | public void | setMaxFieldSize(int max) | public void | setMaxRows(int max) | 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 | setQueryTimeout(int seconds) | 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) |
equals | public boolean equals(Object stmt)(Code) | | Parameters: stmt - given statement for comparing it true if given object is equals to this current object |
forceClose | public boolean forceClose()(Code) | | Force a close on the Prepare Statement.
Usually, it's the caller that did not close it explicitly
true if it was open |
hashCode | public int hashCode()(Code) | | hashcode of the object |
isClosed | public boolean isClosed()(Code) | | |
setCharacterStream | public void setCharacterStream(int parameterIndex, Reader reader, int length) throws SQLException(Code) | | |
setEscapeProcessing | public void setEscapeProcessing(boolean enable) throws SQLException(Code) | | |
|
|