Examples of OlapConnection


Examples of org.olap4j.OlapConnection

                new UrlRepositoryContentFinder(
                    "inline:" + xmlaTestContext.getDataSourcesString()),
                null);
        final int id = server.getId();
        assertNotNull(id);
        OlapConnection connection =
            server.getConnection("FoodMart", "FoodMart", null);
        final NamedList<Catalog> catalogs =
            connection.getOlapCatalogs();
        assertEquals(1, catalogs.size());
        assertEquals("FoodMart", catalogs.get(0).getName());
        server.shutdown();
    }
View Full Code Here

Examples of org.olap4j.OlapConnection

            }

            Connection connection = bds.getConnection();
            DelegatingConnection dc = (DelegatingConnection) connection;
            Connection underlyingOlapConnection = dc.getInnermostDelegate();
            OlapConnection olapConnection =
                unwrap(underlyingOlapConnection, OlapConnection.class);

            if (LOGGER.isDebugEnabled()) {
                LOGGER.debug(
                    "Obtained connection object [" + olapConnection
                    + "] (ext pool wrapper " + connection + ") for key "
                    + dataSourceKey);
            }
            if (catalog != null) {
                olapConnection.setCatalog(catalog);
            }
            if (schema != null) {
                olapConnection.setSchema(schema);
            }
            if (roleName != null) {
                olapConnection.setRoleName(roleName);
            }

            return createDelegatingOlapConnection(connection, olapConnection);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.