Methods Summary |
---|
public void | addBatch()Delegates to the underlying prepared statement.
validate();
statement.addBatch();
|
public void | addBatch(java.lang.String sql)Delegates to the underlying prepared statement.
validate();
statement.addBatch(sql);
|
public void | addStatementEventListener(StatementEventListener lstnr)Adds a listener to this statement's list of listeners.
synchronized( listeners ) {
listeners.add(lstnr);
}
|
public void | cancel()Delegates to the underlying prepared statement.
validate();
statement.cancel();
|
public void | clearBatch()Delegates to the underlying prepared statement.
validate();
statement.clearBatch();
|
public void | clearParameters()Delegates to the underlying prepared statement.
validate();
statement.clearParameters();
|
public void | clearWarnings()Delegates to the underlying prepared statement.
validate();
statement.clearWarnings();
|
public void | close()Closes this logical statementand notifies all listeners of
the closure so that the physical statement can return to the pool.
All parameters and warnings associated with the statement
are cleared.
validate();
statement.clearParameters();
statement.clearWarnings();
statement = null;
synchronized( listeners ) {
Iterator it = listeners.iterator();
while( it.hasNext() ) {
StatementEventListener lstnr;
lstnr = (StatementEventListener)it.next();
lstnr.statementClosed(new StatementEvent(sql, statement));
}
}
|
public boolean | execute()Delegates to the underlying prepared statement.
validate();
return statement.execute();
|
public boolean | execute(java.lang.String sql)Delegates to the underlying prepared statement.
validate();
return statement.execute(sql);
|
public int[] | executeBatch()Delegates to the underlying prepared statement.
validate();
return statement.executeBatch();
|
public java.sql.ResultSet | executeQuery()Delegates to the underlying prepared statement.
validate();
return statement.executeQuery();
|
public java.sql.ResultSet | executeQuery(java.lang.String sql)Delegates to the underlying prepared statement.
validate();
return statement.executeQuery(sql);
|
public int | executeUpdate()Delegates to the underlying prepared statement.
validate();
return statement.executeUpdate();
|
public int | executeUpdate(java.lang.String sql)Delegates to the underlying prepared statement.
validate();
return statement.executeUpdate(sql);
|
public java.sql.Connection | getConnection()Provides the logical connection associated with this statement
validate();
return connection;
|
public int | getFetchDirection()Delegates to the underlying prepared statement.
validate();
return statement.getFetchDirection();
|
public int | getFetchSize()Delegates to the underlying prepared statement.
validate();
return statement.getFetchSize();
|
public int | getMaxFieldSize()Delegates to the underlying prepared statement.
validate();
return statement.getMaxFieldSize();
|
public int | getMaxRows()Delegates to the underlying prepared statement.
validate();
return statement.getMaxRows();
|
public java.sql.ResultSetMetaData | getMetaData()Delegates to the underlying prepared statement.
validate();
return statement.getMetaData();
|
public boolean | getMoreResults()Delegates to the underlying prepared statement.
validate();
return statement.getMoreResults();
|
public int | getQueryTimeout()Delegates to the underlying prepared statement.
validate();
return statement.getQueryTimeout();
|
public java.sql.ResultSet | getResultSet()Delegates to the underlying prepared statement.
validate();
return statement.getResultSet();
|
public int | getResultSetConcurrency()Delegates to the underlying prepared statement.
validate();
return statement.getResultSetConcurrency();
|
public int | getResultSetType()Delegates to the underlying prepared statement.
validate();
return statement.getResultSetType();
|
public int | getUpdateCount()Delegates to the underlying prepared statement.
validate();
return statement.getUpdateCount();
|
public java.sql.SQLWarning | getWarnings()Delegates to the underlying prepared statement.
validate();
return statement.getWarnings();
|
public boolean | isClosed()
return (statement == null);
|
public void | removeStatementEventListener(StatementEventListener lstnr)Removes a listener from the stable of listeners.
synchronized( listeners ) {
listeners.remove(lstnr);
}
|
public void | setArray(int idx, java.sql.Array arr)Delegates to the underlying prepared statement.
validate();
statement.setArray(idx, arr);
|
public void | setAsciiStream(int idx, java.io.InputStream is, int len)Delegates to the underlying prepared statement.
validate();
statement.setAsciiStream(idx, is, len);
|
public void | setBigDecimal(int idx, java.math.BigDecimal d)Delegates to the underlying prepared statement.
validate();
statement.setBigDecimal(idx, d);
|
public void | setBinaryStream(int idx, java.io.InputStream is, int len)Delegates to the underlying prepared statement.
validate();
statement.setBinaryStream(idx, is, len);
|
public void | setBlob(int idx, java.sql.Blob b)Delegates to the underlying prepared statement.
validate();
statement.setBlob(idx, b);
|
public void | setBoolean(int idx, boolean b)Delegates to the underlying prepared statement.
validate();
statement.setBoolean(idx, b);
|
public void | setByte(int idx, byte b)Delegates to the underlying prepared statement.
validate();
statement.setByte(idx, b);
|
public void | setBytes(int idx, byte[] data)Delegates to the underlying prepared statement.
validate();
statement.setBytes(idx, data);
|
public void | setCharacterStream(int idx, java.io.Reader rdr, int len)Delegates to the underlying prepared statement.
validate();
statement.setCharacterStream(idx, rdr, len);
|
public void | setClob(int idx, java.sql.Clob c)Delegates to the underlying prepared statement.
validate();
statement.setClob(idx, c);
|
public void | setCursorName(java.lang.String name)Delegates to the underlying prepared statement.
validate();
statement.setCursorName(name);
|
public void | setDate(int idx, java.sql.Date d)Delegates to the underlying prepared statement.
validate();
statement.setDate(idx, d);
|
public void | setDate(int idx, java.sql.Date d, java.util.Calendar cal)Delegates to the underlying prepared statement.
validate();
statement.setDate(idx, d, cal);
|
public void | setDouble(int idx, double d)Delegates to the underlying prepared statement.
validate();
statement.setDouble(idx, d);
|
public void | setEscapeProcessing(boolean en)Delegates to the underlying prepared statement.
validate();
statement.setEscapeProcessing(en);
|
public void | setFetchDirection(int dir)Delegates to the underlying prepared statement.
validate();
statement.setFetchDirection(dir);
|
public void | setFetchSize(int sz)Delegates to the underlying prepared statement.
validate();
statement.setFetchSize(sz);
|
public void | setFloat(int idx, float f)Delegates to the underlying prepared statement.
validate();
statement.setFloat(idx, f);
|
public void | setInt(int idx, int x)Delegates to the underlying prepared statement.
validate();
statement.setInt(idx, x);
|
public void | setLong(int idx, long l)Delegates to the underlying prepared statement.
validate();
statement.setLong(idx, l);
|
public void | setMaxFieldSize(int max)Delegates to the underlying prepared statement.
validate();
statement.setMaxFieldSize(max);
|
public void | setMaxRows(int max)Delegates to the underlying prepared statement.
validate();
statement.setMaxRows(max);
|
public void | setNull(int idx, int type)Delegates to the underlying prepared statement.
validate();
statement.setNull(idx, type);
|
public void | setNull(int idx, int type, java.lang.String name)Delegates to the underlying prepared statement.
validate();
statement.setNull(idx, type, name);
|
public void | setObject(int idx, java.lang.Object ob)Delegates to the underlying prepared statement.
validate();
statement.setObject(idx, ob);
|
public void | setObject(int idx, java.lang.Object ob, int type)Delegates to the underlying prepared statement.
validate();
statement.setObject(idx, ob, type);
|
public void | setObject(int idx, java.lang.Object ob, int type, int scale)Delegates to the underlying prepared statement.
validate();
statement.setObject(idx, ob, type, scale);
|
public void | setQueryTimeout(int sec)Delegates to the underlying prepared statement.
validate();
statement.setQueryTimeout(sec);
|
public void | setRef(int idx, java.sql.Ref ref)Delegates to the underlying prepared statement.
validate();
statement.setRef(idx, ref);
|
public void | setShort(int idx, short s)Delegates to the underlying prepared statement.
validate();
statement.setShort(idx, s);
|
public void | setString(int idx, java.lang.String str)Delegates to the underlying prepared statement.
validate();
statement.setString(idx, str);
|
public void | setTime(int idx, java.sql.Time t)Delegates to the underlying prepared statement.
validate();
statement.setTime(idx, t);
|
public void | setTime(int idx, java.sql.Time t, java.util.Calendar cal)Delegates to the underlying prepared statement.
validate();
statement.setTime(idx, t, cal);
|
public void | setTimestamp(int idx, java.sql.Timestamp ts)Delegates to the underlying prepared statement.
validate();
statement.setTimestamp(idx, ts);
|
public void | setTimestamp(int idx, java.sql.Timestamp ts, java.util.Calendar cal)Delegates to the underlying prepared statement.
validate();
statement.setTimestamp(idx, ts, cal);
|
public void | setUnicodeStream(int idx, java.io.InputStream is, int len)Delegates to the underlying prepared statement.
validate();
statement.setUnicodeStream(idx, is, len);
|
public java.lang.String | toString()
if( statement != null ) {
return super.toString() + " [" + statement.toString() + "]";
}
else {
return super.toString();
}
|
private void | validate()Verifies that this statement is still valid.
if( isClosed() ) {
throw new SQLException("Illegal attempt to access statement.");
}
|