com.compomics.util.db.interfaces
Interface Deleteable
public interface Deleteable
This interface indicates that the implementing class can be deleted from permanent storage.
- Author:
- Lennart Martens
Method Summary |
int |
delete(Connection aConn)
This method will physically delete the implemented object's data from the
persistent store. |
delete
int delete(Connection aConn)
throws SQLException
- This method will physically delete the implemented object's data 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.
- Returns:
- int with the number of rows affected.
- Throws:
SQLException
- When the save fails (e.g.: PK not found).
Copyright © 2011. All Rights Reserved.