Package org.apache.tuscany.das.rdb.config

Examples of org.apache.tuscany.das.rdb.config.ConnectionProperties


        return connection;
    }

    private void initializeConnection() {

        ConnectionProperties cp = config.getConnectionProperties();
        if (cp == null)
            throw new Error(
                    "No connection properties have been configured and no connection has been provided");

        if (cp.getDataSource() != null)
            initViaDataSource(cp);
        else
            initViaDriverManager(cp);

    }
View Full Code Here


    }
   
    public void addConnectionInfo(String driverClass, String connectionURL, String user, String password, int loginTimeout) {
        ConnectionInfo info = ConfigFactory.INSTANCE.createConnectionInfo();
       
        ConnectionProperties connectionProperties = ConfigFactory.INSTANCE.createConnectionProperties();
        connectionProperties.setDriverClass(driverClass);
        connectionProperties.setDatabaseURL(connectionURL);
        connectionProperties.setUserName(user);
        connectionProperties.setPassword(password);
        connectionProperties.setLoginTimeout(loginTimeout);           

        info.setConnectionProperties(connectionProperties);
        config.setConnectionInfo(info);
    }
View Full Code Here

    }
   
    public void addConnectionInfo(String driverClass, String connectionURL, String user, String password, int loginTimeout) {
        ConnectionInfo info = ConfigFactory.INSTANCE.createConnectionInfo();
       
        ConnectionProperties connectionProperties = ConfigFactory.INSTANCE.createConnectionProperties();
        connectionProperties.setDriverClass(driverClass);
        connectionProperties.setDatabaseURL(connectionURL);
        connectionProperties.setUserName(user);
        connectionProperties.setPassword(password);
        connectionProperties.setLoginTimeout(loginTimeout);           

        info.setConnectionProperties(connectionProperties);
        config.setConnectionInfo(info);
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.das.rdb.config.ConnectionProperties

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.