Package de.xima.fc.db
Class DBAccessPoolManager
- java.lang.Object
-
- de.xima.fc.db.DBAccessPoolManager
-
public final class DBAccessPoolManager extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidcloseDataSource(DatenbankZugriff dbAccess)static ConnectiongetConnection(DatenbankZugriff dbAccess)static DataSourcegetDataSource(DatenbankZugriff dbAccess)static StringsearchDriverClass(String jdbcUrl)Deprecated.The driver is determined automatically by the JDBC URLstatic voidshutdownAll()Deprecated.Management of connections is handled by theDataSourceManagerand its lifecycle.static BooleantestConnection(DatenbankZugriff dbZugriff)
-
-
-
Method Detail
-
closeDataSource
public static void closeDataSource(DatenbankZugriff dbAccess)
-
getConnection
public static Connection getConnection(DatenbankZugriff dbAccess) throws SQLException, FcPersistenceException
- Throws:
SQLExceptionFcPersistenceException
-
getDataSource
public static DataSource getDataSource(DatenbankZugriff dbAccess) throws FcPersistenceException
- Throws:
FcPersistenceException
-
searchDriverClass
@Deprecated public static String searchDriverClass(String jdbcUrl) throws SQLException
Deprecated.The driver is determined automatically by the JDBC URLSearches for the driver class name that can handle the given JDBC URL.- Parameters:
jdbcUrl- the JDBC URL to search the driver for- Returns:
- the driver class name if found, otherwise null
- Throws:
SQLException- if no suitable driver is found or an error occurs while searching
-
shutdownAll
@Deprecated public static void shutdownAll()
Deprecated.Management of connections is handled by theDataSourceManagerand its lifecycle.Shuts down all connections and entity manager factories, including the system connection. This method is deprecated and will be removed in future versions.
-
testConnection
public static Boolean testConnection(DatenbankZugriff dbZugriff) throws SQLException
- Throws:
SQLException
-
-