Modifier and Type | Method and Description |
---|---|
static void |
applyTransactionTimeout(Statement statement,
Integer queryTimeout,
Integer transactionTimeout)
Apply a transaction timeout.
|
public static void applyTransactionTimeout(Statement statement, Integer queryTimeout, Integer transactionTimeout) throws SQLException
Update a query timeout to apply a transaction timeout.
statement
- a target statementqueryTimeout
- a query timeouttransactionTimeout
- a transaction timeoutSQLException
- if a database access error occurs, this method is called on a closed Statement
Copyright © 2009–2021 MyBatis.org. All rights reserved.