Examples of DriverDataSource


Examples of com.volantis.mcs.repository.jdbc.DriverDataSource

        // file.
        final Properties driverProperties = configuration.getDriverProperties();

        final String driverClassName = configuration.getDriverClassName();
        final String url = configuration.getDriverSpecificDatabaseURL();
        DataSource dataSource = new DriverDataSource(driverClassName, url,
                driverProperties);

        // If it is configured create a connection pool around the data source,
        // otherwise just returns the dataSource.
        return createMCSConnectionPool(
View Full Code Here

Examples of com.volantis.mcs.repository.jdbc.DriverDataSource

                baseURLBuffer.append('=');
                baseURLBuffer.append(value);
            }
        }

        DataSource dataSource = new DriverDataSource(baseURLBuffer.toString());

        if (userName != null) {
            // Since we have a username lets use a confusingly
            // named AnonymousDataSource.
            dataSource = jdbcRepositoryFactory.createAnonymousDataSource(
View Full Code Here

Examples of com.zaxxer.hikari.util.DriverDataSource

      ds = new HikariDataSource(config);

      Assert.assertTrue(ds.isWrapperFor(DriverDataSource.class));

      DriverDataSource unwrap = ds.unwrap(DriverDataSource.class);
      Assert.assertNotNull(unwrap);

      Connection connection = ds.getConnection();
      connection.close();
View Full Code Here

Examples of org.apache.cayenne.conn.DriverDataSource

            generator.setShouldCreateTables(createTables);
            generator.setShouldDropPKSupport(dropPK);
            generator.setShouldDropTables(dropTables);

            // load driver taking custom CLASSPATH into account...
            DriverDataSource dataSource = new DriverDataSource((Driver) Class.forName(
                    driver).newInstance(), url, userName, password);

            generator.runGenerator(dataSource);
        }
        catch (Exception ex) {
View Full Code Here

Examples of org.apache.cayenne.conn.DriverDataSource

        if (isEmpty(true)) {
            return;
        }

        Driver driver = (Driver) Class.forName(dsi.getJdbcDriver()).newInstance();
        DataSource dataSource = new DriverDataSource(driver, dsi.getDataSourceUrl(), dsi
                .getUserName(), dsi.getPassword());

        runGenerator(dataSource);
    }
View Full Code Here

Examples of org.apache.cayenne.conn.DriverDataSource

        if (isEmpty(true)) {
            return;
        }

        Driver driver = (Driver) Class.forName(dsi.getJdbcDriver()).newInstance();
        DataSource dataSource = new DriverDataSource(driver, dsi.getDataSourceUrl(), dsi
                .getUserName(), dsi.getPassword());

        runGenerator(dataSource);
    }
View Full Code Here

Examples of org.apache.cayenne.conn.DriverDataSource

            generator.setShouldCreateTables(createTables);
            generator.setShouldDropPKSupport(dropPK);
            generator.setShouldDropTables(dropTables);

            // load driver taking custom CLASSPATH into account...
            DriverDataSource dataSource = new DriverDataSource((Driver) Class.forName(
                    driver).newInstance(), url, userName, password);

            generator.runGenerator(dataSource);
        }
        catch (Exception ex) {
View Full Code Here

Examples of org.apache.cayenne.conn.DriverDataSource

        if (isEmpty(true)) {
            return;
        }

        Driver driver = (Driver) Class.forName(dsi.getJdbcDriver()).newInstance();
        DataSource dataSource = new DriverDataSource(driver, dsi.getDataSourceUrl(), dsi
                .getUserName(), dsi.getPassword());

        runGenerator(dataSource);
    }
View Full Code Here

Examples of org.apache.cayenne.conn.DriverDataSource

        if (isEmpty(true)) {
            return;
        }

        Driver driver = (Driver) Class.forName(dsi.getJdbcDriver()).newInstance();
        DataSource dataSource = new DriverDataSource(driver, dsi.getDataSourceUrl(), dsi
                .getUserName(), dsi.getPassword());

        runGenerator(dataSource);
    }
View Full Code Here

Examples of org.apache.cayenne.conn.DriverDataSource

        if (isEmpty(true)) {
            return;
        }

        Driver driver = (Driver) Class.forName(dsi.getJdbcDriver()).newInstance();
        DataSource dataSource = new DriverDataSource(driver, dsi.getDataSourceUrl(), dsi
                .getUserName(), dsi.getPassword());

        runGenerator(dataSource);
    }
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.