001/*
002// This software is subject to the terms of the Eclipse Public License v1.0
003// Agreement, available at the following URL:
004// http://www.eclipse.org/legal/epl-v10.html.
005// You must accept the terms of that agreement to use this software.
006//
007// Copyright (C) 2001-2005 Julian Hyde
008// Copyright (C) 2005-2012 Pentaho and others
009// All Rights Reserved.
010*/
011package mondrian.rolap;
012
013import mondrian.olap.*;
014
015import java.util.List;
016import java.util.Map;
017
018/**
019 * Implementation of {@link mondrian.rolap.RolapMember} that delegates all calls
020 * to an underlying member.
021 *
022 * @author jhyde
023 * @since Mar 16, 2010
024 */
025public class DelegatingRolapMember extends RolapMemberBase {
026    public final RolapMember member;
027
028    protected DelegatingRolapMember(RolapMember member) {
029        super();
030        this.member = member;
031    }
032
033    public RolapLevel getLevel() {
034        return member.getLevel();
035    }
036
037    public Object getKey() {
038        return member.getKey();
039    }
040
041    public RolapMember getParentMember() {
042        return member.getParentMember();
043    }
044
045    public RolapHierarchy getHierarchy() {
046        return member.getHierarchy();
047    }
048
049    public String getParentUniqueName() {
050        return member.getParentUniqueName();
051    }
052
053    public MemberType getMemberType() {
054        return member.getMemberType();
055    }
056
057    public boolean isParentChildLeaf() {
058        return member.isParentChildLeaf();
059    }
060
061    public void setName(String name) {
062        member.setName(name);
063    }
064
065    public boolean isAll() {
066        return member.isAll();
067    }
068
069    public boolean isMeasure() {
070        return member.isMeasure();
071    }
072
073    public boolean isNull() {
074        return member.isNull();
075    }
076
077    public boolean isChildOrEqualTo(Member member2) {
078        return member.isChildOrEqualTo(member2);
079    }
080
081    public boolean isCalculated() {
082        return member.isCalculated();
083    }
084
085    public boolean isEvaluated() {
086        return member.isEvaluated();
087    }
088
089    public int getSolveOrder() {
090        return member.getSolveOrder();
091    }
092
093    public Exp getExpression() {
094        return member.getExpression();
095    }
096
097    public List<Member> getAncestorMembers() {
098        return member.getAncestorMembers();
099    }
100
101    public boolean isCalculatedInQuery() {
102        return member.isCalculatedInQuery();
103    }
104
105    public Object getPropertyValue(String propertyName) {
106        return member.getPropertyValue(propertyName);
107    }
108
109    public Object getPropertyValue(String propertyName, boolean matchCase) {
110        return member.getPropertyValue(propertyName, matchCase);
111    }
112
113    public String getPropertyFormattedValue(String propertyName) {
114        return member.getPropertyFormattedValue(propertyName);
115    }
116
117    public void setProperty(String name, Object value) {
118        member.setProperty(name, value);
119    }
120
121    public Property[] getProperties() {
122        return member.getProperties();
123    }
124
125    public int getOrdinal() {
126        return member.getOrdinal();
127    }
128
129    public Comparable getOrderKey() {
130        return member.getOrderKey();
131    }
132
133    public boolean isHidden() {
134        return member.isHidden();
135    }
136
137    public int getDepth() {
138        return member.getDepth();
139    }
140
141    public Member getDataMember() {
142        return member.getDataMember();
143    }
144
145    @SuppressWarnings({"unchecked"})
146    public int compareTo(Object o) {
147        return member.compareTo(o);
148    }
149
150    public String getUniqueName() {
151        return member.getUniqueName();
152    }
153
154    public String getName() {
155        return member.getName();
156    }
157
158    public String getDescription() {
159        return member.getDescription();
160    }
161
162    public OlapElement lookupChild(
163        SchemaReader schemaReader, Id.Segment s, MatchType matchType)
164    {
165        return member.lookupChild(schemaReader, s, matchType);
166    }
167
168    public Map<String, Annotation> getAnnotationMap() {
169        return member.getAnnotationMap();
170    }
171
172    public String getQualifiedName() {
173        return member.getQualifiedName();
174    }
175
176    public String getCaption() {
177        return member.getCaption();
178    }
179
180    public Dimension getDimension() {
181        return member.getDimension();
182    }
183
184    public boolean isAllMember() {
185        return member.isAllMember();
186    }
187}
188
189// End DelegatingRolapMember.java