Package org.olap4j.metadata

Examples of org.olap4j.metadata.Property


        this.cellSetMetaData = cellSetMetaData;

        // populate property list
        for (Id id : queryAxis.getDimensionProperties()) {
            final String[] names = id.toStringArray();
            Property property = null;
            if (names.length == 1) {
                property =
                    Util.lookup(
                        Property.StandardMemberProperty.class, names[0]);
            }
View Full Code Here


            tc.executeOlap4jQuery(
                "select [Promotions2].Children on 0\n"
                + "from [Sales]");
        final org.olap4j.metadata.Member member =
            result.getAxes().get(0).getPositions().get(0).getMembers().get(0);
        final Property property = member.getProperties().get("Medium");
        assertEquals(
            "foo0/Medium/No Mediabar",
            member.getPropertyFormattedValue(property));
    }
View Full Code Here

            tc.executeOlap4jQuery(
                "select [Promotions2].Children on 0\n"
                + "from [Sales]");
        final org.olap4j.metadata.Member member =
            result.getAxes().get(0).getPositions().get(0).getMembers().get(0);
        final Property property = member.getProperties().get("Medium");
        assertEquals(
            "foo0/Medium/No Mediabar",
            member.getPropertyFormattedValue(property));
    }
View Full Code Here

            tc.executeOlap4jQuery(
                "select [Promotions2].Children on 0\n"
                + "from [Sales]");
        final org.olap4j.metadata.Member member =
            result.getAxes().get(0).getPositions().get(0).getMembers().get(0);
        final Property property = member.getProperties().get("Medium");
        assertEquals(
            "foo0/Medium/No Mediabar",
            member.getPropertyFormattedValue(property));
    }
View Full Code Here

        this.cellSetMetaData = cellSetMetaData;

        // populate property list
        for (Id id : queryAxis.getDimensionProperties()) {
            final String[] names = id.toStringArray();
            Property olap4jProperty = null;
            if (names.length == 1) {
                olap4jProperty =
                    Util.lookup(
                        Property.StandardMemberProperty.class, names[0]);
                if (olap4jProperty == null) {
View Full Code Here

                + " [Measures].[Foo] DIMENSION PROPERTIES FORMAT_EXP on 0\n"
                + "from [Sales]");
        final CellSetAxis axis = cellSet.getAxes().get(0);
        final Member member =
            axis.getPositions().get(0).getMembers().get(0);
        Property property = findProperty(axis, "FORMAT_EXP");
        assertNotNull(property);

        // Note that the expression is returned, unevaluated. You can tell from
        // the parentheses and quotes that it has been un-parsed.
        assertEquals(
View Full Code Here

                + "select [Measures].[Unit Sales] on 0,\n"
                + " {[Customers].[USA].[CA], [Customers].[USA].[CA WA]} on 1\n"
                + "from [Sales]\n"
                + "cell properties ACTION_TYPE, DRILLTHROUGH_COUNT");
        final CellSetMetaData metaData = cellSet.getMetaData();
        final Property actionTypeProperty =
            metaData.getCellProperties().get("ACTION_TYPE");
        final Property drillthroughCountProperty =
            metaData.getCellProperties().get("DRILLTHROUGH_COUNT");

        // Cell [0, 0] is drillable
        final Cell cell0 = cellSet.getCell(0);
        final int actionType0 =
View Full Code Here

TOP

Related Classes of org.olap4j.metadata.Property

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.