org.tranql.connector
Class AllExceptionsAreFatalSorter
java.lang.Object
org.tranql.connector.AllExceptionsAreFatalSorter
- All Implemented Interfaces:
- ExceptionSorter
public class AllExceptionsAreFatalSorter
- extends Object
- implements ExceptionSorter
Implementation of a generic @{link ExceptionSorter} that indicates that
all Exceptions are fatal.
- Version:
- $Revision: 805 $ $Date: 2010-11-12 00:06:35 +0100 (Fri, 12 Nov 2010) $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AllExceptionsAreFatalSorter
public AllExceptionsAreFatalSorter()
isExceptionFatal
public boolean isExceptionFatal(Exception e)
- Always returns true.
- Specified by:
isExceptionFatal
in interface ExceptionSorter
- Parameters:
e
- the Exception to inspect
- Returns:
- true indicating all Exceptions are fatal
rollbackOnFatalException
public boolean rollbackOnFatalException()
- we can't tell if the connection is valid but we will close it.... rollback so nothing is accidentally committed
- Specified by:
rollbackOnFatalException
in interface ExceptionSorter
- Returns:
- true
Copyright © 2004-2012 Tranql project committers. All Rights Reserved.