public final class StatementCacheInteractor extends Object
This class was introduced to share code between the pre-JDBC 4 and the JDBC 4+ versions of the JDBC classes.
The pattern for the prepareX methods is:
| Modifier and Type | Method and Description |
|---|---|
void |
closeOpenLogicalStatements()
Closes all open logical statements created by this cache interactor.
|
void |
markClosed(com.pivotal.gemfirexd.internal.client.am.LogicalStatementEntity logicalStmt)
Designates the specified logical statement as closed.
|
CallableStatement |
prepareCall(String sql) |
CallableStatement |
prepareCall(String sql,
int resultSetType,
int resultSetConcurrency) |
CallableStatement |
prepareCall(String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability) |
PreparedStatement |
prepareStatement(String sql) |
PreparedStatement |
prepareStatement(String sql,
int autoGeneratedKeys) |
PreparedStatement |
prepareStatement(String sql,
int resultSetType,
int resultSetConcurrency) |
PreparedStatement |
prepareStatement(String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability) |
public PreparedStatement prepareStatement(String sql) throws SQLException
SQLExceptionConnection.prepareStatement(String)public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
SQLExceptionConnection.prepareStatement(String,int,int)public PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
SQLExceptionConnection.prepareStatement(String,int,int,int)public PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException
SQLExceptionConnection.prepareStatement(String,int)public CallableStatement prepareCall(String sql) throws SQLException
SQLExceptionConnection.prepareCall(String)public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
SQLExceptionConnection.prepareCall(String,int,int)public CallableStatement prepareCall(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
SQLExceptionConnection.prepareCall(String,int,int,int)public void closeOpenLogicalStatements()
throws SQLException
A cache interactor is bound to a single (caching) logical connection.
SQLException - if closing an open logical connection failspublic void markClosed(com.pivotal.gemfirexd.internal.client.am.LogicalStatementEntity logicalStmt)
logicalStmt - the logical statement being closedCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.