Examples of ConnectionProperties


Examples of org.apache.openmeetings.cli.ConnectionProperties

     
      String databaseHomeDirectory = args[1];
     
      String persistanceFileToPatch = args[2];
     
      ConnectionProperties connectionProperties = new ConnectionProperties();
     
      File conf = new File(persistanceFileToPatch);
     
      if (conf.exists()) {
        conf.delete();
View Full Code Here

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

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

    }
   
    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

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

    }
   
    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

Examples of org.apache.tuscany.sca.data.engine.config.ConnectionProperties

            String username = reader.getAttributeValue(null, "username");
            String password = reader.getAttributeValue(null, "password");
            String loginTimeout = reader.getAttributeValue(null, "loginTimeout");

            // FIXME: validation sending info to monitor....
            ConnectionProperties connectionProperties = new ConnectionProperties();
            connectionProperties.setDriverClass(driverClass);
            connectionProperties.setDatabaseURL(databaseURL);
            connectionProperties.setUsername(username);
            connectionProperties.setPassword(password);
            if (loginTimeout != null) {
                connectionProperties.setLoginTimeout(Integer.parseInt(loginTimeout));
            }

            connectionInfo.setConnectionProperties(connectionProperties);
        }
       
View Full Code Here

Examples of org.apache.tuscany.sca.data.engine.config.ConnectionProperties

        if (connectionInfo.getDataSource() != null) {
            writer.writeAttribute("dataSource", connectionInfo.getDataSource());
        }
       
        ConnectionProperties connectionProperties = connectionInfo.getConnectionProperties();
        if (connectionProperties != null) {
            writer.writeStartElement(CONNECTION_PROPERTIES.getNamespaceURI(), CONNECTION_PROPERTIES.getLocalPart());
           
            if (connectionProperties.getDriverClass() != null) {
                writer.writeAttribute("driverClass", connectionProperties.getDriverClass());
            }
            if (connectionProperties.getDatabaseURL() != null) {
                writer.writeAttribute("databaseURL", connectionProperties.getDatabaseURL());
            }
            if (connectionProperties.getUsername() != null) {
                writer.writeAttribute("username", connectionProperties.getUsername());
            }
            if (connectionProperties.getPassword() != null) {
                writer.writeAttribute("password", connectionProperties.getPassword());
            }
            if (connectionProperties.getLoginTimeout() != null) {
                writer.writeAttribute("loginTimeout", String.valueOf(connectionProperties.getLoginTimeout()));
            }
           
            writer.writeEndElement();
        }
       
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.