The java.sql.Statement interface provides a cancel method that allows you to interrupt a database call from another thread.
java.sql.Statement
However, I cannot find a similar possibility if I use the Spring StoredProcedure class to call a stored procedure.
Is there a way to achieve the undo / interrupt function if I use Spring StoredProcedure?
I am not sure about the standard approach, because so far I have never come across this scenario :(.
As an option, you can extend the StoredProcedure class and you can write your own cancel() implementation there.
cancel()
Source: https://habr.com/ru/post/1496775/More articles:Image cannot be displayed because it contains errors [Image generator] - php.class == getClass () cannot validate - javaLess CSS compilation order - cssA quick way to check if an odd number of bits is set? - algorithmLogarithmic and other for a loop converted to a summary notation - javaWhy do we need to define the _GNU_SOURCE macro before using the POLLRDHUP event flag in the poll () function? - cCreating a TimePickerDialog with a custom Android style - androidIndividual date selection with months and years - androidHow to initialize a static member object? - c ++angularjs ng class with various conditions - javascriptAll Articles