⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 membertree.java

📁 OLAP 的客户端代码
💻 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.olap.navi;

import com.tonbeller.jpivot.core.Extension;
import com.tonbeller.jpivot.olap.model.Hierarchy;
import com.tonbeller.jpivot.olap.model.Member;

/**
 * exposes parent/child relationship between members. 
 * Allows members to be displayed in a tree style GUI. 
 * Implementations will have to send metadata queries to the database.
 * @author av
 */

public interface MemberTree extends Extension {
  
  /** 
   * thrown if too many member would be returned
   */
  public class TooManyMembersException extends RuntimeException {
    public TooManyMembersException() {
      super();
    }
    public TooManyMembersException(Throwable cause) {
      super(cause);
    }
}
  
  /**
   * name of the Extension for lookup
   */
  public static final String ID = "memberTree";
  
  /**
   * @return the root members of a hierarchy. This is for example
   * the "All" member or the list of measures.
   */
  Member[] getRootMembers(Hierarchy hier) throws TooManyMembersException;
  
  /**
   * @return true if the member can be expanded
   */
  boolean hasChildren(Member member);
  
  /**
   * @return the children of the member
   */
  Member[] getChildren(Member member) throws TooManyMembersException;
  
  /**
   * @return the parent of member or null, if this is a root member
   */
  Member getParent(Member member);
}

⌨️ 快捷键说明

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