Class sap.ui.model.analytics.odata4analytics.QueryResultModule: sap/ui/model/analytics/odata4analytics
Representation of an entity type annotated with sap:semantics="aggregate".
Constructor Summary
new sap.ui.model.analytics.odata4analytics.QueryResult(oModel, oEntityType, oEntitySet, oParameterization)Create a representation of an analytic query.
Method Summary
Constructor Detail
new sap.ui.model.analytics.odata4analytics.QueryResult(oModel, oEntityType, oEntitySet, oParameterization)
Create a representation of an analytic query. Do not create your own instances.
Parameters:
{sap.ui.model.analytics.odata4analytics.Model} | oModel | The analytical model containing this query result entity set |
{sap.ui.model.analytics.odata4analytics.EntityType} | oEntityType | The OData entity type for this query |
{sap.ui.model.analytics.odata4analytics.EntitySet} | oEntitySet | The OData entity set for this query offered by the OData service |
{sap.ui.model.analytics.odata4analytics.Parameterization} | oParameterization | The parameterization of this query, if any |
Method Detail
findDimensionByName(sName): sap.ui.model.analytics.odata4analytics.Dimension
Find dimension by name
Parameters:
{string} | sName | Dimension name |
Returns:
{sap.ui.model.analytics.odata4analytics.Dimension} | The dimension object with this name or null if it does not exist |
findDimensionByPropertyName(sName): sap.ui.model.analytics.odata4analytics.Dimension
Find dimension by property name
Parameters:
{string} | sName | Property name |
Returns:
{sap.ui.model.analytics.odata4analytics.Dimension} | The dimension object to which the given property name is related, because the property holds the dimension key, its text, or is an attribute of this dimension. If no such dimension exists, null is returned. |
findMeasureByName(sName): sap.ui.model.analytics.odata4analytics.Measure
Find measure by name
Parameters:
{string} | sName | Measure name |
Returns:
{sap.ui.model.analytics.odata4analytics.Measure} | The measure object with this name or null if it does not exist |
findMeasureByPropertyName(sName): sap.ui.model.analytics.odata4analytics.Measure
Find measure by property name
Parameters:
{string} | sName | Property name |
Returns:
{sap.ui.model.analytics.odata4analytics.Measure} | The measure object to which the given property name is related, because the property holds the raw measure value or its formatted value. If no such measure exists, null is returned. |
getAllDimensionNames(): array(string)
Get the names of all dimensions included in the query result
Returns:
{array(string)} | List of all dimension names |
getAllDimensions(): object
Get all dimensions included in this query result
Returns:
{object} | An object with individual JS properties for each dimension included in the query result. The JS object properties all are objects of type odata4analytics.Dimension. The names of the JS object properties are given by the OData entity type property names representing the dimension keys. |
getAllMeasureNames(): array(string)
Get the names of all measures included in the query result
Returns:
{array(string)} | List of all measure names |
getAllMeasures(): object
Get all measures included in this query result
Returns:
{object} | An object with individual JS properties for each measure included in the query result. The JS object properties all are objects of type odata4analytics.Measure. The names of the JS object properties are given by the OData entity type property names representing the measure raw values. |
getEntitySet(): sap.ui.model.analytics.odata4analytics.EntitySet
Get the entity set representing this query result in the OData model
Returns:
{sap.ui.model.analytics.odata4analytics.EntitySet} | The OData entity set representing this query result |
getEntityType(): sap.ui.model.analytics.odata4analytics.EntityType
Get the entity type defining the type of this query result in the OData model
Returns:
{sap.ui.model.analytics.odata4analytics.EntityType} | The OData entity type for this query result |
getModel(): object
Get the analytical model containing the entity set for this query result
Returns:
{object} | The analytical representation of the OData model |
getName(): string
Get the name of the query result
Returns:
{string} | The fully qualified name of the query result, which is identical with the name of the entity set representing the query result in the OData service |
getParameterization(): sap.ui.model.analytics.odata4analytics.Parameterization
Get the parameterization of this query result
Returns:
{sap.ui.model.analytics.odata4analytics.Parameterization} | The object for the parameterization or null if the query result is not parameterized |