/** * Close the accessor's connection. * This is used only for external connection pooling * when it is intended for the connection to be reconnected in the future. */ public void closeConnection() { // Unfortunately do not have the session to pass, fortunately it is not used. clearStatementCache(null); super.closeConnection(); }
/** * Disconnect from the datasource. * Added for bug 3046465 to ensure the statement cache is cleared. */ @Override public void disconnect(AbstractSession session) throws DatabaseException { clearStatementCache(session); super.disconnect(session); }
/** * Close the accessor's connection. * This is used only for external connection pooling * when it is intended for the connection to be reconnected in the future. */ @Override public void closeConnection() { // Unfortunately do not have the session to pass, fortunately it is not used. clearStatementCache(null); super.closeConnection(); }
/** * Close the accessor's connection. * This is used only for external connection pooling * when it is intended for the connection to be reconnected in the future. */ @Override public void closeConnection() { // Unfortunately do not have the session to pass, fortunately it is not used. clearStatementCache(null); super.closeConnection(); }
/** * Attempt to save some of the cost associated with getting a fresh connection. * Assume the DatabaseDriver has been cached, if appropriate. * Note: Connections that are participating in transactions will not be refreshed.^M * Added for bug 3046465 to ensure the statement cache is cleared */ protected void reconnect(AbstractSession session) { clearStatementCache(session); super.reconnect(session); }
/** * Attempt to save some of the cost associated with getting a fresh connection. * Assume the DatabaseDriver has been cached, if appropriate. * Note: Connections that are participating in transactions will not be refreshed.^M * Added for bug 3046465 to ensure the statement cache is cleared */ @Override protected void reconnect(AbstractSession session) { clearStatementCache(session); super.reconnect(session); }
/** * Disconnect from the datasource. * Added for bug 3046465 to ensure the statement cache is cleared. */ @Override public void disconnect(AbstractSession session) throws DatabaseException { clearStatementCache(session); super.disconnect(session); }
/** * Disconnect from the datasource. * Added for bug 3046465 to ensure the statement cache is cleared */ public void disconnect(AbstractSession session) throws DatabaseException { clearStatementCache(session); super.disconnect(session); }
/** * Attempt to save some of the cost associated with getting a fresh connection. * Assume the DatabaseDriver has been cached, if appropriate. * Note: Connections that are participating in transactions will not be refreshed.^M * Added for bug 3046465 to ensure the statement cache is cleared */ protected void reconnect(AbstractSession session) { clearStatementCache(session); super.reconnect(session); }
/** * Used to clear the statement cache. Only valid if statements are being cached */ public synchronized void clearStatementCache() { if (!(getSession().getDatasourceLogin() instanceof DatabaseLogin)) { return; } ((DatabaseAccessor)getSession().getAccessor()).clearStatementCache(getSession()); ((AbstractSession)session).log(SessionLog.INFO, SessionLog.SERVER, "jmx_mbean_runtime_services_statement_cache_cleared"); }
/** * Used to clear the statement cache. Only valid if statements are being cached */ public synchronized void clearStatementCache() { if (!(getSession().getDatasourceLogin() instanceof DatabaseLogin)) { return; } ((DatabaseAccessor)getSession().getAccessor()).clearStatementCache(getSession()); ((AbstractSession)session).log(SessionLog.INFO, SessionLog.SERVER, "jmx_mbean_runtime_services_statement_cache_cleared"); }
/** * Used to clear the statement cache. Only valid if statements are being cached */ public synchronized void clearStatementCache() { if (!(getSession().getDatasourceLogin() instanceof DatabaseLogin)) { return; } ((DatabaseAccessor)getSession().getAccessor()).clearStatementCache(getSession()); ((AbstractSession)session).log(SessionLog.INFO, SessionLog.SERVER, "jmx_mbean_runtime_services_statement_cache_cleared"); }
/** * INTERNAL: * Clears connection's both implicit and explicit caches. */ protected void clearConnectionCache() { this.getSession().getServerPlatform().clearStatementCache(this.getAccessor().getConnection()); ((DatabaseAccessor)this.getAccessor()).clearStatementCache((AbstractSession)this.getSession()); } }
/** * INTERNAL: * Clears connection's both implicit and explicit caches. */ protected void clearConnectionCache() { this.getSession().getServerPlatform().clearStatementCache(this.getAccessor().getConnection()); ((DatabaseAccessor)this.getAccessor()).clearStatementCache((AbstractSession)this.getSession()); } }