Пример #1
0
        public virtual void SetCurrentAccess(object groupByKeyUntransformed, int agentInstanceId, AggregationGroupByRollupLevel rollupLevel) {
            var groupByKey = tableInstance.Table.PrimaryKeyIntoTableTransform.From(groupByKeyUntransformed);
            var bean = tableInstance.GetRowForGroupKey(groupByKey);
            if (bean != null) {
                currentAggregationRow = (AggregationRow) bean.Properties[0];
            }
            else {
                currentAggregationRow = null;
            }

            currentGroupKey = groupByKey;
        }
Пример #2
0
        public virtual void SetCurrentAccess(
            object groupByKey,
            int agentInstanceId,
            AggregationGroupByRollupLevel rollupLevel)
        {
            var bean = tableInstance.GetRowForGroupKey(groupByKey);
            if (bean != null) {
                currentAggregationRow = (AggregationRow) bean.Properties[0];
            }
            else {
                currentAggregationRow = null;
            }

            currentGroupKey = groupByKey;
        }