org.tranql.connector.jdbc
Class ConfigurableSQLStateExceptionSorter
java.lang.Object
org.tranql.connector.jdbc.ConfigurableSQLStateExceptionSorter
- All Implemented Interfaces:
- ExceptionSorter
- Direct Known Subclasses:
- KnownSQLStateExceptionSorter
public class ConfigurableSQLStateExceptionSorter
- extends Object
- implements ExceptionSorter
- Version:
- $Rev: 800 $ $Date: 2010-11-02 21:14:25 +0100 (Tue, 02 Nov 2010) $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigurableSQLStateExceptionSorter
public ConfigurableSQLStateExceptionSorter(Collection allowed)
isExceptionFatal
public boolean isExceptionFatal(Exception e)
- Description copied from interface:
ExceptionSorter
- Determine if an Exception is fatal implying that the underlying connection
is no longer usable.
- Specified by:
isExceptionFatal
in interface ExceptionSorter
- Parameters:
e
- the Exception to inspect
- Returns:
- true if the Exception implies the connection should no longer be used
checkSQLState
protected boolean checkSQLState(String sqlState)
rollbackOnFatalException
public boolean rollbackOnFatalException()
- Description copied from interface:
ExceptionSorter
- 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.
- Specified by:
rollbackOnFatalException
in interface ExceptionSorter
- Returns:
Copyright © 2004-2012 Tranql project committers. All Rights Reserved.