Package com.compomics.util.db.interfaces
Interface Retrievable
public interface Retrievable
This interface indicates that the implementing class can be retrieved from permanent storage.
- Author:
- Lennart Martens
-
Method Summary
Modifier and Type Method Description void
retrieve(Connection aConn, HashMap aHMKeys)
This method allows the implemented object to retrieve its state from the persistent store.
-
Method Details
-
retrieve
This method allows the implemented object to retrieve its state from the persistent store.- Parameters:
aConn
- The Connection on which to execute SQL statements. It should be an open connection and the implementation should refrain from closing it, so the caller can reuse it.aHMKeys
- HashMap with the 'key-value' pairs necessary for the construction of the primary key to be retrieved.- Throws:
SQLException
- When the retrieve fails (e.g.: PK not found).
-