org.firebirdsql.pool
Interface XStatementManager
- PingablePooledConnection
public interface XStatementManager
Manager of prepared statement. This interface defines an entity that is able
to prepare SQL statements. Also this instance is notified when statement is
closed.
Currently only
PingablePooledConnection
is implementing this interface.
org.firebirdsql.pool.XCachablePreparedStatement | prepareStatement(String sql, int resultSetType, int resultSetConcurrency, boolean cached) - Prepare specified SQL statement.
|
void | statementClosed(String statement, Object proxy) - Notify about statement close.
|
prepareStatement
public org.firebirdsql.pool.XCachablePreparedStatement prepareStatement(String sql,
int resultSetType,
int resultSetConcurrency,
boolean cached)
throws SQLException
Prepare specified SQL statement. This method should call
java.sql.Connection.prepareStatement(String)
method on physical JDBC
connection.
sql
- SQL statement to prepare.resultSetType
- type of result setresultSetConcurrency
- result set concurrencycached
- true
if prepared statement will be cached.
- instance of
java.sql.PreparedStatement
corresponding to the
specified SQL statement.
java.sql.Connection.prepareStatement(java.lang.String, int, int)
statementClosed
public void statementClosed(String statement,
Object proxy)
throws SQLException
Notify about statement close.
statement
- SQL statement of an object that is being closed.proxy
- proxy on which java.sql.Statement.close()
method was called.
Copyright B) 2001 David Jencks and other authors. All rights reserved.