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(java.sql.Connection aConn)
This method will physically delete the implemented object's data from the
persistent store. |
delete
int delete(java.sql.Connection aConn)
throws java.sql.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:
java.sql.SQLException
- When the save fails (e.g.: PK not found).
Copyright © 2012. All Rights Reserved.