mondrianattributereference.java

来自「数据仓库展示程序」· Java 代码 · 共 82 行

JAVA
82
字号
/*
// $Id: //open/mondrian/src/main/mondrian/jolap/MondrianAttributeReference.java#3 $
// This software is subject to the terms of the Common Public License
// Agreement, available at the following URL:
// http://www.opensource.org/licenses/cpl.html.
// (C) Copyright 2002-2005 Kana Software, Inc. and others.
// All Rights Reserved.
// You must accept the terms of that agreement to use this software.
//
// jhyde, Dec 24, 2002
*/
package mondrian.jolap;

import org.omg.java.cwm.objectmodel.core.Attribute;

import javax.olap.OLAPException;
import javax.olap.query.calculatedmembers.OrdinateOperator;
import javax.olap.query.dimensionfilters.DataBasedMemberFilter;
import javax.olap.query.querycoremodel.AttributeReference;
import javax.olap.query.querycoremodel.DimensionView;
import javax.olap.query.querycoremodel.Ordinate;

/**
 * Implementation of {@link AttributeReference}.
 *
 * @author jhyde
 * @since Dec 24, 2002
 * @version $Id: //open/mondrian/src/main/mondrian/jolap/MondrianAttributeReference.java#3 $
 **/
class MondrianAttributeReference extends QueryObjectSupport
        implements AttributeReference {
    private MondrianDimensionView dimensionView;
    private Attribute attribute;

    public MondrianAttributeReference(MondrianDimensionView dimensionView) {
        super(false);
        this.dimensionView = dimensionView;
    }

    public DimensionView getOwner() throws OLAPException {
        return dimensionView;
    }

    public void setOwner(DimensionView value) throws OLAPException {
        dimensionView = (MondrianDimensionView) value;
    }

    public void setAttribute(Attribute attribute) throws OLAPException {
        this.attribute = attribute;
    }

    public Attribute getAttribute() throws OLAPException {
        return attribute;
    }

    public Ordinate getOrdinate() throws OLAPException {
        throw new UnsupportedOperationException();
    }

    public void setOrdinate(Ordinate value) throws OLAPException {
        throw new UnsupportedOperationException();
    }

    public void setOrdinateOperator(OrdinateOperator input) throws OLAPException {
        throw new UnsupportedOperationException();
    }

    public OrdinateOperator getOrdinateOperator() throws OLAPException {
        throw new UnsupportedOperationException();
    }

    public void setDataBasedMemberFilter(DataBasedMemberFilter input) throws OLAPException {
        throw new UnsupportedOperationException();
    }

    public DataBasedMemberFilter getDataBasedMemberFilter() throws OLAPException {
        throw new UnsupportedOperationException();
    }
}

// End MondrianAttributeReference.java

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?