Enums.h
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/Enums.h
22 
23  \brief General enumerations for the Data Access module.
24 */
25 
26 #ifndef __TERRALIB_DATAACCESS_INTERNAL_ENUMS_H
27 #define __TERRALIB_DATAACCESS_INTERNAL_ENUMS_H
28 
29 namespace te
30 {
31  namespace da
32  {
33  /*!
34  \enum SortOrder
35 
36  \brief Sort order type: asc or desc.
37  */
38  enum SortOrder
39  {
40  DESC, /*!< Descendent order type. */
41  ASC /*!< Ascendent order type. */
42  };
43 
44  /*!
45  \enum JoinType
46 
47  \brief The type of join in a query.
48  */
49  enum JoinType
50  {
51  JOIN, /*!< ... */
52  INNER_JOIN, /*!< ... */
53  LEFT_JOIN, /*!< left-outer-join */
54  RIGHT_JOIN, /*!< right-outer-jin... */
55  FULL_OUTER_JOIN, /*!< full-outer-jon... */
56  CROSS_JOIN, /*!< ... */
57  NATURAL_JOIN /*!< ... */
58  };
59 
60  /*!
61  \enum ConstraintType
62 
63  \brief A ConstraintType can have one of the following types:
64  */
66  {
67  UNKNOWN, /*!< Used when the constraint type is unknown. */
68  PRIMARY_KEY, /*!< Primary key constraint. */
69  FOREIGN_KEY, /*!< Foreign key constraint. */
70  UNIQUE_KEY, /*!< Unique key constraint. */
71  CHECK /*!< Check constraint. */
72  };
73 
74  /*! \brief An anonymous enum with the type of datasets retrieved from data sources. */
75  enum
76  {
86  };
87 
88  /*!
89  \enum FKActionType
90 
91  \brief Type of action performed on the foreign key data.
92  */
94  {
95  NO_ACTION, /*!< Indicates that the deletion or update would create a foreign key constraint violation. */
96  RESTRICT, /*!< Indicates that the deletion or update would create a foreign key constraint violation. */
97  CASCADE, /*!< Delete any rows referencing the deleted row, or update the value of the referencing column to the new value of the referenced column, respectively. */
98  SET_NULL, /*!< Set the referencing column(s) to null. */
99  SET_DEFAULT /*!< Set the referencing column(s) to their default values. */
100  };
101 
102  /*!
103  \enum IndexType
104 
105  \brief Index type.
106  */
108  {
109  B_TREE_TYPE, /*!< Btree index type. */
110  R_TREE_TYPE, /*!< RTree index type. */
111  QUAD_TREE_TYPE, /*!< QuadTree index type. */
112  HASH_TYPE /*!< Hash index type. */
113  };
114 
115  } // end namespace da
116 } // end namespace te
117 
118 #endif // __TERRALIB_DATAACCESS_INTERNAL_ENUMS_H
119 
FKActionType
Type of action performed on the foreign key data.
Definition: Enums.h:93
ConstraintType
A ConstraintType can have one of the following types:
Definition: Enums.h:65
URI C++ Library.
JoinType
The type of join in a query.
Definition: Enums.h:49
IndexType
Index type.
Definition: Enums.h:107
SortOrder
Sort order type: asc or desc.
Definition: Enums.h:38