Package com.volantis.mcs.repository.jdbc

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


    public DataSource createMCSDriverDataSource(
            MCSDriverConfiguration configuration)
            throws JDBCRepositoryException, RepositoryException {

        // Get the vendor string.
        JDBCDriverVendor vendor = configuration.getDriverVendor();
        if (vendor == null) {
            throw new JDBCRepositoryException(
                    EXCEPTION_LOCALIZER.format("jdbc-missing-vendor"));
        }
View Full Code Here


    public LocalRepository createJDBCRepository(
            JDBCRepositoryConfiguration configuration)
            throws RepositoryException {

        JDBCDriverVendor vendor = configuration.getDriverVendor();

        DataSource dataSource = configuration.getDataSource();
        if (vendor == null) {
            vendor = getVendorFromDatabase(dataSource);
        }
View Full Code Here

    }

    private JDBCDriverVendor getVendorFromDatabase(DataSource dataSource)
            throws JDBCRepositoryException {

        JDBCDriverVendor vendor;
        if (dataSource instanceof VendorDataSource) {
            VendorDataSource vendorDataSource = (VendorDataSource) dataSource;
            vendor = vendorDataSource.getVendor();
        } else {
            String databaseProduct = null;
View Full Code Here

     */
    public static DataSource createDriverDataSource(Map properties)
            throws RepositoryException {

        // Get the vendor string.
        JDBCDriverVendor vendor = getVendor(properties);

        MCSDriverConfiguration configuration =
                factory.createMCSDriverConfiguration();
        configuration.setDriverVendor(vendor);
        if (vendor != JDBCDriverVendor.HYPERSONIC) {
View Full Code Here

            throws RepositoryException {

        JDBCRepositoryConfiguration configuration =
                factory.createJDBCRepositoryConfiguration();

        JDBCDriverVendor vendor = getVendor(properties);
        configuration.setDriverVendor(vendor);

        // See whether there is a complete datasource specified, if there is
        // then use that directly.
        DataSource dataSource = (DataSource) properties.get(
View Full Code Here

TOP

Related Classes of com.volantis.mcs.repository.jdbc.JDBCDriverVendor

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.