org.firebirdsql.pool
Interface XStatementManager

All Known Implementing Classes:
AbstractPingablePooledConnection, PingablePooledConnection

Deprecated.

@Deprecated
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.

Author:
Roman Rokytskyy

Method Summary
 org.firebirdsql.pool.XCachablePreparedStatement prepareStatement(java.lang.String sql, int resultSetType, int resultSetConcurrency, boolean cached)
          Deprecated. use prepareStatement(XPreparedStatementModel, boolean) intead.
 org.firebirdsql.pool.XCachablePreparedStatement prepareStatement(XPreparedStatementModel key, boolean cached)
          Deprecated. Prepare specified SQL statement.
 void statementClosed(java.lang.String statement, java.lang.Object proxy)
          Deprecated.  
 void statementClosed(XPreparedStatementModel key, java.lang.Object proxy)
          Deprecated. Notify about statement close.
 

Method Detail

prepareStatement

org.firebirdsql.pool.XCachablePreparedStatement prepareStatement(java.lang.String sql,
                                                                 int resultSetType,
                                                                 int resultSetConcurrency,
                                                                 boolean cached)
                                                                 throws java.sql.SQLException
Deprecated. use prepareStatement(XPreparedStatementModel, boolean) intead.

Prepare specified SQL statement. This method should call Connection.prepareStatement(String) method on physical JDBC connection.

Parameters:
sql - SQL statement to prepare.
resultSetType - type of result set
resultSetConcurrency - result set concurrency
cached - true if prepared statement will be cached.
Returns:
instance of PreparedStatement corresponding to the specified SQL statement.
Throws:
java.sql.SQLException - if something went wrong.
See Also:
Connection.prepareStatement(java.lang.String, int, int)

prepareStatement

org.firebirdsql.pool.XCachablePreparedStatement prepareStatement(XPreparedStatementModel key,
                                                                 boolean cached)
                                                                 throws java.sql.SQLException
Deprecated. 
Prepare specified SQL statement. This method should call Connection.prepareStatement(String) method on physical JDBC connection.

Parameters:
key - instance of XPreparedStatementModel containing all needed information to prepare a statement.
cached - true if prepared statement will be cached.
Returns:
instance of PreparedStatement corresponding to the specified SQL statement.
Throws:
java.sql.SQLException - if something went wrong.
See Also:
Connection.prepareStatement(java.lang.String, int, int, int)

statementClosed

void statementClosed(java.lang.String statement,
                     java.lang.Object proxy)
                     throws java.sql.SQLException
Deprecated. 

Notify about statement close.

Parameters:
statement - SQL statement of an object that is being closed.
proxy - proxy on which Statement.close() method was called.
Throws:
java.sql.SQLException - if something went wrong.

statementClosed

void statementClosed(XPreparedStatementModel key,
                     java.lang.Object proxy)
                     throws java.sql.SQLException
Deprecated. 
Notify about statement close.

Parameters:
key - Key of the SQL statement that was closed.
proxy - proxy on which Statement.close() method was called.
Throws:
java.sql.SQLException - if something went wrong.


Copyright © 2001-2019 Jaybird (Firebird JDBC/JCA) team. All rights reserved.