|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.birt.chart.datafeed.ResultSetWrapper
Wraps an implementation specific host resultset into a chart specific resultset that may be subsequently bound to individual series associated with a chart instance.
Constructor Summary | |
ResultSetWrapper(java.util.Set stExpressionKeys,
java.util.List liResultSet,
boolean bGrouped)
The default constructor that allows creation of a resultset wrapper |
Method Summary | |
void |
applySeriesGrouping(SeriesDefinition sd,
java.lang.String[] saExpressionKeys)
Groups rows of data as specified in the grouping criteria for the series definition |
static int |
compareObjects(java.lang.Object a,
java.lang.Object b)
Compares two objects of the same data type |
int |
getColumnCount()
Returns a pre-computed column count associated with the resultset wrapper instance |
int |
getColumnDataType(int iColumnIndex)
Returns the data type of specified column. |
int |
getGroupCount()
Returns a pre-computed group count associated with the resultset wrapper instance |
java.lang.Object |
getGroupKey(int iGroupIndex,
int iColumnIndex)
Extracts the group's key value that remains unchanged for a given group |
java.lang.Object |
getGroupKey(int iGroupIndex,
java.lang.String sExpressionKey)
Extracts the group's key value that remains unchanged for a given group |
int |
getGroupRowCount(int iGroupIndex)
Returns the row count in specified group. |
java.lang.Object[] |
getMergedGroupingBaseValues(int iColumnIndex,
SortOption sorting)
Returns the values for given column and compute index arrays. |
int |
getRowCount()
Returns the number of rows of data associated with the resultset wrapper instance |
ResultSetDataSet |
getSubset(org.eclipse.emf.common.util.EList elExpressions)
Creates an instance of a resultset subset that uses references to dynamically compute a subset of the original resultset instance rather than duplicate a copy of the original resultset data content |
ResultSetDataSet |
getSubset(int iColumnIndex)
Creates an instance of a resultset subset that uses references to dynamically compute a subset of the original resultset instance rather than duplicate a copy of the original resultset data content |
ResultSetDataSet |
getSubset(int iGroupIndex,
org.eclipse.emf.common.util.EList elExpressionKeys)
Creates an instance of a resultset subset that uses references to dynamically compute a subset of the original resultset instance rather than duplicate a copy of the original resultset data content |
ResultSetDataSet |
getSubset(int iGroupIndex,
int iColumnIndex)
Creates an instance of a resultset subset that uses references to dynamically compute a subset of the original resultset instance rather than duplicate a copy of the original resultset data content |
ResultSetDataSet |
getSubset(int iGroupIndex,
java.lang.String sExpressionKey)
Creates an instance of a resultset subset that uses references to dynamically compute a subset of the original resultset instance rather than duplicate a copy of the original resultset data content |
ResultSetDataSet |
getSubset(int iGroupIndex,
java.lang.String[] sExpressionKeys)
Creates an instance of a resultset subset that uses references to dynamically compute a subset of the original resultset instance rather than duplicate a copy of the original resultset data content |
ResultSetDataSet |
getSubset(java.lang.String sExpressionKey)
Creates an instance of a resultset subset that uses references to dynamically compute a subset of the original resultset instance rather than duplicate a copy of the original resultset data content |
ResultSetDataSet |
getSubset(java.lang.String[] sExpressionKeys)
Creates an instance of a resultset subset that uses references to dynamically compute a subset of the original resultset instance rather than duplicate a copy of the original resultset data content |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ResultSetWrapper(java.util.Set stExpressionKeys, java.util.List liResultSet, boolean bGrouped)
stExpressionKeys
- The set of expressions associated with each column in the
resultsetliResultSet
- A list of rows that represent the actual resultset data
content. Each row contains an Object[]Method Detail |
public final void applySeriesGrouping(SeriesDefinition sd, java.lang.String[] saExpressionKeys) throws ChartException
sd
-
GenerationException
ChartException
public final int getGroupCount()
public final int getGroupRowCount(int iGroupIndex)
iGroupIndex
-
public final int getColumnCount()
public final int getRowCount()
public final java.lang.Object getGroupKey(int iGroupIndex, java.lang.String sExpressionKey)
iGroupIndex
- The group index for which the key is requestedsExpressionKey
- The expression column that holds the group key value
public final java.lang.Object getGroupKey(int iGroupIndex, int iColumnIndex)
iGroupIndex
- The group index for which the key is requestediColumnIndex
- The column index from which the group key value is to be
extracted
public final ResultSetDataSet getSubset(int iGroupIndex, java.lang.String sExpressionKey)
iGroupIndex
- The group number for which a subset is requestedsExpressionKey
- A single expression column for which a subset is requested
public final ResultSetDataSet getSubset(int iGroupIndex, org.eclipse.emf.common.util.EList elExpressionKeys)
iGroupIndex
- The group number for which a subset is requestedelExpressionKeys
- The expression columns for which a subset is requested
public final ResultSetDataSet getSubset(int iGroupIndex, java.lang.String[] sExpressionKeys)
iGroupIndex
- The group number for which a subset is requestedsExpressionKeys
- The expression columns for which a subset is requested
public final ResultSetDataSet getSubset(int iGroupIndex, int iColumnIndex)
iGroupIndex
- The group number for which a subset is requestediColumnIndex
- A single column (defined by the index) for which the subset is
requested
public final ResultSetDataSet getSubset(org.eclipse.emf.common.util.EList elExpressions) throws ChartException
elExpressions
- The expression columns for which a resultset subset is being
requested
ChartException
public final ResultSetDataSet getSubset(java.lang.String sExpressionKey)
sExpressionKey
- A single expression column for which a resultset subset is
being requested
public final ResultSetDataSet getSubset(java.lang.String[] sExpressionKeys) throws ChartException
sExpressionKeys
- The expression columns for which a resultset subset is being
requested
ChartException
public final ResultSetDataSet getSubset(int iColumnIndex)
iColumnIndex
- A single column for which a resultset subset is being
requested
public final java.lang.Object[] getMergedGroupingBaseValues(int iColumnIndex, SortOption sorting)
iColumnIndex
-
public final int getColumnDataType(int iColumnIndex)
iColumnIndex
-
public static int compareObjects(java.lang.Object a, java.lang.Object b)
a
- Object oneb
- Object two
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |