Topic now Storable Entity, Database knows of empty extraTables
authorrk <rk>
Tue, 25 Nov 2003 00:19:39 +0000 (00:19 +0000)
committerrk <rk>
Tue, 25 Nov 2003 00:19:39 +0000 (00:19 +0000)
source/mir/storage/Database.java
source/mircoders/entity/EntityTopics.java

index 2c8f7d6..bc60399 100755 (executable)
@@ -75,7 +75,7 @@ import com.codestudio.util.SQLManager;
  * Treiber, Host, User und Passwort, ueber den der Zugriff auf die
  * Datenbank erfolgt.
  *
- * @version $Id: Database.java,v 1.44.2.12 2003/11/24 23:54:06 rk Exp $
+ * @version $Id: Database.java,v 1.44.2.13 2003/11/25 00:19:39 rk Exp $
  * @author rk
  *
  */
@@ -580,6 +580,12 @@ public class Database implements StorageObject {
       String aWhereClause, String anOrderByClause,
                        int offset, int limit) throws StorageObjectFailure {
     
+    // make extraTables null, if single empty String in it
+    if (extraTables != null && ((String)extraTables.get(0)).trim().equals(""))
+      {
+        logger.debug("+++ made extraTables to null!");
+        extraTables=null;
+      }
     
     String useTable = theTable;
     String selectStar = "*";
index f99d2db..38ad755 100755 (executable)
@@ -30,7 +30,7 @@
 
 package mircoders.entity;
 
-import mir.entity.Entity;
+import mir.entity.StorableObjectEntity;
 import mir.storage.StorageObject;
 /**
  * Diese Klasse enth?lt die Daten eines MetaObjekts
@@ -40,7 +40,7 @@ import mir.storage.StorageObject;
  */
 
 
-public class EntityTopics extends Entity {
+public class EntityTopics extends StorableObjectEntity {
   public EntityTopics(){
          super();
   }
@@ -49,4 +49,6 @@ public class EntityTopics extends Entity {
     this();
     setStorage(theStorage);
   }
+
+
 }