org.tranql.connector
Interface ExceptionSorter

All Known Implementing Classes:
AllExceptionsAreFatalSorter, ConfigurableSQLStateExceptionSorter, KnownSQLStateExceptionSorter, NoExceptionsAreFatalSorter

public interface ExceptionSorter

Interface that can be used to classify an Exception raised on a physical connection.

Version:
$Revision: 652 $ $Date: 2009-09-15 21:04:10 +0200 (Tue, 15 Sep 2009) $

Method Summary
 boolean isExceptionFatal(Exception e)
          Determine if an Exception is fatal implying that the underlying connection is no longer usable.
 boolean rollbackOnFatalException()
          Whether to try to rollback work on the connection if a "fatal" error is encountered.
 

Method Detail

isExceptionFatal

boolean isExceptionFatal(Exception e)
Determine if an Exception is fatal implying that the underlying connection is no longer usable.

Parameters:
e - the Exception to inspect
Returns:
true if the Exception implies the connection should no longer be used

rollbackOnFatalException

boolean rollbackOnFatalException()
Whether to try to rollback work on the connection if a "fatal" error is encountered. This should only be true if we can't actually determine if the connection is broken, since if it is broken the rollback won't succeed.

Returns:


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