/** * Validates a {@link CacheConnection} object. * @param cc connection to validate * @return true if cc is valid, false otherwise */ @Override protected boolean isValid(final CacheConnection cc) { if (cc == null) return false; if (validator == null) return true; try { boolean valid = validator.isValid(cc.getRawConnection()); if (!valid) firePoolEvent(ConnectionPoolEvent.Type.VALIDATION_ERROR); return valid; } catch (SQLException sqlx) { log_debug("SQLException during validation", sqlx); return false; } }