123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161 |
- 'use strict';
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
- /**
- * Licensed Materials - Property of IBM
- * IBM Cognos Products: BI Cloud (C) Copyright IBM Corp. 2018, 2021
- * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
- */
- define(['../../../lib/@waca/dashboard-common/dist/core/APIFactory', '../../../api/DataItemAPI'], function (APIFactory, DataItemAPI) {
- var QueryResultColumn = function () {
- function QueryResultColumn(columnInfo) {
- _classCallCheck(this, QueryResultColumn);
- this.columnInfo = columnInfo;
- }
- QueryResultColumn.prototype.getAPI = function getAPI() {
- if (!this.api) {
- this.api = APIFactory.createAPI(this, [DataItemAPI]);
- }
- return this.api;
- };
- QueryResultColumn.prototype.getId = function getId() {
- return this.columnInfo.u;
- };
- QueryResultColumn.prototype.getLabel = function getLabel() {
- return this.columnInfo.d;
- };
- QueryResultColumn.prototype.getColumnId = function getColumnId() {
- return this.columnInfo.u;
- };
- QueryResultColumn.prototype.getAggregation = function getAggregation() {
- return this.columnInfo.aggregate;
- };
- QueryResultColumn.prototype.getDataType = function getDataType() {
- throw 'getDataType is not implemented for QueryResultColumn';
- };
- QueryResultColumn.prototype.isDateOrTimeType = function isDateOrTimeType() {
- throw 'isDateOrTimeType is not implemented for QueryResultColumn';
- };
- // ColumnInfo is extracted from the itemClass of the query response. Only the fact (measure) type has an aggregate value in the itemClass.
- QueryResultColumn.prototype.getType = function getType() {
- return this.columnInfo.aggregate ? 'fact' : 'attribute';
- };
- QueryResultColumn.prototype.getNavigationPathId = function getNavigationPathId() {
- throw 'getNavigationPathId is not implemented for QueryResultColumn';
- };
- QueryResultColumn.prototype.setNavigationPathId = function setNavigationPathId() {
- throw 'setNavigationPathId is not implemented for QueryResultColumn';
- };
- QueryResultColumn.prototype.setAggregation = function setAggregation() {
- throw 'setAggregation is not implemented for QueryResultColumn';
- };
- QueryResultColumn.prototype.hasDefaultAggregation = function hasDefaultAggregation() {
- throw 'hasDefaultAggregation is not implemented for QueryResultColumn';
- };
- QueryResultColumn.prototype.hasDefaultSort = function hasDefaultSort() {
- throw 'hasDefaultSort is not implemented for QueryResultColumn';
- };
- QueryResultColumn.prototype.hasDefaultFormat = function hasDefaultFormat() {
- throw 'hasDefaultFormat is not implemented for QueryResultColumn';
- };
- QueryResultColumn.prototype.getMetadataColumn = function getMetadataColumn() {
- throw 'getMetadataColumn is not implemented for QueryResultColumn';
- };
- QueryResultColumn.prototype.getFormat = function getFormat() {
- throw 'getFormat is not implemented for QueryResultColumn';
- };
- QueryResultColumn.prototype.setFormat = function setFormat() {
- throw 'setFormat is not implemented for QueryResultColumn';
- };
- QueryResultColumn.prototype.getSort = function getSort() {
- throw 'getSort is not implemented for QueryResultColumn';
- };
- QueryResultColumn.prototype.setSort = function setSort() {
- throw 'setSort is not implemented for QueryResultColumn';
- };
- QueryResultColumn.prototype.getTopBottom = function getTopBottom() {
- throw 'getTopBottom is not implemented for QueryResultColumn';
- };
- QueryResultColumn.prototype.setTopBottom = function setTopBottom() {
- throw 'setTopBottom is not implemented for QueryResultColumn';
- };
- QueryResultColumn.prototype.canDrillDown = function canDrillDown() {
- throw 'canDrillDown is not implemented for QueryResultColumn';
- };
- QueryResultColumn.prototype.drillDown = function drillDown() {
- throw 'drillDown is not implemented for QueryResultColumn';
- };
- QueryResultColumn.prototype.getDrillDownValue = function getDrillDownValue() {
- throw 'getDrillDownValue is not implemented for QueryResultColumn';
- };
- QueryResultColumn.prototype.drillUp = function drillUp() {
- throw 'drillUp is not implemented for QueryResultColumn';
- };
- QueryResultColumn.prototype.getDrillUpValue = function getDrillUpValue() {
- throw 'getDrillUpValue is not implemented for QueryResultColumn';
- };
- QueryResultColumn.prototype.clearDrill = function clearDrill() {
- throw 'clearDrill is not implemented for QueryResultColumn';
- };
- QueryResultColumn.prototype.setBinning = function setBinning() {
- throw 'setBinning is not implemented for QueryResultColumn';
- };
- QueryResultColumn.prototype.getBinning = function getBinning() {
- throw 'getBinning is not implemented for QueryResultColumn';
- };
- QueryResultColumn.prototype.hasModelSort = function hasModelSort() {
- throw 'hasModelSort is not implemented for QueryResultColumn';
- };
- QueryResultColumn.prototype.getUnion = function getUnion() {
- throw 'getUnion is not implemented for QueryResultColumn';
- };
- QueryResultColumn.prototype.isColumnUnavailable = function isColumnUnavailable() {
- throw 'isColumnUnavailable is not implemented for QueryResultColumn';
- };
- QueryResultColumn.prototype.serializeActions = function serializeActions() {
- throw 'serializeActions is not implemented for QueryResultColumn';
- };
- return QueryResultColumn;
- }();
- return QueryResultColumn;
- });
- //# sourceMappingURL=QueryResultColumn.js.map
|