Package quickdb.db.connection

Examples of quickdb.db.connection.ConnectionDB


    public static String[] properties;

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

        return conex;
    }
View Full Code Here


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

TOP

Related Classes of quickdb.db.connection.ConnectionDB

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.