Display alert that says "record exists" and commit not allowed.

Hello, my case is the following:

I wrote a code to

protected void doDML (int operation, e TransactionEvent)

{

/ * Some code here * /.

}

if(retvalue == 1)

{

/ * See the alert saying file already exists! »

}

else {}

super.doDML (operation, e);

}

My question is how to implement this alert so that users know that this recording did not commit in the database. Thank you.

throw new local ("I'm Ann exception");

Timo

Tags: Java

Similar Questions

Maybe you are looking for

  • Satellite Pro P200-1JV - how to reset to factory settings?

    Hello I'm trying to reset my Satellite Pro P200-1JV to factory settings. I tried pressing reset and turn on, also tried pressing F8 and turn on and no system recovery doesn't happen as I was told that it should. I put everything in place of discs wit

  • configuration file protection

    We install our application in HOME page: = C:/program files /. and install our setup.ini file in the same folder. The problem is in Windows 7, the protections all the files in the HOUSE are on read-only. Then the engineer in charge of the customer se

  • Problem installing HP Photosmart C4780 ink cartridge

    I just installed new ink cartridge in my HP Photosmart C4780. I ran the test cleaning and alignment and my print is fine except that everything is obscured. What I forget? Thank you very much!

  • Controls EVENT_SORT and tree

    Hello I have a question about how sorting works with tree controls.  Basically, it seems that when this event is fired in the callback, the elements in the tree of have not yet been sorted (as seen by calling GetValueFromIndex (...) on the elements i

  • Shut down the computer to save all the images

    How can I stop my computer from downloading I looked at pictures of facebook. My computer won't let me even remove many of them. I use google chrome as my browser and windows XP.