Package org.bridgedb.mysql
Class MySQLAccess
- java.lang.Object
-
- org.bridgedb.mysql.MySQLAccess
-
-
Constructor Summary
Constructors Constructor Description MySQLAccess(String dbUrl, String username, String password)Instantiate a connection to the database
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectiongetConnection()Retrieve an active connection to the database
-
-
-
Constructor Detail
-
MySQLAccess
public MySQLAccess(String dbUrl, String username, String password) throws BridgeDBException
Instantiate a connection to the database- Throws:
IMSException- If there is a problem connecting to the database.BridgeDBException
-
-
Method Detail
-
getConnection
public Connection getConnection() throws BridgeDBException
Retrieve an active connection to the database- Specified by:
getConnectionin interfaceSQLAccess- Returns:
- database connection
- Throws:
IMSException- if there is a problem establishing a connectionBridgeDBException
-
-