Package org.bridgedb.sql
Interface SQLAccess
-
- All Known Implementing Classes:
MySQLAccess,VirtuosoAccess
public interface SQLAccessA wrapper around the individual SQL DataBase Drivers.Also serves to hide the specific database name, user and password from the rest of the code.
Allows MySQL, Virtuoso and any future required drivers to be used without changing SQL code. Allows test, load, live or any other dataBase to be inserted, again without changing the SQL code.
- Author:
- Christian
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConnectiongetConnection()Allows SQL code to obtain a new Connection without having access to the Database name, user name and password.
-
-
-
Method Detail
-
getConnection
Connection getConnection() throws BridgeDBException
Allows SQL code to obtain a new Connection without having access to the Database name, user name and password.- Returns:
- An open Connection
- Throws:
BridgeDBException- - if something goes wrong when establishing connection
-
-