/** * 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); }
/** * 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 */ protected void reconnect(AbstractSession session) { clearStatementCache(session); super.reconnect(session); }
/** * PUBLIC: * Reconnect to the database. This can be used if the connection was disconnected or timedout. * This ensures that the security is checked as it is public. * Because the messages can take a long time to build, * pre-check whether messages should be logged. */ public void reestablishConnection(AbstractSession session) throws DatabaseException { if (session.shouldLog(SessionLog.CONFIG, SessionLog.CONNECTION)) {// Avoid printing if no logging required. Object[] args = { getLogin() }; session.log(SessionLog.CONFIG, SessionLog.CONNECTION, "reconnecting", args, this); } reestablishCustomizer(); reconnect(session); this.isInTransaction = false; this.isValid = true; if (session.hasEventManager()) { session.getEventManager().postConnect(this); } }
/** * PUBLIC: * Reconnect to the database. This can be used if the connection was disconnected or timedout. * This ensures that the security is checked as it is public. * Because the messages can take a long time to build, * pre-check whether messages should be logged. */ public void reestablishConnection(AbstractSession session) throws DatabaseException { if (session.shouldLog(SessionLog.CONFIG, SessionLog.CONNECTION)) {// Avoid printing if no logging required. Object[] args = { getLogin() }; session.log(SessionLog.CONFIG, SessionLog.CONNECTION, "reconnecting", args, this); } reestablishCustomizer(); reconnect(session); this.isInTransaction = false; this.isValid = true; if (session.hasEventManager()) { session.getEventManager().postConnect(this); } }
/** * PUBLIC: * Reconnect to the database. This can be used if the connection was disconnected or timedout. * This ensures that the security is checked as it is public. * Because the messages can take a long time to build, * pre-check whether messages should be logged. */ public void reestablishConnection(AbstractSession session) throws DatabaseException { if (session.shouldLog(SessionLog.CONFIG, SessionLog.CONNECTION)) {// Avoid printing if no logging required. Object[] args = { getLogin() }; session.log(SessionLog.CONFIG, SessionLog.CONNECTION, "reconnecting", args, this); } reestablishCustomizer(); reconnect(session); this.isInTransaction = false; this.isValid = true; if (session.hasEventManager()) { session.getEventManager().postConnect(this); } }