KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > jpivot > olap > model > QueryResultHandler


1 /*
2  * ====================================================================
3  * This software is subject to the terms of the Common Public License
4  * Agreement, available at the following URL:
5  * http://www.opensource.org/licenses/cpl.html .
6  * Copyright (C) 2003-2004 TONBELLER AG.
7  * All Rights Reserved.
8  * You must accept the terms of that agreement to use this software.
9  * ====================================================================
10  *
11  *
12  */

13
14 package com.tonbeller.jpivot.olap.model;
15
16 import java.util.List JavaDoc;
17 import java.util.Map JavaDoc;
18
19 /**
20  * Query Result Processor
21  */

22 public interface QueryResultHandler {
23
24   /**
25    * handle AxisInfo Tag, called for any AxisInfo
26    */

27   void handleAxisInfo(String JavaDoc axisName, int axisNumber);
28
29   /**
30     * handle HierarchyInfo Tag, called for any AxisInfo,HierarchyInfo
31     */

32   void handleHierInfo(String JavaDoc hierName, int axisNumber, int number);
33
34   /**
35     * handle Axis Tag, called for any axis
36     */

37   void handleAxis(String JavaDoc axisName, int axisOrdinal);
38
39   /**
40     * handle Tuple Tag, called for any axis, Tuple
41     */

42   void handleTuple(int axisOrdinal, int positionOrdinal);
43
44   /**
45     * handle Member Tag, called for any member, axis, Tuple
46     */

47   void handleMember(
48     String JavaDoc uniqueName,
49     String JavaDoc caption,
50     String JavaDoc levUName,
51     String JavaDoc displayInfo,
52     Map JavaDoc otherProps,
53     int axisOrdinal,
54     int positionOrdinal,
55     int memberOrdinal);
56
57   /**
58     * handle CellData Tag
59     */

60    void handleCellData();
61
62   /**
63     * handle Cell tag
64     */

65   void handleCell( int iOrdinal, Object JavaDoc value, String JavaDoc fmtValue, String JavaDoc fontSize);
66
67
68   /**
69    * holds data for the drillthrough header
70    * @param headerList
71    */

72   void setDrillHeader ( Map JavaDoc header);
73
74   /**
75    * sets the results for a drillthrough (is an arraylist of map)
76    * @param rows
77    */

78   void setDrillRows(List JavaDoc rows);
79
80   
81 } // QueryResultHandler
82
Popular Tags