KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > derby > iapi > sql > compile > C_NodeTypes


1 /*
2
3    Derby - Class org.apache.derby.iapi.sql.compile.C_NodeTypes
4
5    Licensed to the Apache Software Foundation (ASF) under one or more
6    contributor license agreements. See the NOTICE file distributed with
7    this work for additional information regarding copyright ownership.
8    The ASF licenses this file to you under the Apache License, Version 2.0
9    (the "License"); you may not use this file except in compliance with
10    the License. You may obtain a copy of the License at
11
12       http://www.apache.org/licenses/LICENSE-2.0
13
14    Unless required by applicable law or agreed to in writing, software
15    distributed under the License is distributed on an "AS IS" BASIS,
16    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17    See the License for the specific language governing permissions and
18    limitations under the License.
19
20  */

21
22 package org.apache.derby.iapi.sql.compile;
23
24 /**
25  * The purpose of this interface is to hold the constant definitions
26  * of the different node type identifiers, for use with NodeFactory.
27  * The reason this class exists is that it is not shipped with the
28  * product, so it saves footprint to have all these constant definitions
29  * here instead of in NodeFactory.
30  */

31 public interface C_NodeTypes
32 {
33     /** Node types, for use with getNode methods */
34     static final int TEST_CONSTRAINT_NODE = 1;
35     static final int CURRENT_ROW_LOCATION_NODE = 2;
36     static final int GROUP_BY_LIST = 3;
37     static final int CURRENT_ISOLATION_NODE = 4;
38     static final int IDENTITY_VAL_NODE = 5;
39     static final int CURRENT_SCHEMA_NODE = 6;
40     static final int ORDER_BY_LIST = 7;
41     static final int PREDICATE_LIST = 8;
42     static final int RESULT_COLUMN_LIST = 9;
43     // 10 available
44
static final int SUBQUERY_LIST = 11;
45     static final int TABLE_ELEMENT_LIST = 12;
46     static final int UNTYPED_NULL_CONSTANT_NODE = 13;
47     static final int TABLE_ELEMENT_NODE = 14;
48     static final int VALUE_NODE_LIST = 15;
49     static final int ALL_RESULT_COLUMN = 16;
50     // 17 is available
51
static final int GET_CURRENT_CONNECTION_NODE = 18;
52     static final int NOP_STATEMENT_NODE = 19;
53     static final int DB2_LENGTH_OPERATOR_NODE = 20;
54     static final int SET_TRANSACTION_ISOLATION_NODE = 21;
55     // 22 is available
56
static final int CHAR_LENGTH_OPERATOR_NODE = 23;
57     static final int IS_NOT_NULL_NODE = 24;
58     static final int IS_NULL_NODE = 25;
59     static final int NOT_NODE = 26;
60     // 27 is available
61
static final int SQL_TO_JAVA_VALUE_NODE = 28;
62     static final int UNARY_MINUS_OPERATOR_NODE = 29;
63     static final int UNARY_PLUS_OPERATOR_NODE = 30;
64     static final int SQL_BOOLEAN_CONSTANT_NODE = 31;
65     static final int UNARY_DATE_TIMESTAMP_OPERATOR_NODE = 32;
66     static final int TIMESTAMP_OPERATOR_NODE = 33;
67     static final int TABLE_NAME = 34;
68     static final int GROUP_BY_COLUMN = 35;
69     static final int JAVA_TO_SQL_VALUE_NODE = 36;
70     static final int FROM_LIST = 37;
71     static final int BOOLEAN_CONSTANT_NODE = 38;
72     static final int AND_NODE = 39;
73     static final int BINARY_DIVIDE_OPERATOR_NODE = 40;
74     static final int BINARY_EQUALS_OPERATOR_NODE = 41;
75     static final int BINARY_GREATER_EQUALS_OPERATOR_NODE = 42;
76     static final int BINARY_GREATER_THAN_OPERATOR_NODE = 43;
77     static final int BINARY_LESS_EQUALS_OPERATOR_NODE = 44;
78     static final int BINARY_LESS_THAN_OPERATOR_NODE = 45;
79     static final int BINARY_MINUS_OPERATOR_NODE = 46;
80     static final int BINARY_NOT_EQUALS_OPERATOR_NODE = 47;
81     static final int BINARY_PLUS_OPERATOR_NODE = 48;
82     static final int BINARY_TIMES_OPERATOR_NODE = 49;
83     static final int CONCATENATION_OPERATOR_NODE = 50;
84     static final int LIKE_OPERATOR_NODE = 51;
85     static final int OR_NODE = 52;
86     static final int BETWEEN_OPERATOR_NODE = 53;
87     static final int CONDITIONAL_NODE = 54;
88     static final int IN_LIST_OPERATOR_NODE = 55;
89     static final int NOT_BETWEEN_OPERATOR_NODE = 56;
90     static final int NOT_IN_LIST_OPERATOR_NODE = 57;
91     static final int BIT_CONSTANT_NODE = 58;
92     static final int VARBIT_CONSTANT_NODE = 59;
93     static final int CAST_NODE = 60;
94     static final int CHAR_CONSTANT_NODE = 61;
95     static final int COLUMN_REFERENCE = 62;
96     static final int DROP_INDEX_NODE = 63;
97     // 64 available;
98
static final int DROP_TRIGGER_NODE = 65;
99     static final int READ_CURSOR_NODE = 66;
100     static final int DECIMAL_CONSTANT_NODE = 67;
101     static final int DOUBLE_CONSTANT_NODE = 68;
102     static final int FLOAT_CONSTANT_NODE = 69;
103     static final int INT_CONSTANT_NODE = 70;
104     static final int LONGINT_CONSTANT_NODE = 71;
105     static final int LONGVARBIT_CONSTANT_NODE = 72;
106     static final int LONGVARCHAR_CONSTANT_NODE = 73;
107     static final int SMALLINT_CONSTANT_NODE = 74;
108     static final int TINYINT_CONSTANT_NODE = 75;
109     static final int USERTYPE_CONSTANT_NODE = 76;
110     static final int VARCHAR_CONSTANT_NODE = 77;
111     static final int PREDICATE = 78;
112     // 79 available
113
static final int RESULT_COLUMN = 80;
114     static final int SET_SCHEMA_NODE = 81;
115     static final int UPDATE_COLUMN = 82;
116     static final int SIMPLE_STRING_OPERATOR_NODE = 83;
117     static final int STATIC_CLASS_FIELD_REFERENCE_NODE = 84;
118     static final int STATIC_METHOD_CALL_NODE = 85;
119     static final int REVOKE_NODE = 86;
120     static final int EXTRACT_OPERATOR_NODE = 87;
121     static final int PARAMETER_NODE = 88;
122     static final int GRANT_NODE = 89;
123     static final int DROP_SCHEMA_NODE = 90;
124     static final int DROP_TABLE_NODE = 91;
125     static final int DROP_VIEW_NODE = 92;
126     static final int SUBQUERY_NODE = 93;
127     static final int BASE_COLUMN_NODE = 94;
128     static final int CALL_STATEMENT_NODE = 95;
129     static final int MODIFY_COLUMN_DEFAULT_NODE = 97;
130     static final int NON_STATIC_METHOD_CALL_NODE = 98;
131     static final int CURRENT_OF_NODE = 99;
132     static final int DEFAULT_NODE = 100;
133     static final int DELETE_NODE = 101;
134     static final int UPDATE_NODE = 102;
135     static final int PRIVILEGE_NODE = 103;
136     static final int ORDER_BY_COLUMN = 104;
137     static final int ROW_RESULT_SET_NODE = 105;
138     static final int TABLE_PRIVILEGES_NODE = 106;
139     static final int VIRTUAL_COLUMN_NODE = 107;
140     static final int CURRENT_DATETIME_OPERATOR_NODE = 108;
141     static final int CURRENT_USER_NODE = 109; // special function CURRENT_USER
142
static final int USER_NODE = 110; // // special function USER
143
static final int IS_NODE = 111;
144     static final int LOCK_TABLE_NODE = 112;
145     // 113
146
static final int ALTER_TABLE_NODE = 114;
147     static final int AGGREGATE_NODE = 115;
148     static final int COLUMN_DEFINITION_NODE = 116;
149     // 117 is available
150
static final int EXEC_SPS_NODE = 118;
151     static final int FK_CONSTRAINT_DEFINITION_NODE = 119;
152     static final int FROM_VTI = 120;
153     static final int MATERIALIZE_RESULT_SET_NODE = 121;
154     static final int NORMALIZE_RESULT_SET_NODE = 122;
155     static final int SCROLL_INSENSITIVE_RESULT_SET_NODE = 123;
156     static final int DISTINCT_NODE = 124;
157     static final int SESSION_USER_NODE = 125; // // special function SESSION_USER
158
static final int SYSTEM_USER_NODE = 126; // // special function SYSTEM_USER
159
static final int TRIM_OPERATOR_NODE = 127;
160     // 128 is available
161
static final int SELECT_NODE = 129;
162     static final int CREATE_VIEW_NODE = 130;
163     static final int CONSTRAINT_DEFINITION_NODE = 131;
164     // 132 available;
165
static final int NEW_INVOCATION_NODE = 133;
166     static final int CREATE_SCHEMA_NODE = 134;
167     static final int FROM_BASE_TABLE = 135;
168     static final int FROM_SUBQUERY = 136;
169     static final int GROUP_BY_NODE = 137;
170     static final int INSERT_NODE = 138;
171     static final int JOIN_NODE = 139;
172     static final int ORDER_BY_NODE = 140;
173     static final int CREATE_TABLE_NODE = 141;
174     static final int UNION_NODE = 142;
175     static final int CREATE_TRIGGER_NODE = 143;
176     static final int HALF_OUTER_JOIN_NODE = 144;
177 // UNUSED static final int CREATE_SPS_NODE = 145;
178
static final int CREATE_INDEX_NODE = 146;
179     static final int CURSOR_NODE = 147;
180     static final int HASH_TABLE_NODE = 148;
181     static final int INDEX_TO_BASE_ROW_NODE = 149;
182     static final int CREATE_ALIAS_NODE = 150;
183     static final int PROJECT_RESTRICT_NODE = 151;
184     // UNUSED static final int BOOLEAN_TRUE_NODE = 152;
185
// UNUSED static final int BOOLEAN_FALSE_NODE = 153;
186
static final int SUBSTRING_OPERATOR_NODE = 154;
187     // UNUSED static final int BOOLEAN_NODE = 155;
188
static final int DROP_ALIAS_NODE = 156;
189     static final int INTERSECT_OR_EXCEPT_NODE = 157;
190     // 158 - 183 available
191
static final int TIMESTAMP_ADD_FN_NODE = 184;
192     static final int TIMESTAMP_DIFF_FN_NODE = 185;
193     static final int MODIFY_COLUMN_TYPE_NODE = 186;
194     static final int MODIFY_COLUMN_CONSTRAINT_NODE = 187;
195     static final int ABSOLUTE_OPERATOR_NODE = 188;
196     static final int SQRT_OPERATOR_NODE = 189;
197     static final int LOCATE_FUNCTION_NODE = 190;
198   //for rename table/column/index
199
static final int RENAME_NODE = 191;
200
201     static final int COALESCE_FUNCTION_NODE = 192;
202
203     static final int MODIFY_COLUMN_CONSTRAINT_NOT_NULL_NODE = 193;
204
205     static final int MOD_OPERATOR_NODE = 194;
206     // LOB
207
static final int BLOB_CONSTANT_NODE = 195;
208     static final int CLOB_CONSTANT_NODE = 196;
209     static final int NCLOB_CONSTANT_NODE = 197;
210     // for SAVEPOINT sql
211
static final int SAVEPOINT_NODE = 198;
212
213     // XML
214
static final int XML_CONSTANT_NODE = 199;
215     static final int XML_PARSE_OPERATOR_NODE = 200;
216     static final int XML_SERIALIZE_OPERATOR_NODE = 201;
217     static final int XML_EXISTS_OPERATOR_NODE = 202;
218     static final int XML_QUERY_OPERATOR_NODE = 203;
219
220     /**
221      * Extensions to this interface can use nodetypes > MAX_NODE_TYPE with out fear of collision
222      * with C_NodeTypes
223      */

224     static final int MAX_NODE_TYPE = 999;
225 }
226
Popular Tags