/** * Disconnect from the datasource. */ public void disconnect(AbstractSession session) throws DatabaseException { session.log(SessionLog.CONFIG, SessionLog.CONNECTION, "disconnect", (Object[])null, this); if (this.datasourceConnection == null) { return; } session.incrementProfile(SessionProfiler.TlDisconnects); session.startOperationProfile(SessionProfiler.CONNECT); releaseCustomizer(); closeDatasourceConnection(); this.datasourceConnection = null; this.isInTransaction = true; session.endOperationProfile(SessionProfiler.CONNECT); }
/** * Disconnect from the datasource. */ public void disconnect(AbstractSession session) throws DatabaseException { session.log(SessionLog.CONFIG, SessionLog.CONNECTION, "disconnect", (Object[])null, this); if (this.datasourceConnection == null) { return; } session.incrementProfile(SessionProfiler.Disconnects); session.startOperationProfile(SessionProfiler.ConnectionManagement); try { releaseCustomizer(); closeDatasourceConnection(); this.datasourceConnection = null; this.isInTransaction = true; } finally { session.endOperationProfile(SessionProfiler.ConnectionManagement); } }
/** * Disconnect from the datasource. */ public void disconnect(AbstractSession session) throws DatabaseException { session.log(SessionLog.CONFIG, SessionLog.CONNECTION, "disconnect", (Object[])null, this); if (this.datasourceConnection == null) { return; } session.incrementProfile(SessionProfiler.Disconnects); session.startOperationProfile(SessionProfiler.ConnectionManagement); try { releaseCustomizer(); closeDatasourceConnection(); this.datasourceConnection = null; this.isInTransaction = true; } finally { session.endOperationProfile(SessionProfiler.ConnectionManagement); } }