7071727374757677787980
if(dbType.equals(DERBY)){ new DerbySetup(dbURL+"-"+user+"-"+password); } if(dbType.equals(MYSQL)){ new MySQLSetup(dbURL+"-"+user+"-"+password); } } catch(Exception e){ throw new RuntimeException("Error initializing database !", e); }
5455565758596061626364
if(dbType.equals(DB2)){ new DB2Setup(dbName+"-"+user+"-"+password); } if(dbType.equals(MYSQL)){ new MySQLSetup(dbName+"-"+user+"-"+password); } } catch(Exception e){ e.printStackTrace(); }