@Entity public class ChartQuery extends Object implements IChartQuery
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.
| Constructor and Description |
|---|
ChartQuery() |
| Modifier and Type | Method and Description |
|---|---|
ChartQuery |
createCopy() |
List<AxisColumn> |
getAxis() |
List<Filter> |
getFilters() |
Map<ColumnRole,Set<SpecializedEntityType>> |
getInvolvedEntities()
Returns which entities are covered by this chart, sorted by roles.
|
NaturalJoinStyle |
getJoinStyle() |
List<MeasureColumn> |
getMeasures() |
QueryStrategy |
getStrategy() |
void |
setAxis(List<AxisColumn> axis) |
void |
setFilters(List<Filter> filters) |
void |
setJoinStyle(NaturalJoinStyle joinStyle) |
void |
setMeasures(List<MeasureColumn> measures) |
void |
setStrategy(QueryStrategy strategy) |
public List<Filter> getFilters()
getFilters in interface IChartQuerypublic List<AxisColumn> getAxis()
getAxis in interface IChartQuerypublic List<MeasureColumn> getMeasures()
getMeasures in interface IChartQuerypublic void setAxis(List<AxisColumn> axis)
public void setMeasures(List<MeasureColumn> measures)
public QueryStrategy getStrategy()
getStrategy in interface IChartQuerypublic NaturalJoinStyle getJoinStyle()
getJoinStyle in interface IChartQuerypublic void setStrategy(QueryStrategy strategy)
public void setJoinStyle(NaturalJoinStyle joinStyle)
public Map<ColumnRole,Set<SpecializedEntityType>> getInvolvedEntities()
getInvolvedEntities in interface IChartQuerypublic ChartQuery createCopy()
Copyright © 2010–2016 Henix, henix.fr. All rights reserved.