KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > jdo > spi > persistence > support > sqlstore > ActionDesc


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 /*
25  * ActionDesc.java
26  *
27  * Create on March 3, 2000
28  */

29
30 package com.sun.jdo.spi.persistence.support.sqlstore;
31
32
33 /**
34  * <P>This interface defines the constraint operation constants that are
35  * recognized by the <code>addConstraint</code> method of the interface <code>RetrieveDesc</code>.
36  */

37 public interface ActionDesc {
38     // LAST VALUE USED: 63
39

40     // Constants for life cycle events
41

42     public static final int LOG_CREATE = 1;
43
44     public static final int LOG_DESTROY = 2;
45
46     public static final int LOG_UPDATE = 3;
47
48     public static final int LOG_NOOP = 4;
49
50     // Select operators
51

52     /**
53      * Unary operator for taking the absolute value.
54      */

55     public static final int OP_ABS = 1;
56
57     /**
58      * Binary operator for adding two values.
59      */

60     public static final int OP_ADD = 2;
61
62     /**
63      * Logical operator AND.
64      */

65     public static final int OP_AND = 3;
66
67     /**
68      * @ForteInternal
69      */

70     public static final int OP_APPROX = 4;
71
72     /**
73      */

74     public static final int OP_FIELD = 5;
75
76     /**
77      */

78     public static final int OP_BETWEEN = 6;
79
80     /**
81      * Qualifies the query with DISTINCT
82      */

83     public static final int OP_DISTINCT = 7;
84
85     /**
86      * Binary operator for dividing two values
87      */

88     public static final int OP_DIV = 8;
89
90     /**
91      * Equality operator.
92      */

93     public static final int OP_EQ = 9;
94
95     /**
96      */

97     public static final int OP_EQ_CLASS = 41;
98
99     /**
100      */

101     public static final int OP_EQUIJOIN = 10;
102
103     /**
104      */

105     public static final int OP_FOR_UPDATE = 11;
106
107     /**
108      */

109     public static final int OP_GE = 12;
110
111     /**
112      */

113     public static final int OP_GT = 13;
114
115     /**
116      */

117     public static final int OP_IN = 14;
118
119     /**
120      * Relational operator for less-than-and-equal.
121      */

122     public static final int OP_LE = 15;
123
124     /**
125      */

126     public static final int OP_LEFTJOIN = 16;
127
128     /**
129      */

130     public static final int OP_LENGTH = 17;
131
132     /**
133      */

134     public static final int OP_LENGTHB = 18;
135
136     /**
137      * Pattern matching operator.
138      */

139     public static final int OP_LIKE = 19;
140
141     /**
142      */

143     public static final int OP_LOWER = 20;
144
145     /**
146      * Relational operator for less-than.
147      */

148     public static final int OP_LT = 21;
149
150     /**
151      */

152     public static final int OP_LTRIM = 22;
153
154     /**
155      */

156     public static final int OP_MAX_ROWS = 23;
157
158     /**
159      * Binary operator for multiplying two values.
160      */

161     public static final int OP_MUL = 24;
162
163     /**
164      * Inequality operator.
165      */

166     public static final int OP_NE = 25;
167
168     /**
169      * Unary negation operator.
170      */

171     public static final int OP_NOT = 26;
172
173     /**
174      * Unary operator for checking non-null value.
175      */

176     public static final int OP_NOTNULL = 27;
177
178     /**
179      * Unary operator for checking null value.
180      */

181     public static final int OP_NULL = 28;
182
183     /**
184      * Logical operator OR.
185      */

186     public static final int OP_OR = 29;
187
188     /**
189      * Order the result by ascending order.
190      */

191     public static final int OP_ORDERBY = 30;
192
193     /**
194      * Order the result by descending order.
195      */

196     public static final int OP_ORDERBY_DESC = 31;
197
198     /**
199      */

200     public static final int OP_PARAMETER_COUNT = 32;
201
202     /**
203      */

204     public static final int OP_RIGHTJOIN = 33;
205
206     /**
207      * Unary operator for trimming trailing blanks in a string.
208      */

209     public static final int OP_RTRIM = 34;
210
211     /**
212      */

213     public static final int OP_RTRIMFIXED = 43;
214
215     /**
216      */

217     public static final int OP_SOUNDEX = 35;
218
219     /**
220      * square root of a number
221      */

222     public static final int OP_SQRT = 47;
223
224     /**
225      * Binary operator for subtracting one value from another.
226      */

227     public static final int OP_SUB = 36;
228
229     /**
230      * Operator for Substring with two arguments: string, start.
231      */

232     public static final int OP_SUBSTR = 37;
233
234     /**
235      */

236     public static final int OP_SUBSTRB = 38;
237
238     /**
239      */

240     public static final int OP_UPPER = 39;
241
242     /**
243      */

244     public static final int OP_VALUE = 40;
245
246     /**
247      */

248     public static final int OP_NONKEY = 42;
249
250     /**
251      * String concatenation operator
252      */

253     public static final int OP_CONCAT = 44;
254
255     /**
256      * Operator for not exists subquery
257      */

258     public static final int OP_NOTEXISTS = 45;
259
260     /**
261      * Operator for exists subquery
262      */

263     public static final int OP_EXISTS = 46;
264
265     /**
266      * Operator for like with escape
267      */

268     public static final int OP_LIKE_ESCAPE = 48;
269
270     /**
271      * Operator for Substring with three arguments: string, start, length.
272      */

273     public static final int OP_SUBSTRING = 49;
274
275     /**
276      * Operator for position
277      */

278     public static final int OP_POSITION = 50;
279
280     /**
281      * Operator for position with start parameter
282      */

283     public static final int OP_POSITION_START = 51;
284
285     /**
286      * Operator for a non relationship join.
287      */

288     public static final int OP_NONREL_JOIN = 52;
289
290     /**
291      * Operator for query parameters
292      */

293     public static final int OP_PARAMETER = 53;
294
295     /**
296      * Operator for queries on nullable columns mapped to primitive fields
297      */

298     public static final int OP_MAYBE_NULL = 54;
299
300     /**
301      * Operator for NOT IN
302      */

303     public static final int OP_NOTIN = 55;
304
305     /**
306      * Operator for null comparision by function.
307      */

308     public static final int OP_NULL_COMPARISION_FUNCTION = 56;
309
310     /**
311      * Binary operator for MOD.
312      */

313     public static final int OP_MOD = 57;
314
315     /**
316      * Operator for AVG aggregate function.
317      */

318     public static final int OP_AVG = 58;
319
320     /**
321      * Operator for MIN aggregate function.
322      */

323     public static final int OP_MIN = 59;
324
325     /**
326      * Operator for SUM aggregate function.
327      */

328     public static final int OP_SUM = 60;
329
330     /**
331      * Operator for MAX aggregate function.
332      */

333     public static final int OP_MAX = 61;
334
335     /**
336      * Operator for COUNT aggregate function.
337      */

338     public static final int OP_COUNT = 62;
339
340     /**
341      * Operator for COUNT aggregate function on pc objects.
342      */

343     public static final int OP_COUNT_PC = 63;
344
345     /**
346      */

347     public Class JavaDoc getPersistenceCapableClass();
348
349 }
350
Popular Tags