*/
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");
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;
}
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);
}
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");
}
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()); }
}
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()); }
}