@Entity public class ChartQuery extends Object
This class represents a query. It is composed of AxisColumn, Filter and MeasureColumns.
When a query has a strategy = MAIN, it usually represents a ChartDefinition (ie a ChartDefinition points to them). However in other cases
they implement the business of a ColumnPrototype which has a ColumnType=CALCULATED. The query is thus a dependency of
a main query. They way it is plugged into the main query depends on a strategy :
A main query always has a strategy = MAIN and a NaturalJoinStyle = INNER. For the other, for now these attributes are hardcoded in the database and cannot be set yet.
| Modifier and Type | Class and Description |
|---|---|
static class |
ChartQuery.NaturalJoinStyle |
static class |
ChartQuery.QueryStrategy |
| Constructor and Description |
|---|
ChartQuery() |
| Modifier and Type | Method and Description |
|---|---|
List<AxisColumn> |
getAxis() |
List<Filter> |
getFilters() |
Map<ColumnRole,Set<SpecializedEntityType>> |
getInvolvedEntities()
Returns which entities are covered by this chart, sorted by roles
|
ChartQuery.NaturalJoinStyle |
getJoinStyle() |
List<MeasureColumn> |
getMeasures() |
ChartQuery.QueryStrategy |
getStrategy() |
void |
setAxis(List<AxisColumn> axis) |
void |
setFilters(List<Filter> filters) |
void |
setJoinStyle(ChartQuery.NaturalJoinStyle joinStyle) |
void |
setMeasures(List<MeasureColumn> measures) |
void |
setStrategy(ChartQuery.QueryStrategy strategy) |
public List<AxisColumn> getAxis()
public List<MeasureColumn> getMeasures()
public void setAxis(List<AxisColumn> axis)
public void setMeasures(List<MeasureColumn> measures)
public ChartQuery.QueryStrategy getStrategy()
public ChartQuery.NaturalJoinStyle getJoinStyle()
public void setStrategy(ChartQuery.QueryStrategy strategy)
public void setJoinStyle(ChartQuery.NaturalJoinStyle joinStyle)
public Map<ColumnRole,Set<SpecializedEntityType>> getInvolvedEntities()
Copyright © 2010–2016 Henix, henix.fr. All rights reserved.