Class StatementUtil


  • public class StatementUtil
    extends Object
    Utility for Statement.
    Since:
    3.4.0
    Author:
    Kazuki Shimizu
    • 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 statement
        queryTimeout - a query timeout
        transactionTimeout - a transaction timeout
        Throws:
        SQLException - if a database access error occurs, this method is called on a closed Statement