Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Firebird Open Source J2ee connector - jdbc driver
   *
   * Distributable under LGPL license.
   * You may obtain a copy of the License at http://www.gnu.org/copyleft/lgpl.html
   *
   * This program is distributed in the hope that it will be useful,
   * but WITHOUT ANY WARRANTY; without even the implied warranty of
   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * LGPL License for more details.
  *
  * This file was created by members of the firebird development team.
  * All individual contributions remain the Copyright (C) of those
  * individuals.  Contributors to this file are either listed here or
  * can be obtained from a CVS history command.
  *
  * All rights reserved.
  */
 package org.firebirdsql.pool;
 
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(s):
Roman Rokytskyy
 
 public interface XStatementManager {
    
    
Prepare specified SQL statement. This method should call java.sql.Connection.prepareStatement(java.lang.String) method on physical JDBC connection.

Deprecated:
use prepareStatement(org.firebirdsql.pool.XPreparedStatementModel,boolean) intead.
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 java.sql.PreparedStatement corresponding to the specified SQL statement.
Throws:
java.sql.SQLException if something went wrong.
See also:
java.sql.Connection.prepareStatement(java.lang.String,int,int)
 
     XCachablePreparedStatement prepareStatement(String sqlint resultSetType
         int resultSetConcurrencyboolean cachedthrows SQLException;
    
    
Prepare specified SQL statement. This method should call java.sql.Connection.prepareStatement(java.lang.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 java.sql.PreparedStatement corresponding to the specified SQL statement.
Throws:
java.sql.SQLException if something went wrong.
See also:
java.sql.Connection.prepareStatement(java.lang.String,int,int,int)
 
     throws SQLException;
    
    
Notify about statement close.

Deprecated:
Parameters:
statement SQL statement of an object that is being closed.
proxy proxy on which java.sql.Statement.close() method was called.
Throws:
java.sql.SQLException if something went wrong.
 
     void statementClosed(String statementObject proxythrows SQLException;
    
    
Notify about statement close.

Parameters:
key Key of the SQL statement that was closed.
proxy proxy on which java.sql.Statement.close() method was called.
Throws:
java.sql.SQLException if something went wrong.
 
    void statementClosed(XPreparedStatementModel keyObject proxythrows SQLException;
New to GrepCode? Check out our FAQ X