Package org.springframework.jdbc.datasource

Examples of org.springframework.jdbc.datasource.SingleConnectionDataSource


    @Override
    protected RouteBuilder createRouteBuilder() throws Exception {
        return new RouteBuilder() {
            public void configure() {
                ds = new SingleConnectionDataSource(url, user, password, true);

                getContext().getComponent("sql", SqlComponent.class).setDataSource(ds);

                errorHandler(noErrorHandler());
               
View Full Code Here


        hibernateSchemaExport(true);
    }

    private void hibernateSchemaExport(boolean enhancedId) throws Exception {

        SingleConnectionDataSource ds = new SingleConnectionDataSource(connection, true);

        Configuration cfg = createSpringPackageScanningConfiguration(enhancedId);
        Properties properties = new Properties();
        properties.put(Environment.DATASOURCE, ds);
        cfg.addProperties(properties);
View Full Code Here

     * @throws Exception
     */
    @Test
    public void hibernateSchemaExport() throws Exception {

        SingleConnectionDataSource ds = new SingleConnectionDataSource(connection, true);

        Configuration cfg = new Configuration();
        cfg.configure(HIBERNATE_CONFIG_FILE);
        Properties properties = new Properties();
        properties.put(Environment.DATASOURCE, ds);
View Full Code Here

        Connection conn = null;
        try {
            conn = getMetaStoreConnection(root);
            if (conn != null) {
                log.info("Migrating the old metastore to filesystem storage");
                SingleConnectionDataSource ds = new SingleConnectionDataSource(conn, false);
                JdbcTemplate template = new JdbcTemplate(ds);

                // maybe we should make this optional?
                boolean migrateCreationDates = Boolean.getBoolean("MIGRATE_CREATION_DATES");
                if(migrateCreationDates) {
View Full Code Here

TOP

Related Classes of org.springframework.jdbc.datasource.SingleConnectionDataSource

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.