public interface IDataServiceProvider
Modifier and Type | Field and Description |
---|---|
static int |
DATA_BINDING_REFERENCE |
static int |
HAS_CUBE
Indicates if chart has data cube
|
static int |
HAS_DATA_SET
Indicates if chart has data set
|
static int |
IN_MULTI_VIEWS |
static int |
INHERIT_COLUMNS_GROUPS |
static int |
INHERIT_COLUMNS_ONLY |
static int |
INHERIT_CUBE
Indicates if chart inherits data cube from container
|
static int |
INHERIT_DATA_SET
Indicates if chart inherits data set from container
|
static int |
IS_CUBE_AND_CATEGORY_NOT_TOP_LEVEL
Indicates if is cube and category is not top level
|
static int |
IS_CUBE_AND_SERIES_NOT_TOP_LEVEL
Indicates if is cube and series is not top level
|
static int |
MULTI_CUBE_DIMENSIONS
Indicates if current chart is using cube or sharing with crosstab or in
multi-view, and cube's dimension count > 1.
|
static int |
PART_CHART
Indicates if current chart is a part of whole chart, such as plot or
axis.
|
static int |
SHARE_CHART_QUERY |
static int |
SHARE_CHART_QUERY_RECURSIVELY
Indicates if the final shared object is chart.
|
static int |
SHARE_CROSSTAB_QUERY |
static int |
SHARE_QUERY |
static int |
SHARE_TABLE_QUERY |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
checkData(java.lang.String checkType,
java.lang.Object data)
Check data for the invoker.
|
boolean |
checkState(int state)
Checks if the state in provide includes this.
|
void |
dispose()
Disposes associated handles in this method.
|
java.lang.String[] |
getAllStyleDisplayNames()
Returns all available style display names.
|
java.lang.String[] |
getAllStyles()
Returns all available style names.
|
java.lang.String |
getCurrentStyle()
Returns the name of current used style.
|
java.lang.Object[] |
getDataForColumns(java.lang.String[] sExpressions,
int iMaxRecords,
boolean byRow)
Fetches data from dataset.
|
DataType |
getDataType(java.lang.String expression)
Returns the data type according to the query expression.
|
int |
getState()
Returns state information of current data service provider.
|
void |
initialize()
Does some initialization works in this method.
|
boolean |
isLivePreviewEnabled()
Returns whether live preview is enabled
|
IDataRowExpressionEvaluator |
prepareRowExpressionEvaluator(Chart cm,
java.util.List<java.lang.String> lExpressions,
int iMaxRecords,
boolean byRow)
Prepare row expression evaluator for chart to bind data.
|
void |
setStyle(java.lang.String styleName)
Sets current used style by specified style name.
|
boolean |
update(java.lang.String type,
java.lang.Object value)
Updates some custom data which is related with invoker.
|
static final int HAS_DATA_SET
static final int HAS_CUBE
static final int DATA_BINDING_REFERENCE
static final int IN_MULTI_VIEWS
static final int SHARE_QUERY
static final int PART_CHART
static final int MULTI_CUBE_DIMENSIONS
static final int SHARE_TABLE_QUERY
static final int SHARE_CROSSTAB_QUERY
static final int INHERIT_COLUMNS_ONLY
static final int INHERIT_COLUMNS_GROUPS
static final int SHARE_CHART_QUERY
static final int INHERIT_DATA_SET
static final int INHERIT_CUBE
static final int SHARE_CHART_QUERY_RECURSIVELY
static final int IS_CUBE_AND_CATEGORY_NOT_TOP_LEVEL
static final int IS_CUBE_AND_SERIES_NOT_TOP_LEVEL
void initialize() throws ChartException
ChartException
void dispose()
java.lang.String[] getAllStyles()
java.lang.String[] getAllStyleDisplayNames()
java.lang.String getCurrentStyle()
void setStyle(java.lang.String styleName)
java.lang.Object[] getDataForColumns(java.lang.String[] sExpressions, int iMaxRecords, boolean byRow) throws ChartException
sExpressions
- column expression array in the form of javascript. Null will
return all columns of dataset.iMaxRecords
- max row count. -1 returns default count or the preference
value.byRow
- true: by row first, false: by column firstChartException
boolean isLivePreviewEnabled()
DataType getDataType(java.lang.String expression)
expression
- IDataRowExpressionEvaluator prepareRowExpressionEvaluator(Chart cm, java.util.List<java.lang.String> lExpressions, int iMaxRecords, boolean byRow) throws ChartException
cm
- lExpressions
- iMaxRecords
- byRow
- ChartException
boolean update(java.lang.String type, java.lang.Object value)
type
- value
- ChartUIConstants.QUERY_CATEGORY
,
ChartUIConstants.QUERY_OPTIONAL
,
ChartUIConstants.QUERY_VALUE
int getState()
boolean checkState(int state)
state
- java.lang.Object checkData(java.lang.String checkType, java.lang.Object data)
checkType
- data
- Copyright © 2014 OpenText Corp. All rights reserved.