Package com.compomics.util.interfaces
Interface Connectable
public interface Connectable
This interface describes the behaviour for classes that can accept an
incoming DB connection.
- Author:
- Lennart Martens
-
Method Summary
Modifier and Type Method Description void
passConnection(Connection aConn, String aDBName)
This method will be called by the class actually making the connection.
-
Method Details
-
passConnection
This method will be called by the class actually making the connection. It will pass the connection and an identifier String for that connection (typically the name of the database connected to).- Parameters:
aConn
- Connection with the DB connection.aDBName
- String with an identifier for the connection, typically the name of the DB connected to.
-