/** * INTERNAL */ int getQueryTimeout() throws SQLException { try { checkClosed(); int queryTimeout = session.getQueryTimeout(); if (queryTimeout != 0) { // round to the next second, otherwise 999 millis would // return 0 seconds queryTimeout = (queryTimeout + 999) / 1000; } return queryTimeout; } catch (Exception e) { throw logAndConvert(e); } }