1/*
2 * PROGRAM: JRD Access Method
3 * MODULE: obj.h
4 * DESCRIPTION: Object types in meta-data
5 *
6 * The contents of this file are subject to the Interbase Public
7 * License Version 1.0 (the "License"); you may not use this file
8 * except in compliance with the License. You may obtain a copy
9 * of the License at http://www.Inprise.com/IPL.html
10 *
11 * Software distributed under the License is distributed on an
12 * "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
13 * or implied. See the License for the specific language governing
14 * rights and limitations under the License.
15 *
16 * The Original Code was created by Inprise Corporation
17 * and its predecessors. Portions created by Inprise Corporation are
18 * Copyright (C) Inprise Corporation.
19 *
20 * All Rights Reserved.
21 * Contributor(s): ______________________________________.
22 */
23
24#ifndef JRD_OBJ_H
25#define JRD_OBJ_H
26
27// Object types used in RDB$DEPENDENCIES and RDB$USER_PRIVILEGES
28// Note: some values are hard coded in grant.gdl
29
30const int obj_relation = 0;
31const int obj_view = 1;
32const int obj_trigger = 2;
33const int obj_computed = 3;
34const int obj_validation = 4;
35const int obj_procedure = 5;
36const int obj_expression_index = 6;
37const int obj_exception = 7;
38const int obj_user = 8;
39const int obj_field = 9;
40const int obj_index = 10;
41const int obj_charset = 11;
42const int obj_user_group = 12;
43const int obj_sql_role = 13;
44const int obj_generator = 14;
45const int obj_udf = 15;
46const int obj_blob_filter = 16;
47const int obj_collation = 17;
48const int obj_package_header = 18;
49const int obj_package_body = 19;
50
51const int obj_type_MAX = 20; // keep this last!
52
53// used in the parser only / no relation with obj_type_MAX
54const int obj_user_or_role = 20;
55const int obj_database = 21;
56const int obj_schema = 22;
57const int obj_parameter = 23;
58
59#endif // JRD_OBJ_H
60