Class StatementUtil
- java.lang.Object
-
- org.apache.ibatis.executor.statement.StatementUtil
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
applyTransactionTimeout(Statement statement, Integer queryTimeout, Integer transactionTimeout)
Apply a transaction timeout.
-
-
-
Method Detail
-
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
-
-