Package mondrian.olap.Util

Examples of mondrian.olap.Util.PropertyList


                    JOptionPane.WARNING_MESSAGE);
                sf.setSelected(true);
                return;
            }
            sfile = se.getSchemaFile();
            PropertyList list = new PropertyList();
            list.put("Provider", "mondrian");
            list.put("Jdbc", se.getJdbcConnectionUrl());
            list.put("Catalog", se.getSchemaFile().toURL().toString());
            final String jdbcUsername = se.getJdbcUsername();
            if (!ValidationUtils.isEmpty(jdbcUsername)) {
                list.put("JdbcUser", jdbcUsername);
            }
            final String jdbcPassword = se.getJdbcPassword();
            if (!ValidationUtils.isEmpty(jdbcPassword)) {
                list.put("JdbcPassword", jdbcPassword);
            }
            Connection con = DriverManager.getConnection(list, null);

            // clear cache before connecting
            con.getCacheControl(null).flushSchemaCache();
View Full Code Here


        }
        return catalogNameUrls;
    }

    protected String filterConnectString(String original) {
        PropertyList props = Util.parseConnectString(original);
        if (props.get(RolapConnectionProperties.Catalog.name()) != null) {
            props.remove(RolapConnectionProperties.Catalog.name());
        }
        return props.toString();
    }
View Full Code Here

TOP

Related Classes of mondrian.olap.Util.PropertyList

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.