Package quickdb.db.connection

Examples of quickdb.db.connection.IConnectionDB


        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;
    }
View Full Code Here

TOP

Related Classes of quickdb.db.connection.IConnectionDB

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.