import freemarker.template.*;
-import webdb.storage.*;
-import webdb.entity.*;
-import webdb.misc.*;
+import mir.storage.*;
+import mir.entity.*;
+import mir.misc.*;
/**
* <b>Diese Klasse implementiert die Datenbankverbindung zur MetaObjekt-Tabelle
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());
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());