org.tranql.connector
Class AllExceptionsAreFatalSorter

java.lang.Object
  extended by 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) $

Constructor Summary
AllExceptionsAreFatalSorter()
           
 
Method Summary
 boolean isExceptionFatal(Exception e)
          Always returns true.
 boolean rollbackOnFatalException()
          we can't tell if the connection is valid but we will close it....
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllExceptionsAreFatalSorter

public AllExceptionsAreFatalSorter()
Method Detail

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.