com.compomics.util.db.interfaces
Interface Updateable


public interface Updateable

This interface indicates that the implementing class can be updated in permanent storage.

Author:
Lennart Martens

Method Summary
 int update(Connection aConn)
          This method allows the implemented object to store its altered state in the persistent store.
 

Method Detail

update

int update(Connection aConn)
           throws SQLException
This method allows the implemented object to store its altered state in 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.
Returns:
int with the count of the affected rows.
Throws:
SQLException - When the save fails (e.g.: Connection gone stale).


Copyright © 2013. All Rights Reserved.