Package mondrian.rolap.sql

Examples of mondrian.rolap.sql.MemberChildrenConstraint


    public void getMemberChildren(
        List<RolapMember> parentMembers,
        List<RolapMember> children)
    {
        MemberChildrenConstraint constraint =
            sqlConstraintFactory.getMemberChildrenConstraint(null);
        getMemberChildren(parentMembers, children, constraint);
    }
View Full Code Here


    public void getMemberChildren(
        RolapMember parentMember,
        List<RolapMember> children)
    {
        MemberChildrenConstraint constraint =
            sqlConstraintFactory.getMemberChildrenConstraint(null);
        getMemberChildren(parentMember, children, constraint);
    }
View Full Code Here

    public void getMemberChildren(
        List<RolapMember> parentMembers,
        List<RolapMember> children)
    {
        MemberChildrenConstraint constraint =
            sqlConstraintFactory.getMemberChildrenConstraint(null);
        getMemberChildren(parentMembers, children, constraint);
    }
View Full Code Here

        Member parent = member.getParentMember();
        parent = ((RolapCubeMember) parent).getRolapMember();
        member = ((RolapCubeMember) member).getRolapMember();

        // lookup all children of [Burlingame] -> not in cache
        MemberChildrenConstraint mcc = scf.getMemberChildrenConstraint(null);
        assertNull(ssmrch.mapMemberToChildren.get((RolapMember) parent, mcc));

        // lookup NON EMPTY children of [Burlingame] -> yes these are in cache
        mcc = scf.getMemberChildrenConstraint(context);
        list = smrich.mapMemberToChildren.get((RolapMember) parent, mcc);
View Full Code Here

        parent = ((RolapCubeMember) parent).getRolapMember();
        member = ((RolapCubeMember) member).getRolapMember();

        // lookup all children of [Burnaby] -> yes, found in cache
        MemberChildrenConstraint mcc = scf.getMemberChildrenConstraint(null);
        list = ssmrch.mapMemberToChildren.get((RolapMember) parent, mcc);
        assertNotNull(list);
        assertTrue(list.contains(member));

        // lookup NON EMPTY children of [Burlingame] -> not in cache
View Full Code Here

        peggy = ((RolapCubeMember) peggy).getRolapMember();
        burlingame = ((RolapCubeMember) burlingame).getRolapMember();

        // all children of burlingame are not in cache
        MemberChildrenConstraint mcc = scf.getMemberChildrenConstraint(null);
        assertNull(ssmrch.mapMemberToChildren.get(burlingame, mcc));
        // but non empty children is
        Evaluator evaluator = getEvaluator(result, new int[] {0, 0});
        evaluator.setNonEmpty(true);
        mcc = scf.getMemberChildrenConstraint(evaluator);
View Full Code Here

    public void getMemberChildren(
        final RolapMember parentMember,
        final List<RolapMember> children)
    {
        MemberChildrenConstraint constraint =
                sqlConstraintFactory.getMemberChildrenConstraint(null);
        getMemberChildren(parentMember, children, constraint);
    }
View Full Code Here

    public void getMemberChildren(
        final List<RolapMember> parentMembers,
        final List<RolapMember> children)
    {
        MemberChildrenConstraint constraint =
            sqlConstraintFactory.getMemberChildrenConstraint(null);
        getMemberChildren(parentMembers, children, constraint);
    }
View Full Code Here

        cellRegionList.add(createMemberRegion(member, true));

        return new Callable<Boolean>() {
            public Boolean call() throws Exception {
                final MemberCache memberCache = getMemberCache(member);
                final MemberChildrenConstraint memberConstraint =
                    new ChildByNameConstraint(
                        new Id.NameSegment(member.getName()));

                // Remove the member from its parent's lists. First try the
                // unconstrained cache.
View Full Code Here

        cellRegionList.add(createMemberRegion(parent, false));

        return new Callable<Boolean>() {
            public Boolean call() throws Exception {
                final MemberCache memberCache = getMemberCache(member);
                final MemberChildrenConstraint memberConstraint =
                    new ChildByNameConstraint(
                        new Id.NameSegment(member.getName()));

                // Check if there is already a list in cache
                // constrained by a wildcard.
View Full Code Here

TOP

Related Classes of mondrian.rolap.sql.MemberChildrenConstraint

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.