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(java.sql.Connection aConn)
This method allows the implemented object to store its altered state in the
persistent store. |
update
int update(java.sql.Connection aConn)
throws java.sql.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:
java.sql.SQLException
- When the save fails (e.g.: Connection gone stale).
Copyright © 2012. All Rights Reserved.