Cancel a stored procedure call when using Spring

The java.sql.Statement interface provides a cancel method that allows you to interrupt a database call from another thread.

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?

+4
source share
1 answer

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.

0
source

Source: https://habr.com/ru/post/1496775/


All Articles