debugged false Class.forName. Changed mir to mircoders
authorrk <rk>
Wed, 29 Aug 2001 15:01:52 +0000 (15:01 +0000)
committerrk <rk>
Wed, 29 Aug 2001 15:01:52 +0000 (15:01 +0000)
source/mir/storage/Database.java
source/mircoders/module/ModuleBreaking.java
source/mircoders/servlet/ServletModuleBreaking.java
source/mircoders/storage/DatabaseBreaking.java
source/mircoders/storage/DatabaseComment.java
source/mircoders/storage/DatabaseContent.java

index b451061..4f73324 100755 (executable)
@@ -61,7 +61,6 @@ public class Database implements StorageObject {
         */
        public Database() {
        theLog = Logfile.getInstance(Configuration.getProperty("Home") + Configuration.getProperty("Database.Logfile"));
-    theLog.printDebugInfo("-- inside database");
                String database_username=Configuration.getProperty("Database.Username");
                String database_password=Configuration.getProperty("Database.Password");
                String database_host=Configuration.getProperty("Database.Host");
index 72d7067..12426c6 100755 (executable)
@@ -34,10 +34,8 @@ public class ModuleBreaking extends AbstractModule
 
        public ModuleBreaking (StorageObject theStorage)
        {
-
                if (theLog == null) theLog = Logfile.getInstance(Configuration.getProperty("Home") + Configuration.getProperty("Module.Breaking.Logfile"));
                if (theStorage == null) theLog.printWarning("ModuleBreaking -- StorageObject was null!");
-
                this.theStorage = theStorage;
 
        }
index be350e3..d8015dc 100755 (executable)
@@ -34,7 +34,7 @@ public class ServletModuleBreaking extends ServletModule
                templateListString = Configuration.getProperty("ServletModule.Breaking.ListTemplate");
                templateObjektString = Configuration.getProperty("ServletModule.Breaking.ObjektTemplate");
                templateConfirmString = Configuration.getProperty("ServletModule.Breaking.ConfirmTemplate");
-               try
+               try {
       DatabaseBreaking dbb = DatabaseBreaking.getInstance();
                        mainModule = new ModuleBreaking(dbb);
                }
index 888bc4e..cb789d8 100755 (executable)
@@ -32,15 +32,12 @@ public class DatabaseBreaking extends Database implements StorageObject{
        private DatabaseBreaking() throws StorageObjectException
        {
                super();
-    theLog.printDebugInfo("-- outside database");
                this.cache = new HashMap();
                this.theTable="breaking";
                try {
-                       this.theEntityClass = Class.forName("mir.entity.EntityBreaking");
+                       this.theEntityClass = Class.forName("mircoders.entity.EntityBreaking");
                }
                catch (Exception e) { throw new StorageObjectException(e.toString());   }
-
-    theLog.printDebugInfo("-- leaving dbb");
        }
 
 
index d819b11..25ada19 100755 (executable)
@@ -37,7 +37,7 @@ public class DatabaseComment extends Database implements StorageObject{
                this.cache = new HashMap();
                this.theTable="comment";
                try {
-                       this.theEntityClass = Class.forName("mir.entity.EntityComment");
+                       this.theEntityClass = Class.forName("mircoders.entity.EntityComment");
                }
                catch (Exception e) { throw new StorageObjectException(e.toString());   }
        }
index 6346826..fd97ca2 100755 (executable)
@@ -45,7 +45,7 @@ public class DatabaseContent extends Database implements StorageObject {
                this.theCoreTable="media";
                relationComments = new EntityRelation("id", "to_media", DatabaseComment.getInstance(), EntityRelation.TO_MANY);
                relationFeature = new EntityRelation("id", "to_feature", DatabaseFeature.getInstance(), EntityRelation.TO_ONE);
-               try {   this.theEntityClass = Class.forName("mir.entity.EntityContent"); }
+               try {   this.theEntityClass = Class.forName("mircoders.entity.EntityContent"); }
                catch (Exception e) { throw new StorageObjectException(e.toString());   }
        }