Announcement Announcement Module
Collapse
No announcement yet.
JdbcTemplate .setQueryTimeout .seconds or milliseconds Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • JdbcTemplate .setQueryTimeout .seconds or milliseconds

    Hi ,



    "http://static.springsource.org/autorepo/docs/spring/3.2.0.M1/api/org/springframework/jdbc/core/JdbcTemplate.html#setQueryTimeout(int)"

    Is this seconds or milliseconds?

    Regards

  • #2
    Digging into the code in JdbcTemplate, the query timeout value is used in the protected method "applyStatementSettings()". There, "org.springframework.jdbc.datasource.DataSourceUti ls.applyTimeout()" is called. From there, "java.sql.Statement.setQueryTimeout(int seconds)" is called.

    So, apparently, it is "seconds".

    Comment


    • #3
      Originally posted by pfurbacher View Post
      Digging into the code in JdbcTemplate, the query timeout value is used in the protected method "applyStatementSettings()". There, "org.springframework.jdbc.datasource.DataSourceUti ls.applyTimeout()" is called. From there, "java.sql.Statement.setQueryTimeout(int seconds)" is called.

      So, apparently, it is "seconds".

      Thanks pfurbacher!!!

      Comment

      Working...
      X