Class StatementUtil
java.lang.Object
org.apache.ibatis.executor.statement.StatementUtil
Utility for
Statement
.- Since:
- 3.4.0
- Author:
- Kazuki Shimizu
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
applyTransactionTimeout
(Statement statement, Integer queryTimeout, Integer transactionTimeout) Apply a transaction timeout.
-
Method Details
-
applyTransactionTimeout
public static void applyTransactionTimeout(Statement statement, Integer queryTimeout, Integer transactionTimeout) throws SQLException Apply a transaction timeout.Update a query timeout to apply a transaction timeout.
- Parameters:
statement
- a target statementqueryTimeout
- a query timeouttransactionTimeout
- a transaction timeout- Throws:
SQLException
- if a database access error occurs, this method is called on a closedStatement
-