getQueryTimeout()

Syntax:

int getQueryTimeout()
                    throws SQLException

Description:

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

Throws:

SQLException - if a database access error occurs or the statement has been closed

Reference:

For more information, reference JDBC documentation for: Statement.getQueryTimeout()