org.tranql.connector
Class NoExceptionsAreFatalSorter

java.lang.Object
  extended by org.tranql.connector.NoExceptionsAreFatalSorter
All Implemented Interfaces:
ExceptionSorter

public class NoExceptionsAreFatalSorter
extends Object
implements ExceptionSorter

Implementation of a generic @{link ExceptionSorter} that indicates that no Exceptions are fatal. USE THIS ONLY FOR IN-VM DATABASES! or you may be sorry...

Version:
$Revision: 805 $ $Date: 2010-11-12 00:06:35 +0100 (Fri, 12 Nov 2010) $

Constructor Summary
NoExceptionsAreFatalSorter()
           
 
Method Summary
 boolean isExceptionFatal(Exception e)
          Always returns false.
 boolean rollbackOnFatalException()
          never try to rollback....
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoExceptionsAreFatalSorter

public NoExceptionsAreFatalSorter()
Method Detail

isExceptionFatal

public boolean isExceptionFatal(Exception e)
Always returns false.

Specified by:
isExceptionFatal in interface ExceptionSorter
Parameters:
e - the Exception to inspect
Returns:
false indicating no Exceptions are fatal

rollbackOnFatalException

public boolean rollbackOnFatalException()
never try to rollback.... we assume the connection is always still valid

Specified by:
rollbackOnFatalException in interface ExceptionSorter
Returns:
false


Copyright © 2004-2012 Tranql project committers. All Rights Reserved.