Refactors DBConnector method name and to receive a DSLContext for JOOQ.
package eu.fasten.core.plugins;
-import java.sql.SQLException;
+import org.jooq.DSLContext;
/**
* A plug-in that needs to get access to a database should implement this interface.
@@ -8,11 +8,9 @@ import java.sql.SQLException;
public interface DBConnector {
/**
- * This method should provide DB credentials to the underlying DB for getting a connection.
- * @param DBUrl The URL of a database
- * @param username a username for the database
- * @param password a password for the username
+ * This methods sets a DB connection for plug-ins.
+ * @param dslContext A DSL context for JOOQ to query the database.
*/
- public void getDBAccess(String DBUrl, String username, String password) throws SQLException;
+ public void setDBConnection(DSLContext dslContext);
}
