I did print the JDBC query timeout which is available at the statement level:
Statement statement=con.createStatement(); System.out.println(statement.getQueryTim