Package 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
Modifier and Type Method Description int
update(Connection aConn)
This method allows the implemented object to store its altered state in the persistent store.
-
Method Details
-
update
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).
-