Package org.mule.module.db.internal.domain.database

Examples of org.mule.module.db.internal.domain.database.GenericDbConfig


        return Collections.EMPTY_LIST;
    }

    protected GenericDbConfig doCreateDbConfig(DataSource datasource, DbTypeManager dbTypeManager)
    {
        return new GenericDbConfig(datasource, name, dbTypeManager);
    }
View Full Code Here


        testDatabase.createDefaultDatabaseConfig(getDefaultDataSource());
    }

    protected DataSource getDefaultDataSource()
    {
        GenericDbConfig config = muleContext.getRegistry().get("dbConfig");

        return config.getDataSource();
    }
View Full Code Here

    }

    @Test
    public void resolvesCustomDbTypes() throws Exception
    {
        GenericDbConfig dbConfig = muleContext.getRegistry().lookupObject("dbConfig");
        DbTypeManager dbTypeManager = dbConfig.getDbTypeManager();
        DbConnectionFactory connectionFactory = dbConfig.getConnectionFactory();
        DbConnection connection = connectionFactory.createConnection(TransactionalAction.NOT_SUPPORTED);

        try
        {
            assertResolvesType(connection, dbTypeManager, CUSTOM_TYPE_NAME1, CUSTOM_TYPE_ID1);
View Full Code Here

            errorCount++;

            if (errorCount == EXPECTED_CONNECTION_ERRORS)
            {
                // Fixes dataource's URL to enable connection
                GenericDbConfig config = muleContext.getRegistry().get("badDbConfig");
                StandardDataSource dataSource = (StandardDataSource) config.getDataSource();
                dataSource.setUrl("jdbc:derby:muleEmbeddedDB;create=true");
            }
        }
View Full Code Here

TOP

Related Classes of org.mule.module.db.internal.domain.database.GenericDbConfig

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.