/** * Reset the Query Timeout, Max Rows, Resultset fetch size on the Statement * if the DatabaseCall has values which differ from the default settings. * For Bug 5709179 - reset settings on cached statements */ protected void resetStatementFromCall(Statement statement, DatabaseCall call) throws SQLException { if (call.getQueryTimeout() > 0) { statement.setQueryTimeout(0); } if (call.getMaxRows() > 0) { statement.setMaxRows(0); } if (call.getResultSetFetchSize() > 0) { statement.setFetchSize(0); } }
/** * Reset the Query Timeout, Max Rows, Resultset fetch size on the Statement * if the DatabaseCall has values which differ from the default settings. * For Bug 5709179 - reset settings on cached statements */ protected void resetStatementFromCall(Statement statement, DatabaseCall call) throws SQLException { if (call.getQueryTimeout() > 0) { statement.setQueryTimeout(0); } if (call.getMaxRows() > 0) { statement.setMaxRows(0); } if (call.getResultSetFetchSize() > 0) { statement.setFetchSize(0); } }
/** * Reset the Query Timeout, Max Rows, Resultset fetch size on the Statement * if the DatabaseCall has values which differ from the default settings. * For Bug 5709179 - reset settings on cached statements */ protected void resetStatementFromCall(Statement statement, DatabaseCall call) throws SQLException { if (call.getQueryTimeout() > 0) { statement.setQueryTimeout(0); } if (call.getMaxRows() > 0) { statement.setMaxRows(0); } if (call.getResultSetFetchSize() > 0) { statement.setFetchSize(0); } }