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(java.sql.Connection aConn, java.util.HashMap aHMKeys)
          This method allows the implemented object to retrieve its state from the persistent store.
 

Method Detail

retrieve

void retrieve(java.sql.Connection aConn,
              java.util.HashMap aHMKeys)
              throws java.sql.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:
java.sql.SQLException - When the retrieve fails (e.g.: PK not found).


Copyright © 2012. All Rights Reserved.