return conex;
}
public static IConnectionDB connectLogging(AdminBase.DATABASE db, String path, String... args){
DbmsInterpreter.properties = args;
IConnectionDB conex = null;
ProxyConnectionDB.configureLogger(path);
switch (db) {
case MYSQL:
conex = (IConnectionDB) ProxyConnectionDB.newInstance(new ConnectionDB(args));
conex.connectMySQL();
break;
case SQLSERVER:
conex = (IConnectionDB) ProxyConnectionDB.newInstance(new ConnectionDB(args));
conex.connectSQLServer();
break;
case POSTGRES:
conex = (IConnectionDB) ProxyConnectionDB.newInstance(new ConnectionDBPostgre(args));
conex.connectPostgres();
break;
case SQLite:
conex = (IConnectionDB) ProxyConnectionDB.newInstance(new ConnectionDB("", "", args[0], "", ""));
conex.connectSQLite();
break;
case FIREBIRD:
conex = (IConnectionDB) ProxyConnectionDB.newInstance(new ConnectionDBFirebird(args));
conex.connectFirebird();
break;
}
return conex;
}