Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.DbExplorer.Interfaces/DbColumn.cs @ 8352

Last change on this file since 8352 was 7267, checked in by gkronber, 13 years ago

#1734 updated copyright year in all files of the DataImporter branch

File size: 2.5 KB
Line 
1#region License Information
2/* HeuristicLab
3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
4 *
5 * This file is part of HeuristicLab.
6 *
7 * HeuristicLab is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * HeuristicLab is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
19 */
20#endregion
21
22using System;
23using System.Collections.Generic;
24using System.Linq;
25using System.Text;
26using System.Xml;
27using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
28
29namespace HeuristicLab.DataImporter.DbExplorer.Interfaces {
30  [StorableClass]
31  public class DbColumn {
32    private DbColumn()
33      : base() {
34    }
35
36    public DbColumn(string columnName, string sqlDataType) {
37      this.columnName = columnName;
38      this.sqlDataType = sqlDataType;
39    }
40
41    [Storable]
42    private string columnName;
43    public string ColumnName {
44      get { return this.columnName; }
45      set { this.columnName = value; }
46    }
47
48    [Storable]
49    private string sqlDataType;
50    public string SqlDataType {
51      get { return this.sqlDataType; }
52      set { this.sqlDataType = value; }
53    }
54
55    [Storable]
56    private string minValue;
57    public string MinValue {
58      get { return this.minValue; }
59      set { this.minValue = value; }
60    }
61
62    [Storable]
63    private string maxValue;
64    public string MaxValue {
65      get { return this.maxValue; }
66      set { this.maxValue = value; }
67    }
68
69    [Storable]
70    private string likeValue;
71    public string LikeValue {
72      get { return this.likeValue; }
73      set { this.likeValue = value; }
74    }
75
76    [Storable]
77    private bool filter;
78    public bool FilterColumn {
79      get { return this.filter; }
80      set { this.filter = value; }
81    }
82
83    [Storable]
84    private bool selected;
85    public bool Selected {
86      get { return selected; }
87      set { selected = value; }
88    }
89
90    public override string ToString() {
91      return this.columnName + "<" + this.sqlDataType + ">";
92    }
93  }
94}
Note: See TracBrowser for help on using the repository browser.