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 |
void |
retrieve(Connection aConn,
HashMap aHMKeys)
This method allows the implemented object to retrieve its state from the persistent
store. |
retrieve
void retrieve(Connection aConn,
HashMap aHMKeys)
throws SQLException
- 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).
Copyright © 2013. All Rights Reserved.