db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henning P. Schmiedehausen" <...@intermeta.de>
Subject Re: cvs commit: db-torque/src/java/org/apache/torque/util BasePeer.java Transaction.java
Date Mon, 04 Aug 2003 09:52:07 GMT
jmcnally@apache.org writes:

>  Modified:    src/java/org/apache/torque/util Tag: TORQUE_3_0_BRANCH
>                        BasePeer.java Transaction.java *
>                        src/java/org/apache/torque/util/BasePeer.java -
>                        replace null Connection checks wrapping
>                        Transaction.rollback with Transaction.safeRollback.
>                        * src/java/org/apache/torque/util/Transaction.java
>                        - rollback method changed to throw TorqueException
>                        instead of NPE when Connection is null.
>                        safeRollback method changed to log null Connection
>                        at debug level, since it is a normal event. Lowered
>                        other exception logging to warn level since
>                        safeRollback should not be called if a failed
>                        rollback is considered a serious error.

Thanks a lot. I like to rollback code much better this way.


Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
hps@intermeta.de        +49 9131 50 654 0   http://www.intermeta.de/

Java, perl, Solaris, Linux, xSP Consulting, Web Services 
freelance consultant -- Jakarta Turbine Development  -- hero for hire

"You are being far too rational for this discussion."  
       --- Scott Robert Ladd in <3F1874B0.6030507@coyotegulch.com>

To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org

View raw message