public override void Execute()
        {
            base.Execute();

            if (_columnInfo == null)
            {
                _columnInfo = SelectOne(_candidates, _columnInfo != null ? _columnInfo.Name : "");
            }

            if (_columnInfo == null)
            {
                return;
            }

            ViewColumnExtractCollection collection = null;

            if (_filter != null)
            {
                collection = new ViewColumnExtractCollection(_columnInfo, _viewType, _filter);
            }
            if (_container != null)
            {
                collection = new ViewColumnExtractCollection(_columnInfo, _viewType, _container);
            }

            if (collection == null)
            {
                throw new Exception("ViewFilterMatchData Command had no filter or container");
            }

            BasicActivator.ShowData(collection);
        }
예제 #2
0
        private IViewSQLAndResultsCollection CreateCollection(ColumnInfo c)
        {
            var toReturn = new ViewColumnExtractCollection(c, _viewType);

            if (!c.IsNumerical() && _viewType == ViewType.Distribution)
            {
                SetImpossible("Column is not numerical");
            }

            return(toReturn);
        }
예제 #3
0
        private IViewSQLAndResultsCollection CreateCollection(ExtractionInformation ei)
        {
            var toReturn = new ViewColumnExtractCollection(ei, _viewType);

            if ((!ei.ColumnInfo?.IsNumerical() ?? false) && _viewType == ViewType.Distribution)
            {
                SetImpossible("Column is not numerical");
            }

            return(toReturn);
        }