public abstract int getQueryTimeout () throws SQLException

Retrieves the number of seconds the driver will wait for a Statement object to execute. If the limit is exceeded, a SQLException is thrown.

Returns:  the current query timeout limit in seconds; zero means there is no limit

Exceptions:
SQLException    if a database access error occurs or this method is called on a closed Statement

See also:
setQueryTimeout