com.atomikos.jdbc
Class JdbcConnectionProxyHelper

java.lang.Object
  extended by com.atomikos.jdbc.JdbcConnectionProxyHelper

public class JdbcConnectionProxyHelper
extends Object


Constructor Summary
JdbcConnectionProxyHelper()
           
 
Method Summary
static void convertProxyError(Throwable ex, String msg)
          Converts a driver error (generic exception) into an appropriate SQLException or RuntimeException.
static void setIsolationLevel(Connection connection, int defaultIsolationLevel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcConnectionProxyHelper

public JdbcConnectionProxyHelper()
Method Detail

convertProxyError

public static void convertProxyError(Throwable ex,
                                     String msg)
                              throws SQLException
Converts a driver error (generic exception) into an appropriate SQLException or RuntimeException.

Parameters:
ex - The driver exception.
msg - The message to use in the logs and conversion.
Throws:
SQLException

setIsolationLevel

public static void setIsolationLevel(Connection connection,
                                     int defaultIsolationLevel)
                              throws CreateConnectionException
Throws:
CreateConnectionException


Copyright © 2011. All Rights Reserved.