1 13 14 package com.tonbeller.jpivot.xmla; 15 16 import java.util.Collections ; 17 import java.util.List ; 18 19 import com.tonbeller.jpivot.olap.model.Hierarchy; 20 import com.tonbeller.jpivot.olap.navi.PlaceMembersOnAxes; 21 import com.tonbeller.jpivot.olap.query.Quax; 22 23 27 public class XMLA_PlaceMembers extends XMLA_PlaceHierarchies implements PlaceMembersOnAxes { 28 29 32 public XMLA_PlaceMembers() { 33 setId(PlaceMembersOnAxes.ID); 34 } 35 36 40 public Object createMemberExpression(List members) { 41 return members; 42 } 43 44 48 public List findVisibleMembers(Hierarchy hier) { 49 50 XMLA_Model model = (XMLA_Model) getModel(); 51 XMLA_QueryAdapter adapter = (XMLA_QueryAdapter) model.getQueryAdapter(); 52 53 Quax quax = adapter.findQuax(hier.getDimension()); 55 56 if (quax == null) 57 return Collections.EMPTY_LIST; 59 int iDim = quax.dimIdx(hier.getDimension()); 60 61 List memberList = XMLA_Util.collectMembers(quax.getPosTreeRoot(), iDim); 65 66 95 return memberList; 96 } 97 98 } | Popular Tags |