it.eng.spagobi.engines.qbe.crosstable
Class CrossTab
java.lang.Object
it.eng.spagobi.engines.qbe.crosstable.CrossTab
public class CrossTab
- extends java.lang.Object
- Author:
- Alberto Ghedin
This Class encapsulates the crossTab
The publics methods are:
- CrossTab(IDataStore dataStore, CrosstabDefinition crosstabDefinition) that builds
the crossTab (headers structure and data)
- getJSONCrossTab() that returns the JSON representation of the crosstab
Constructor Summary |
CrossTab(it.eng.spagobi.tools.dataset.common.datastore.IDataStore dataStore,
CrosstabDefinition crosstabDefinition)
Builds the crossTab (headers structure and data) |
Method Summary |
org.json.JSONObject |
getJSONCrossTab()
Get the JSON representation of the cross tab |
org.json.JSONArray |
getJSONDataMatrix()
Serialize the matrix in a JSON format |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CROSSTAB_NODE_JSON_KEY
public static final java.lang.String CROSSTAB_NODE_JSON_KEY
- See Also:
- Constant Field Values
CROSSTAB_NODE_JSON_CHILDS
public static final java.lang.String CROSSTAB_NODE_JSON_CHILDS
- See Also:
- Constant Field Values
CROSSTAB_JSON_ROWS_HEADERS
public static final java.lang.String CROSSTAB_JSON_ROWS_HEADERS
- See Also:
- Constant Field Values
CROSSTAB_JSON_COLUMNS_HEADERS
public static final java.lang.String CROSSTAB_JSON_COLUMNS_HEADERS
- See Also:
- Constant Field Values
CROSSTAB_JSON_DATA
public static final java.lang.String CROSSTAB_JSON_DATA
- See Also:
- Constant Field Values
CROSSTAB_JSON_CONFIG
public static final java.lang.String CROSSTAB_JSON_CONFIG
- See Also:
- Constant Field Values
CROSSTAB_JSON_MEASURES_METADATA
public static final java.lang.String CROSSTAB_JSON_MEASURES_METADATA
- See Also:
- Constant Field Values
MEASURE_NAME
public static final java.lang.String MEASURE_NAME
- See Also:
- Constant Field Values
MEASURE_TYPE
public static final java.lang.String MEASURE_TYPE
- See Also:
- Constant Field Values
MEASURE_FORMAT
public static final java.lang.String MEASURE_FORMAT
- See Also:
- Constant Field Values
CrossTab
public CrossTab(it.eng.spagobi.tools.dataset.common.datastore.IDataStore dataStore,
CrosstabDefinition crosstabDefinition)
throws org.json.JSONException
- Builds the crossTab (headers structure and data)
- Parameters:
dataStore:
- the source of the datacrosstabDefinition:
- the definition of the crossTab
- Throws:
org.json.JSONException
getJSONCrossTab
public org.json.JSONObject getJSONCrossTab()
throws org.json.JSONException
- Get the JSON representation of the cross tab
- Returns:
- JSON representation of the cross tab
- Throws:
org.json.JSONException
getJSONDataMatrix
public org.json.JSONArray getJSONDataMatrix()
- Serialize the matrix in a JSON format
- Returns:
- the matrix in a JSON format