📄 mondrianmdxquery.java
字号:
/*
* ====================================================================
* 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 .
* Copyright (C) 2003-2004 TONBELLER AG.
* All Rights Reserved.
* You must accept the terms of that agreement to use this software.
* ====================================================================
*
*
*/
package com.tonbeller.jpivot.mondrian;
import com.tonbeller.jpivot.core.ExtensionSupport;
import com.tonbeller.jpivot.olap.model.OlapException;
import com.tonbeller.jpivot.olap.navi.MdxQuery;
import com.tonbeller.wcf.format.FormatException;
/**
* Created on 19.12.2002
*
* @author av
*/
public class MondrianMdxQuery extends ExtensionSupport implements MdxQuery {
public MondrianMdxQuery() {
super.setId(MdxQuery.ID);
}
/**
* @see com.tonbeller.jpivot.olap.navi.MdxQuery#getMdxQuery()
*/
public String getMdxQuery() {
MondrianModel m = (MondrianModel) getModel();
return m.getCurrentMdx();
}
/**
* @see com.tonbeller.jpivot.olap.navi.MdxQuery#setMdxQuery(String)
*/
public void setMdxQuery(String mdxQuery) {
try {
MondrianModel m = (MondrianModel) getModel();
if (m.setUserMdx(mdxQuery))
m.fireModelChanged(); // only if changed
} catch (OlapException e) {
throw new FormatException(e.getMessage());
}
}
} // End MondrianMdxQuery
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -