All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.chengyuxing.sql.plugins.QueryTimeoutHandler Maven / Gradle / Ivy

Go to download

Light wrapper of JDBC, support ddl, dml, query, plsql/procedure/function, transaction and manage sql file.

There is a newer version: 9.0.2
Show newest version
package com.github.chengyuxing.sql.plugins;

import org.jetbrains.annotations.Range;

import java.sql.Statement;
import java.util.Map;

/**
 * Jdbc execute sql timeout({@link Statement#setQueryTimeout(int)}) handler.
 */
@FunctionalInterface
public interface QueryTimeoutHandler {
    /**
     * Do handle sql execute timeout.
     *
     * @param sql  sql
     * @param args args
     * @return timeout (seconds)
     */
    @Range(from = 0, to = Integer.MAX_VALUE)
    int handle(String sql, Map args);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy