2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 // Licensed under the Apache License, Version 2.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://www.apache.org/licenses/LICENSE-2.0
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
19 * @brief This is the header file for the built-in data types.
21 * This header file contains the declarations of the commonly used built-in data types.
24 #ifndef _FBASE_TYPES_H_
25 #define _FBASE_TYPES_H_
28 #include <FBaseDataType.h>
31 namespace Tizen { namespace Base
37 * Defines the order of sorting.
43 SORT_ORDER_ASCENDING = 0, /**< A constant for sorting the results in ascending order */
44 SORT_ORDER_DESCENDING, /**< A constant for sorting the results in descending order */
45 SORT_ORDER_NONE /**< A constant for indicating the results are not sorted */
50 * @enum StringMatchCriteria
52 * Defines the matching criteria for strings.
56 enum StringMatchCriteria
58 STRING_MATCH_CRITERIA_EXACT = 0, /**< A constant for matching the strings exactly */
59 STRING_MATCH_CRITERIA_START_WITH, /**< A constant for matching the strings starting with the specified characters */
60 STRING_MATCH_CRITERIA_CONTAIN, /**< A constant for matching the strings partially */
61 STRING_MATCH_CRITERIA_WILDCARD /**< A constant for matching the strings supporting the wildcard characters */
66 * @enum ComparisonOperator
68 * Defines a set of comparison operators whose semantics follow the SQL standards by default,
69 * but can be overridden by each API that uses this type, depending on the semantics and intention of the API.
73 enum ComparisonOperator
75 COMPARISON_OP_EQUAL = 0, /**< A comparison operator that checks the value equality */
76 COMPARISON_OP_NOT_EQUAL, /**< A comparison operator that checks the value inequality */
77 COMPARISON_OP_GREATER_THAN, /**< A comparison operator that checks whether a value is greater than the other */
78 COMPARISON_OP_LESS_THAN, /**< A comparison operator that checks whether a value is less than the other */
79 COMPARISON_OP_GREATER_THAN_EQUAL_TO, /**< A comparison operator that checks whether a value is greater than or equal to the other */
80 COMPARISON_OP_LESS_THAN_EQUAL_TO, /**< A comparison operator that checks whether a value is less than or equal to the other */
81 COMPARISON_OP_LIKE, /**< A comparison operator that checks whether a value is like the other, where the exact matching condition may vary depending on the definition of each specific API */
82 COMPARISON_OP_IS_NULL, /**< A comparison operator that returns @c true when a value does not exist for the given operand */
83 COMPARISON_OP_IS_NOT_NULL /**< A comparison operator that returns @c true when a value exists for the given operand */
88 #endif // _FBASE_TYPES_H_