All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DataSetTypeCapabilities.cpp
Go to the documentation of this file.
1 /* Copyright (C) 2008-2013 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 {
41 }
42 
44 {
45 }
46 
48 {
49  return m_supportPrimaryKey;
50 }
51 
53 {
54  m_supportPrimaryKey = support;
55 }
56 
58 {
59  return m_supportUniqueKey;
60 }
61 
63 {
64  m_supportUniqueKey = support;
65 }
66 
68 {
69  return m_supportForeignKey;
70 }
71 
73 {
74  m_supportForeignKey = support;
75 }
76 
78 {
79  return m_supportSequence;
80 }
81 
83 {
84  m_supportSequence = support;
85 }
86 
88 {
89  return m_supportCheckConstraints;
90 }
91 
93 {
94  m_supportCheckConstraints = support;
95 }
96 
98 {
99  return m_supportIndex;
100 }
101 
103 {
104  m_supportIndex = support;
105 }
106 
108 {
109  return m_supportRTreeIndex;
110 }
111 
113 {
114  m_supportRTreeIndex = support;
115 }
116 
118 {
119  return m_supportBTreeIndex;
120 }
121 
123 {
124  m_supportBTreeIndex = support;
125 }
126 
128 {
129  return m_supportHashIndex;
130 }
131 
133 {
134  m_supportHashIndex = support;
135 }
136 
138 {
139  return m_supportQuadTreeIndex;
140 }
141 
143 {
144  m_supportQuadTreeIndex = support;
145 }
146 
148 {
149  m_supportPrimaryKey = true;
150  m_supportUniqueKey = true;
151  m_supportForeignKey = true;
152  m_supportSequence = true;
153  m_supportCheckConstraints = true;
154  m_supportIndex = true;
155  m_supportRTreeIndex = true;
156  m_supportBTreeIndex = true;
157  m_supportHashIndex = true;
158  m_supportQuadTreeIndex = true;
159 }
void setSupportQuadTreeIndex(const bool &support)
void setSupportPrimaryKey(const bool &support)
void setSupportIndex(const bool &support)
void setSupportCheckConstraints(const bool &support)
void setSupportHashIndex(const bool &support)
void setSupportUniqueKey(const bool &support)
A class that informs what kind of constraint and index is supported by a given data source...
void setSupportBTreeIndex(const bool &support)
void setSupportSequence(const bool &support)
void setSupportRTreeIndex(const bool &support)
void setSupportForeingKey(const bool &support)