如何强行停止交易 [英] how to forcibly stop a transaction

查看:88
本文介绍了如何强行停止交易的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个具有Java Bean和API的应用程序,并且通过Java API的数据库过程被调用.

现在,我有一个特定的场景,在该场景中,用户可以根据特定条件进行搜索.
我必须提供取消"按钮,以便在单击搜索按钮后,如果用户单击取消",则应该在那里停止搜索API,并且用户不应获得搜索输出.

我不知道该怎么办.

请帮忙.
预先表示感谢.

Hi,

I have an application which has java beans and API''s and through java API''s database procedures are called.

Now I have this specific scenario in which user is able to search on specific criteria.
I have to provide "Cancel" button so that after clicking on search button if user clicks on cancel then search API should be stopped there and the user should not get the search output.

I have no idea how to go about it.

Please help.
Thanks in advance.

推荐答案

大多数应用程序将使用某种无模式对话框或带有可检查取消按钮的自定义进度对话框.在此处 [此处 [ ^ ],以获取有关Java实现的一些信息.
Most applications would use some sort of modeless dialog or custom progress dialog with a checkable cancel button. Take a look here[^] and here[^] for some information on Java''s implementations.


这篇关于如何强行停止交易的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆