db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lance J. Andersen" <Lance.Ander...@Sun.COM>
Subject Statement.setQueryTimeout
Date Wed, 22 Jun 2005 21:05:56 GMT
fyi,  I am making the following changes based on an JDBC EG discussion.  
This will be in the next update of the JDBC 4 EDR javadocs.

Note the wording might slightly change but the 'must' requirement will not.



void setQueryTimeout(int seconds)
                     throws SQLException <http://jse.east.sun.com/%7Elancea/javadoc-spec/java/sql/SQLException.html>

    Sets the number of seconds the driver will wait for a Statement
    object to execute to the given number of seconds. If the limit is
    exceeded, an SQLException is thrown.  A JDBC driver must apply this
    limit to the execute, executeQuery and executeUpdate methods.   
    JDBC driver implementations  may  also apply this limit to ResultSet
    methods (consult your driver vendor documentation for details).

        seconds - the new query timeout limit in seconds; zero means
        there is no limit 
        - if a database access error occurs or the condition seconds >=
        0 is not satisfied
    See Also:

View raw message