Package org.eigenbase.util.property

Examples of org.eigenbase.util.property.BooleanProperty


            }
       );
    }

    public void execute(MemberEditCommand cmd) {
        final BooleanProperty prop =
            MondrianProperties.instance().EnableRolapCubeMemberCache;
        if (prop.get()) {
            throw new IllegalArgumentException(
                "Member cache control operations are not allowed unless "
                + "property " + prop.getPath() + " is false");
        }
        synchronized (MEMBER_CACHE_LOCK) {
            final List<CellRegion> cellRegionList =
                new ArrayList<CellRegion>();
            ((MemberEditCommandPlus) cmd).execute(cellRegionList);
View Full Code Here


        switch (getTestContext().getDialect().getDatabaseProduct()) {
        case INFOBRIGHT:
            // Hits same Infobright bug as NamedSetTest.testNamedSetOnMember.
            return;
        }
        final BooleanProperty enableProperty =
            MondrianProperties.instance().EnableNativeCrossJoin;
        final StringProperty alertProperty =
            MondrianProperties.instance().AlertNativeEvaluationUnsupported;
        if (!enableProperty.get()) {
            // When native cross joins are explicitly disabled, no alerts
            // are supposed to be raised.
            return;
        }
View Full Code Here

    public void testNegativeSolveOrder() throws Exception {
        executeMDX();
    }

    public void testNonEmptyWithCognosCalcOneLiteral() throws Exception {
        final BooleanProperty enableNonEmptyOnAllAxes =
                MondrianProperties.instance().EnableNonEmptyOnAllAxis;
        boolean nonEmptyAllAxesCurrentState = enableNonEmptyOnAllAxes.get();

        final BooleanProperty enableNativeNonEmpty =
                MondrianProperties.instance().EnableNativeNonEmpty;
        boolean nativeNonemptyCurrentState = enableNativeNonEmpty.get();

        try {
            enableNonEmptyOnAllAxes.set(true);
            enableNativeNonEmpty.set(false);
            executeMDX();
            if (Bug.BugMondrian446Fixed) {
                enableNativeNonEmpty.set(true);
                executeMDX();
            }
        } finally {
            enableNativeNonEmpty.set(nativeNonemptyCurrentState);
            enableNonEmptyOnAllAxes.set(nonEmptyAllAxesCurrentState);
        }
    }
View Full Code Here

            }
       );
    }

    public void execute(MemberEditCommand cmd) {
        final BooleanProperty prop =
            MondrianProperties.instance().EnableRolapCubeMemberCache;
        if (prop.get()) {
            throw new IllegalArgumentException(
                "Member cache control operations are not allowed unless "
                + "property " + prop.getPath() + " is false");
        }
        synchronized (MEMBER_CACHE_LOCK) {
            // Make sure that a Locus is in the Execution stack,
            // since some operations might require DB access.
            Execution execution;
View Full Code Here

TOP

Related Classes of org.eigenbase.util.property.BooleanProperty

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.