Package 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
Modifier and Type Method Description int
delete(Connection aConn)
This method will physically delete the implemented object's data from the persistent store.
-
Method Details
-
delete
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).
-