Class DBAccessPoolManager
java.lang.Object
de.xima.fc.db.DBAccessPoolManager
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 voidDeprecated.Management of connections is handled by theDataSourceManagerand its lifecycle.static BooleantestConnection(DatenbankZugriff dbZugriff)
-
Method Details
-
closeDataSource
-
getConnection
public static Connection getConnection(DatenbankZugriff dbAccess) throws SQLException, FcPersistenceException - Throws:
SQLExceptionFcPersistenceException
-
getDataSource
- Throws:
FcPersistenceException
-
searchDriverClass
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.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
- Throws:
SQLException
-