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 
te::da::UNKNOWN
@ UNKNOWN
Definition: Enums.h:67
te::da::B_TREE_TYPE
@ B_TREE_TYPE
Definition: Enums.h:109
te
TerraLib.
Definition: AddressGeocodingOp.h:52
te::da::LEFT_JOIN
@ LEFT_JOIN
Definition: Enums.h:53
te::da::PRIMARY_KEY
@ PRIMARY_KEY
Definition: Enums.h:68
te::da::IndexType
IndexType
Index type.
Definition: Enums.h:108
te::da::SET_DEFAULT
@ SET_DEFAULT
Definition: Enums.h:99
te::da::VIEW_TYPE
@ VIEW_TYPE
Definition: Enums.h:80
te::da::FKActionType
FKActionType
Type of action performed on the foreign key data.
Definition: Enums.h:94
te::da::SortOrder
SortOrder
Sort order type: asc or desc.
Definition: Enums.h:39
te::da::NATURAL_JOIN
@ NATURAL_JOIN
Definition: Enums.h:57
te::da::UNKNOWN_DATASET_TYPE
@ UNKNOWN_DATASET_TYPE
Definition: Enums.h:77
te::da::JoinType
JoinType
The type of join in a query.
Definition: Enums.h:50
te::da::INNER_JOIN
@ INNER_JOIN
Definition: Enums.h:52
te::da::SEQUENCE_TYPE
@ SEQUENCE_TYPE
Definition: Enums.h:83
te::da::ASC
@ ASC
Definition: Enums.h:41
te::da::CHECK
@ CHECK
Definition: Enums.h:71
te::da::FOREIGN_KEY
@ FOREIGN_KEY
Definition: Enums.h:69
te::da::TABLE_TYPE
@ TABLE_TYPE
Definition: Enums.h:78
te::da::REGULAR_FILE_TYPE
@ REGULAR_FILE_TYPE
Definition: Enums.h:85
te::da::QUAD_TREE_TYPE
@ QUAD_TREE_TYPE
Definition: Enums.h:111
te::da::FULL_OUTER_JOIN
@ FULL_OUTER_JOIN
Definition: Enums.h:55
te::da::R_TREE_TYPE
@ R_TREE_TYPE
Definition: Enums.h:110
te::da::SYSTEM_TABLE_TYPE
@ SYSTEM_TABLE_TYPE
Definition: Enums.h:79
te::da::QUERY_TYPE
@ QUERY_TYPE
Definition: Enums.h:81
te::da::JOIN
@ JOIN
Definition: Enums.h:51
te::da::TRIGGER_TYPE
@ TRIGGER_TYPE
Definition: Enums.h:84
te::da::HASH_TYPE
@ HASH_TYPE
Definition: Enums.h:112
te::da::CROSS_JOIN
@ CROSS_JOIN
Definition: Enums.h:56
te::da::SET_NULL
@ SET_NULL
Definition: Enums.h:98
te::da::CASCADE
@ CASCADE
Definition: Enums.h:97
te::da::UNIQUE_KEY
@ UNIQUE_KEY
Definition: Enums.h:70
te::da::ConstraintType
ConstraintType
A ConstraintType can have one of the following types:
Definition: Enums.h:66
te::da::RIGHT_JOIN
@ RIGHT_JOIN
Definition: Enums.h:54
te::da::INDEX_TYPE
@ INDEX_TYPE
Definition: Enums.h:82
te::da::DESC
@ DESC
Definition: Enums.h:40
te::da::RESTRICT
@ RESTRICT
Definition: Enums.h:96
te::da::NO_ACTION
@ NO_ACTION
Definition: Enums.h:95