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 | |
30 | const int obj_relation = 0; |
31 | const int obj_view = 1; |
32 | const int obj_trigger = 2; |
33 | const int obj_computed = 3; |
34 | const int obj_validation = 4; |
35 | const int obj_procedure = 5; |
36 | const int obj_expression_index = 6; |
37 | const int obj_exception = 7; |
38 | const int obj_user = 8; |
39 | const int obj_field = 9; |
40 | const int obj_index = 10; |
41 | const int obj_charset = 11; |
42 | const int obj_user_group = 12; |
43 | const int obj_sql_role = 13; |
44 | const int obj_generator = 14; |
45 | const int obj_udf = 15; |
46 | const int obj_blob_filter = 16; |
47 | const int obj_collation = 17; |
48 | const int = 18; |
49 | const int obj_package_body = 19; |
50 | |
51 | const int obj_type_MAX = 20; // keep this last! |
52 | |
53 | // used in the parser only / no relation with obj_type_MAX |
54 | const int obj_user_or_role = 20; |
55 | const int obj_database = 21; |
56 | const int obj_schema = 22; |
57 | const int obj_parameter = 23; |
58 | |
59 | #endif // JRD_OBJ_H |
60 | |