Package com.volantis.mcs.runtime.configuration

Examples of com.volantis.mcs.runtime.configuration.JDBCRepositoryConfiguration


        assertNotNull(config);
        LocalRepositoryConfiguration repos = config.getLocalRepository();
        assertNotNull("localRepositoryConnection", repos);
        if (value != null) {
      if ("jdbc".equals(value.type)) {
                final JDBCRepositoryConfiguration jdbcRepositoryConfig =
                        repos.getJDBCRepositoryConfiguration();
                assertEquals("", value.shortNames, jdbcRepositoryConfig.getUseShortNames());
                MCSDatabaseConfiguration ds = (MCSDatabaseConfiguration)
                        jdbcRepositoryConfig.getDataSourceConfiguration();
              assertEquals(value.vendor, ds.getVendor());
              assertEquals(value.host, ds.getHost());
              assertEquals(value.port, ds.getPort());
              assertEquals(value.source, ds.getSource());
      } else if ("xml".equals(value.type)) {
View Full Code Here


                        (JdbcPoliciesConfiguration) defaultPolicies;
                Assert.assertEquals(jdbc.projectName, jdbcPolicies.getName());
            }


            JDBCRepositoryConfiguration jdbcConfig =
                marinerConfig.getLocalRepository()
                    .getJDBCRepositoryConfiguration();

            ConnectionPoolConfiguration connectionPool = null;
            AnonymousDataSourceConfiguration anonymousDataSource = null;
            MCSDatabaseConfiguration mcsDatabase = null;

            if (jdbcConfig.getDataSourceConfiguration()
                instanceof ConnectionPoolConfiguration) {
                // Pooled datasource
                connectionPool =
                    (ConnectionPoolConfiguration)jdbcConfig
                        .getDataSourceConfiguration();
                if (connectionPool.getDataSourceConfiguration()
                    instanceof AnonymousDataSourceConfiguration) {
                    // anonymous pooled
                    anonymousDataSource =
                        (AnonymousDataSourceConfiguration)connectionPool
                            .getDataSourceConfiguration();
                    if (anonymousDataSource.getDataSourceConfiguration()
                        instanceof MCSDatabaseConfiguration) {
                        // MCS Database anonymous pooled
                        mcsDatabase =
                            (MCSDatabaseConfiguration)anonymousDataSource
                                .getDataSourceConfiguration();
                    }
                } else if (
                    connectionPool.getDataSourceConfiguration()
                        instanceof MCSDatabaseConfiguration) {
                    // MCS Database pooled
                    mcsDatabase =
                        (MCSDatabaseConfiguration)connectionPool
                            .getDataSourceConfiguration();
                }
            } else if (
                jdbcConfig.getDataSourceConfiguration()
                    instanceof AnonymousDataSourceConfiguration) {
                // anonymous
                anonymousDataSource =
                    (AnonymousDataSourceConfiguration)jdbcConfig
                        .getDataSourceConfiguration();
                if (anonymousDataSource.getDataSourceConfiguration()
                    instanceof MCSDatabaseConfiguration) {
                    // MCS Database anonymous
                    mcsDatabase =
View Full Code Here

        boolean usesShortNames = false;
        if (marinerConfig.getLocalRepository() != null &&
                marinerConfig.getLocalRepository().getJDBCRepositoryConfiguration() != null) {

            JDBCRepositoryConfiguration jdbcRepositoryConfiguration =
                    marinerConfig.getLocalRepository().
                            getJDBCRepositoryConfiguration();
            if (jdbcRepositoryConfiguration.getUseShortNames() != null) {

                usesShortNames = jdbcRepositoryConfiguration.getUseShortNames().
                        booleanValue();
            }
        }
        return usesShortNames;
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.runtime.configuration.JDBCRepositoryConfiguration

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.