/** * The Type 2 JDBC Driver may throw an SQLException when provided a non- * zero timeout if we're connected to Z/OS. The SQLException should be * logged but not thrown. */ @Override public void setQueryTimeout(PreparedStatement stmnt, int timeout) throws SQLException { if (db2ServerType == db2ZOSV8xOrLater) { try { super.setQueryTimeout(stmnt, timeout); } catch (SQLException e) { if (log.isTraceEnabled()) { log.trace(_loc.get("error-setting-query-timeout", timeout, e.getMessage()), e); } } } else { super.setQueryTimeout(stmnt, timeout); } }
/** * The Type 2 JDBC Driver may throw an SQLException when provided a non- * zero timeout if we're connected to Z/OS. The SQLException should be * logged but not thrown. */ @Override public void setQueryTimeout(PreparedStatement stmnt, int timeout) throws SQLException { if (db2ServerType == db2ZOSV8xOrLater) { try { super.setQueryTimeout(stmnt, timeout); } catch (SQLException e) { if (log.isTraceEnabled()) { log.trace(_loc.get("error-setting-query-timeout", timeout, e.getMessage()), e); } } } else { super.setQueryTimeout(stmnt, timeout); } }
/** * The Type 2 JDBC Driver may throw an SQLException when provided a non- * zero timeout if we're connected to Z/OS. The SQLException should be * logged but not thrown. */ @Override public void setQueryTimeout(PreparedStatement stmnt, int timeout) throws SQLException { if (db2ServerType == db2ZOSV8xOrLater) { try { super.setQueryTimeout(stmnt, timeout); } catch (SQLException e) { if (log.isTraceEnabled()) { log.trace(_loc.get("error-setting-query-timeout", timeout, e.getMessage()), e); } } } else { super.setQueryTimeout(stmnt, timeout); } }
/** * The Type 2 JDBC Driver may throw an SQLException when provided a non- * zero timeout if we're connected to Z/OS. The SQLException should be * logged but not thrown. */ @Override public void setQueryTimeout(PreparedStatement stmnt, int timeout) throws SQLException { if (db2ServerType == db2ZOSV8xOrLater) { try { super.setQueryTimeout(stmnt, timeout); } catch (SQLException e) { if (log.isTraceEnabled()) { log.trace(_loc.get("error-setting-query-timeout", timeout, e.getMessage()), e); } } } else { super.setQueryTimeout(stmnt, timeout); } }