X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=source%2Fmircoders%2Fentity%2FEntityUploadedMedia.java;h=0d69b1b1ba60a486a9bbe9c0567d02769022e28e;hb=83e3db8e7dbd3722e1473ded458b7a1076b6a637;hp=71c7cd8fdfd3c86becedeca161035072ca4a3fe6;hpb=14bbddf3ea444b481097402002a2a1fa1385a9a4;p=mir.git diff --git a/source/mircoders/entity/EntityUploadedMedia.java b/source/mircoders/entity/EntityUploadedMedia.java index 71c7cd8f..0d69b1b1 100755 --- a/source/mircoders/entity/EntityUploadedMedia.java +++ b/source/mircoders/entity/EntityUploadedMedia.java @@ -45,7 +45,7 @@ import mircoders.storage.DatabaseUploadedMedia; /** * * @author mh, mir-coders group - * @version $Id: EntityUploadedMedia.java,v 1.26.2.2 2003/11/24 23:37:18 rk Exp $ + * @version $Id: EntityUploadedMedia.java,v 1.26.2.3 2003/11/26 19:21:04 rk Exp $ */ @@ -65,12 +65,11 @@ public class EntityUploadedMedia extends Entity { public void update() throws StorageObjectFailure { super.update(); - try { - // TODO rewrite as relational sql - theStorageObject.executeUpdate("update content set is_produced='0' where exists(select * from content_x_media where to_content=content.id and to_media=" + getId()+")"); + try { + theStorageObject.executeUpdate( "update content set is_produced='0' where exists(select * from content_x_media where to_content=content.id and to_media=" + getId()+")"); } catch (SQLException e) { - throwStorageObjectFailure(e, "EntityAudio :: update :: failed!! "); + throwStorageObjectFailure(e, "EntityUploadedMedia :: update :: failed!! "); } }