X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=source%2Fmircoders%2Fstorage%2FDatabaseImages.java;h=ede4e156ba4ddaf66ec70b1093630877fcfe0ea6;hb=9065f22c307993d6dd19be86aafcef915f52f36d;hp=8890c0d7d0e43ac3b8ade631ea8d74a313f326e3;hpb=635db236fe78484b5f7f0158ad8054b189bf7a79;p=mir.git diff --git a/source/mircoders/storage/DatabaseImages.java b/source/mircoders/storage/DatabaseImages.java index 8890c0d7..ede4e156 100755 --- a/source/mircoders/storage/DatabaseImages.java +++ b/source/mircoders/storage/DatabaseImages.java @@ -7,9 +7,9 @@ import java.util.*; import freemarker.template.*; -import webdb.storage.*; -import webdb.entity.*; -import webdb.misc.*; +import mir.storage.*; +import mir.entity.*; +import mir.misc.*; /** * Diese Klasse implementiert die Datenbankverbindung zur MetaObjekt-Tabelle @@ -38,18 +38,17 @@ public class DatabaseImages extends Database implements StorageObject{ this.theTable="images"; this.theCoreTable="media"; try { - this.theEntityClass = Class.forName("mir.entity.EntityImage"); + this.theEntityClass = Class.forName("mircoders.entity.EntityImages"); } catch (Exception e) { throw new StorageObjectException(e.toString()); } } - public SimpleList getPopupData() { + public SimpleList getPopupData() throws StorageObjectException { return getPopupData("title",true); } public void update(Entity theEntity) throws StorageObjectException { - theEntity.setValueForProperty("to_media_type","1"); String date = theEntity.getValue("date"); if (date==null){ date = StringUtil.date2webdbDate(new GregorianCalendar()); @@ -62,7 +61,6 @@ public class DatabaseImages extends Database implements StorageObject{ public String insert(Entity theEntity) throws StorageObjectException { - theEntity.setValueForProperty("to_media_type","1"); String date = theEntity.getValue("date"); if (date==null){ date = StringUtil.date2webdbDate(new GregorianCalendar());