Examples of DriverDataSource


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

        validateAttributes();

        try {

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

            // Load the data map and run the db importer.
            final LoaderDelegate loaderDelegate = new LoaderDelegate();
            final DbLoader loader = new DbLoader(
                    dataSource.getConnection(),
                    adapter,
                    loaderDelegate);
            loader.setCreatingMeaningfulPK(meaningfulPk);

            if (namingStrategy != null) {
View Full Code Here

Examples of org.apache.cayenne.conn.DriverDataSource

        catch (Throwable th) {
            th = Util.unwindException(th);
            throw new SQLException("Driver load error: " + th.getLocalizedMessage());
        }

        return new DriverDataSource(driver, getUrl(), getUserName(), getPassword());
    }
View Full Code Here

Examples of org.apache.cayenne.conn.DriverDataSource

          .newInstance(DbAdapter.class, JdbcAdapter.class.getName())
          : (DbAdapter) objectFactory.newInstance(DbAdapter.class,
              adapter);

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

      // Load the data map and run the db importer.
      final LoaderDelegate loaderDelegate = new LoaderDelegate();
      final DbLoader loader = new DbLoader(dataSource.getConnection(),
          adapterInst, loaderDelegate);
      loader.setCreatingMeaningfulPK(meaningfulPk);

      if (namingStrategy != null) {
        final NamingStrategy namingStrategyInst = (NamingStrategy) Class
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.flywaydb.core.internal.util.jdbc.DriverDataSource

            throw new IOException(String.format("directory %s should exists and be a directory", this.baseDirectory));
        }

        // used for Flyway 3.0:
        ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
        DataSource ds = new DriverDataSource(classLoader, null, url, user, password, initSql);
        support = DbSupportFactory.createDbSupport(ds.getConnection(), true);

    }
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.