Hi,

looking at the FAQ it says that transactions are my own business when using empire-db. Fair enough.

Any exceptions thrown during db operations within a transaction should result in a rollback, but when I look at DBrecord.update(), it does not throw any exceptions.

Despite the fact that Martin Fowler proclaims "the debate is over" (cited here: http://theknowledge.me.uk/mywiki/concepts/exceptions/The%20Need%20to%20Document%20Runtime%20Exceptions.html) and wants us to only use unchecked exceptions, I am now left to explore the source code to figure out into which unchecked exception the inevitable SQLException is converted during DBrecord.update(). (It is StatementFailedException.)

And I need to know, because I must catch it to perform the rollback --- at least this is what I reckon.

Am I right or am I wrong?

Harald.

Reply via email to