testconnection.java

来自「OLAP 的客户端代码」· Java 代码 · 共 18 行

JAVA
18
字号
package com.tonbeller.jpivot.xmla;

import com.tonbeller.jpivot.olap.model.OlapException;

/**
 * provide settings for test environment
 */
public class TestConnection {

  public static void initModel(XMLA_Model model) throws OlapException {
    String uri = System.getProperty("xmla.uri", "http://TBNTSRV3/XML4A/msxisapi.dll");
    //String uri = System.getProperty("xmla.uri", "http://PCHH/XMLA/msxisapi.dll");
    model.setUri(uri);
    String catalog = System.getProperty("xmla.catalog", "Foodmart 2000");
    model.setCatalog(catalog);
    model.initialize();
  }
}

⌨️ 快捷键说明

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