org.culturegraph.mf.sql.util
Class JdbcUtil

java.lang.Object
  extended by org.culturegraph.mf.sql.util.JdbcUtil

public final class JdbcUtil
extends Object

Utility functions for working with JDBC.

Author:
Christoph Böhme

Nested Class Summary
static class JdbcUtil.Bug
          Helper class to manage bugs found in various JDBC drivers in a clear way.
 
Method Summary
static void closeConnection(Connection connection)
           
static Connection getConnection(String datasourceName)
           
static EnumSet<JdbcUtil.Bug> getDriverBugs(Connection connection)
          Returns the bugs exhibited by the driver used by connection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDriverBugs

public static EnumSet<JdbcUtil.Bug> getDriverBugs(Connection connection)
Returns the bugs exhibited by the driver used by connection.

Parameters:
connection -
Returns:

getConnection

public static Connection getConnection(String datasourceName)

closeConnection

public static void closeConnection(Connection connection)


Copyright © 2014. All Rights Reserved.