DataSetTypeCapabilities.cpp
Go to the documentation of this file.
1 /* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2 
3  This file is part of the TerraLib - a Framework for building GIS enabled applications.
4 
5  TerraLib is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  TerraLib is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with TerraLib. See COPYING. If not, write to
17  TerraLib Team at <terralib-team@terralib.org>.
18  */
19 
20 /*!
21  \file terralib/dataaccess/dataset/DataSetTypeCapabilities.cpp
22 
23  \brief A class that informs what kind of constraint and index is supported by a given data source.
24 */
25 
26 // TerraLib
28 
30  : m_supportPrimaryKey(false),
31  m_supportUniqueKey(false),
32  m_supportForeignKey(false),
33  m_supportSequence(false),
34  m_supportCheckConstraints(false),
35  m_supportIndex(false),
36  m_supportRTreeIndex(false),
37  m_supportBTreeIndex(false),
38  m_supportHashIndex(false),
39  m_supportQuadTreeIndex(false),
40  m_supportAddColumn(false),
41  m_supportRemoveColumn(false),
42  m_supportDataEdition(false)
43 {
44 }
45 
47 {
48 }
49 
51 {
52  return m_supportPrimaryKey;
53 }
54 
56 {
57  m_supportPrimaryKey = support;
58 }
59 
61 {
62  return m_supportUniqueKey;
63 }
64 
66 {
67  m_supportUniqueKey = support;
68 }
69 
71 {
72  return m_supportForeignKey;
73 }
74 
76 {
77  m_supportForeignKey = support;
78 }
79 
81 {
82  return m_supportSequence;
83 }
84 
86 {
87  m_supportSequence = support;
88 }
89 
91 {
92  return m_supportCheckConstraints;
93 }
94 
96 {
97  m_supportCheckConstraints = support;
98 }
99 
101 {
102  return m_supportIndex;
103 }
104 
106 {
107  m_supportIndex = support;
108 }
109 
111 {
112  return m_supportRTreeIndex;
113 }
114 
116 {
117  m_supportRTreeIndex = support;
118 }
119 
121 {
122  return m_supportBTreeIndex;
123 }
124 
126 {
127  m_supportBTreeIndex = support;
128 }
129 
131 {
132  return m_supportHashIndex;
133 }
134 
136 {
137  m_supportHashIndex = support;
138 }
139 
141 {
142  return m_supportQuadTreeIndex;
143 }
144 
146 {
147  m_supportQuadTreeIndex = support;
148 }
149 
151 {
152  m_supportPrimaryKey = true;
153  m_supportUniqueKey = true;
154  m_supportForeignKey = true;
155  m_supportSequence = true;
156  m_supportCheckConstraints = true;
157  m_supportIndex = true;
158  m_supportRTreeIndex = true;
159  m_supportBTreeIndex = true;
160  m_supportHashIndex = true;
161  m_supportQuadTreeIndex = true;
162  m_supportAddColumn = true;
163  m_supportRemoveColumn = true;
164  m_supportDataEdition = true;
165 }
166 
168 {
169  return m_supportAddColumn;
170 }
171 
173 {
174  m_supportAddColumn = support;
175 }
176 
178 {
179  return m_supportRemoveColumn;
180 }
181 
183 {
184  m_supportRemoveColumn = support;
185 }
186 
188 {
189  return m_supportDataEdition;
190 }
191 
193 {
194  m_supportDataEdition = support;
195 }
void setSupportForeingKey(const bool &support)
void setSupportSequence(const bool &support)
void setSupportIndex(const bool &support)
void setSupportDataEdition(const bool &support)
void setSupportCheckConstraints(const bool &support)
void setSupportQuadTreeIndex(const bool &support)
void setSupportAddColumn(const bool &support)
A class that informs what kind of constraint and index is supported by a given data source...
void setSupportUniqueKey(const bool &support)
void setSupportBTreeIndex(const bool &support)
void setSupportHashIndex(const bool &support)
void setSupportRemoveColumn(const bool &support)
void setSupportPrimaryKey(const bool &support)
void setSupportRTreeIndex(const bool &support)