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
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * 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;
This interface defines a cachable prepared statement. It should be used internally only and therefore has package visibility.

Roman Rokytskyy
interface XCachablePreparedStatement extends PreparedStatement {
Set associated connection.

connection connection that will be associated or null to clean the association.
    void setConnection(Connection connectionthrows SQLException;

Force java.sql.Statement.close() method on a cached prepared statement. This method deallocates prepared statement in JDBC driver. Implementation should simply call java.sql.Statement.close() on physical prepared statement.

java.sql.SQLException if java.sql.Statement.close() threw this exception.
    void forceClose() throws SQLException;
Get original prepared statement being cached. This method should be used only to test correctness by comparing wrapped instances. Should not be used for any other purposes.

wrapped prepared statement.
    PreparedStatement getOriginal();
Check if this statement is cached or not. Statement might not be cached if there is a maximum number of cached statements specified for a pool and this limit is reached.

true if statement is cached.
    boolean isCached();
New to GrepCode? Check out our FAQ X