X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=source%2Fmircoders%2Fstorage%2FDatabaseComment.java;h=8561eb451b8a091595a9fb7893a3dae809e5eb8f;hb=d06e23e638f2538f263af76bd32da6b140f20ac6;hp=12e8da1bf177bd4b5fb9ec831de5d21e0b533c2a;hpb=e44404fac09c8da04b5ef7874160cb91f8fc98a9;p=mir.git diff --git a/source/mircoders/storage/DatabaseComment.java b/source/mircoders/storage/DatabaseComment.java index 12e8da1b..8561eb45 100755 --- a/source/mircoders/storage/DatabaseComment.java +++ b/source/mircoders/storage/DatabaseComment.java @@ -36,14 +36,7 @@ import java.sql.Statement; import mir.log.LoggerWrapper; import mir.storage.Database; -import mir.storage.StorageObjectFailure; - -/** - * This class implements the access to the comment-table for the - * media table. - * - * - */ +import mir.storage.DatabaseFailure; public class DatabaseComment extends Database { @@ -64,7 +57,7 @@ public class DatabaseComment extends Database { entityClass = mircoders.entity.EntityComment.class; } - public boolean deleteByContentId(String id) throws StorageObjectFailure { + public boolean deleteByContentId(String id) throws DatabaseFailure { Statement stmt = null; Connection con = null; String sql; @@ -79,7 +72,7 @@ public class DatabaseComment extends Database { stmt.executeUpdate(sql); } catch (SQLException sqe) { - new StorageObjectFailure(sqe); + new DatabaseFailure(sqe); return false; } finally {