Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/316.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 使用Spring时取消存储过程调用_Java_Spring_Jdbc - Fatal编程技术网

Java 使用Spring时取消存储过程调用

Java 使用Spring时取消存储过程调用,java,spring,jdbc,Java,Spring,Jdbc,java.sql.Statement接口提供了一种方法,允许从另一个线程中止数据库调用 但是,如果使用Spring类调用存储过程,我找不到类似的选项 如果我使用Spring的StoredProcess,有没有办法实现取消/中止功能?我不确定传统的方法,因为到目前为止我从未遇到过这种情况:( 作为一个选项,您可以扩展StoredProcedure类,并在那里编写自己的cancel()实现。检查jdbctemplate.call()和callablestatementcallback?

java.sql.Statement
接口提供了一种方法,允许从另一个线程中止数据库调用

但是,如果使用Spring类调用存储过程,我找不到类似的选项


如果我使用Spring的StoredProcess,有没有办法实现取消/中止功能?

我不确定传统的方法,因为到目前为止我从未遇到过这种情况:(

作为一个选项,您可以扩展StoredProcedure类,并在那里编写自己的
cancel()
实现。

检查jdbctemplate.call()和callablestatementcallback?