Interface SQLAccess

  • All Known Implementing Classes:
    MySQLAccess, VirtuosoAccess

    public interface SQLAccess
    A 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 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