Class IdmLightSimpleConnectionProvider
java.lang.Object
org.opendaylight.aaa.datastore.h2.IdmLightSimpleConnectionProvider
- All Implemented Interfaces:
ConnectionProvider
Simple Provider of JDBC Connections, based on an
IdmLightConfig and DriverManager.- Author:
- Michael Vorburger
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
IdmLightSimpleConnectionProvider
-
-
Method Details
-
getConnection
Get an SQLConnection.- Specified by:
getConnectionin interfaceConnectionProvider- Returns:
- a connection from this Factory; it may be a brand new one obtained from the JDBC Driver, or an existing open one, if it has not previously been closed
- Throws:
StoreException- if no Connection could be obtained- Implementation Requirements:
- This implementation always opens a new connection.
FIXME: Integrate a
JdbcConnectionPool, asconfigis guaranteed to be constant. This is needlessly heavy, as we are locating the driver.
-