1 | /* |
2 | |
3 | Derby - Class org.apache.derby.client.net.CodePoint |
4 | |
5 | Copyright (c) 2001, 2005 The Apache Software Foundation or its licensors, where applicable. |
6 | |
7 | Licensed under the Apache License, Version 2.0 (the "License"); |
8 | you may not use this file except in compliance with the License. |
9 | You may obtain a copy of the License at |
10 | |
11 | http://www.apache.org/licenses/LICENSE-2.0 |
12 | |
13 | Unless required by applicable law or agreed to in writing, software |
14 | distributed under the License is distributed on an "AS IS" BASIS, |
15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
16 | See the License for the specific language governing permissions and |
17 | limitations under the License. |
18 | |
19 | */ |
20 | |
21 | package org.apache.derby.client.net; |
22 | |
23 | |
24 | public class CodePoint { |
25 | public static final int FIXED_ROW_QUERY_PROTOCOL = 0; |
26 | public static final int LIMITED_BLOCK_QUERY_PROTOCOL = 1; |
27 | public static final int FORCE_FIXED_ROW_QUERY_PROTOCOL = 2; |
28 | |
29 | |
30 | // Character Subtype MBCS |
31 | static final int CSTMBCS = 0x2435; |
32 | |
33 | |
34 | // Force Fixed Row Query Protocol |
35 | static final int FRCFIXROW = 0x2410; |
36 | |
37 | // Title |
38 | static final int TITLE = 0x0045; |
39 | |
40 | // ---------------callable statement codepoints------------------------------- |
41 | |
42 | // PKGSNLST |
43 | static final int PKGSNLST = 0x2139; |
44 | |
45 | // Output Expected |
46 | static final int OUTEXP = 0x2111; |
47 | |
48 | // Procedure Name |
49 | static final int PRCNAM = 0x2138; |
50 | |
51 | // Maximum Result Set Count. |
52 | static final int MAXRSLCNT = 0x2140; |
53 | |
54 | // Maximum Result Set Count No Limit. |
55 | // Requester is capable of receiving all result sets in the response to EXCSQLSTT. |
56 | static final int MAXRSLCNT_NOLIMIT = 0xffff; |
57 | |
58 | // Result Set Flags |
59 | static final int RSLSETFLG = 0x2142; |
60 | |
61 | static final int RSLSETFLG_RETURN_NAMES = 0x80; |
62 | |
63 | static final int RSLSETFLG_RETURN_LABELS = 0x40; |
64 | |
65 | // RSLSETFLGs added in SQLAM 7 for requesting standard, extended, or light sqldas |
66 | static final int RSLSETFLG_STANDARD_SQLDA = 0x00; |
67 | static final int RSLSETFLG_EXTENDED_SQLDA = 0x04; |
68 | |
69 | // --------------------code points for constant ddm data---------------------- |
70 | |
71 | // Indicates false state. This 1-byte code point is used by some DDM parameters. |
72 | static final byte FALSE = -16; // was 0xf0 |
73 | |
74 | // Indicates true state. This 1-byte code point is used by some DDM parameters. |
75 | static final byte TRUE = -15; // was 0xf1 |
76 | |
77 | // Zero indicator constant. |
78 | // Indicates data does flow. |
79 | static final int ZEROIND = 0x00; |
80 | |
81 | // FDOCA NULL indicator constant. |
82 | // Indicates data does not flow. |
83 | static final int NULLDATA = 0xFF; |
84 | |
85 | // Security check was successful. |
86 | static final int SECCHKCD_00 = 0x00; |
87 | |
88 | // SECMEC value not supported. |
89 | static final int SECCHKCD_01 = 0x01; |
90 | |
91 | // Local security service info. |
92 | static final int SECCHKCD_08 = 0x08; |
93 | |
94 | // Local security service retryable error. |
95 | static final int SECCHKCD_09 = 0x09; |
96 | |
97 | // Local security service non-retryable error. |
98 | static final int SECCHKCD_0A = 0x0A; |
99 | |
100 | // SECTKN missing or invalid. |
101 | static final int SECCHKCD_0B = 0x0B; |
102 | |
103 | // Password expired. |
104 | static final int SECCHKCD_0E = 0x0E; |
105 | |
106 | // Password invalid. |
107 | static final int SECCHKCD_0F = 0x0F; |
108 | |
109 | // Password missing. |
110 | static final int SECCHKCD_10 = 0x10; |
111 | |
112 | // Userid missing. |
113 | static final int SECCHKCD_12 = 0x12; |
114 | |
115 | // Userid invalid. |
116 | static final int SECCHKCD_13 = 0x13; |
117 | |
118 | // Userid revoked. |
119 | static final int SECCHKCD_14 = 0x14; |
120 | |
121 | // New password invalid. |
122 | static final int SECCHKCD_15 = 0x15; |
123 | |
124 | //-----------------------ddm enumerated values------------------------------- |
125 | |
126 | // TYPSQLDA - Standard Output SQLDA |
127 | static final int TYPSQLDA_STD_OUTPUT = 0; |
128 | |
129 | // TYPSQLDA - Standard Input SQLDA |
130 | static final int TYPSQLDA_STD_INPUT = 1; |
131 | |
132 | // TYPSQLDA - Light Output SQLDA |
133 | static final int TYPSQLDA_LIGHT_OUTPUT = 2; |
134 | |
135 | // TYPSQLDA - Light Input SQLDA |
136 | static final int TYPSQLDA_LIGHT_INPUT = 3; |
137 | |
138 | // TYPSQLDA - Extended Output SQLDA |
139 | static final int TYPSQLDA_X_OUTPUT = 4; |
140 | |
141 | // TYPSQLDA - Extended Input SQLDA |
142 | static final int TYPSQLDA_X_INPUT = 5; |
143 | |
144 | // QRYCLSIMP - Target Server determines whether to implicitly |
145 | // close the cursor or not upon SQLSTATE 02000 based on cursor type. |
146 | static final int QRYCLSIMP_SERVER_CHOICE = 0x00; |
147 | |
148 | // QRYCLSIMP - Target Server must implicitly close the cursor |
149 | // upon SQLSTATE 02000. |
150 | static final int QRYCLSIMP_YES = 0x01; |
151 | |
152 | // QRYCLSIMP - Target Server must not implicitly close the cursor |
153 | // upon SQLSTATE 02000. |
154 | static final int QRYCLSIMP_NO = 0x02; |
155 | |
156 | // SQL Error Diagnostic Level |
157 | // DIAGLVL0 A null SQLDIAGGRP is returned. This is the default. |
158 | // DIAGLVL1 A non-null SQLDIAGGRP should be returned. |
159 | // DIAGLVL2 A non-null SQLDIAGGRP should be returned, and both SQLDCMSG |
160 | // message text fields should be returned as null strings. |
161 | static final byte DIAGLVL0 = (byte)0xF0; |
162 | static final byte DIAGLVL1 = (byte)0xF1; |
163 | static final byte DIAGLVL2 = (byte)0xF2; |
164 | |
165 | // ----------------------ddm code points-------------------------------------- |
166 | |
167 | // Exchange Server Attributes. |
168 | final static int EXCSAT = 0x1041; |
169 | |
170 | |
171 | // Sync Point Control Request. |
172 | public final static int SYNCCTL = 0x1055; |
173 | |
174 | // Sync Point Resync Command. |
175 | final static int SYNCRSY = 0x1069; |
176 | |
177 | // Access Security. |
178 | final static int ACCSEC = 0x106D; |
179 | |
180 | // Security Check. |
181 | final static int SECCHK = 0x106E; |
182 | |
183 | // Access RDB. |
184 | final static int ACCRDB = 0x2001; |
185 | |
186 | // Close Query. |
187 | final static int CLSQRY = 0x2005; |
188 | |
189 | // Continue Query. |
190 | final static int CNTQRY = 0x2006; |
191 | |
192 | |
193 | // Describe SQL Statement. |
194 | final static int DSCSQLSTT = 0x2008; |
195 | |
196 | |
197 | // Execute Immediate SQL Statement. |
198 | final static int EXCSQLIMM = 0x200A; |
199 | |
200 | // Execute SQL Statement. |
201 | final static int EXCSQLSTT = 0x200B; |
202 | |
203 | // Set SQL Environment. |
204 | final static int EXCSQLSET = 0x2014; |
205 | |
206 | // Open Query. |
207 | final static int OPNQRY = 0x200C; |
208 | |
209 | // Output override. |
210 | final static int OUTOVR = 0x2415; |
211 | |
212 | // Prepare SQL Statement. |
213 | final static int PRPSQLSTT = 0x200D; |
214 | |
215 | // RDB Commit Unit of Work. |
216 | final static int RDBCMM = 0x200E; |
217 | |
218 | // RDB Rollback Unit of Work. |
219 | final static int RDBRLLBCK = 0x200F; |
220 | |
221 | |
222 | // Describe RDB Table. |
223 | final static int DSCRDBTBL = 0x2012; |
224 | |
225 | // SQL Program Variable Data. |
226 | final static int SQLDTA = 0x2412; |
227 | |
228 | // SQL Data Reply Data. |
229 | public final static int SQLDTARD = 0x2413; |
230 | |
231 | // SQL Statement. |
232 | final static int SQLSTT = 0x2414; |
233 | |
234 | |
235 | // Query Answer Set Description. |
236 | public final static int QRYDSC = 0x241A; |
237 | |
238 | // Query Answer Set Data. |
239 | public final static int QRYDTA = 0x241B; |
240 | |
241 | // SQL Statement Attributes. |
242 | final static int SQLATTR = 0x2450; |
243 | |
244 | // Access Security Reply Data. |
245 | // Contains the security information from a target server's |
246 | // security manager. This information is returned in response |
247 | // to an ACCSEC command. |
248 | static final int ACCSECRD = 0x14AC; |
249 | |
250 | |
251 | // Agent codepoint constant. |
252 | static final int AGENT = 0x1403; |
253 | |
254 | // The codepoint for codepoint |
255 | static final int CODPNT = 0x000C; |
256 | |
257 | // CCSID for Double-Byte Characters codepoint constant. |
258 | static final int CCSIDDBC = 0x119D; |
259 | |
260 | // CCSID for Mixed-Byte Characters codepoint constant. |
261 | static final int CCSIDMBC = 0x119E; |
262 | |
263 | |
264 | // CCSID for Single-Byte Characters codepoint constant. |
265 | static final int CCSIDSBC = 0x119C; |
266 | |
267 | // Describes the communications manager that supports |
268 | // conversational protocols by using System Network |
269 | // Architecture Logical Unit 6.2 (SNA LU 6.2) local |
270 | // communications facilities. |
271 | static final int CMNAPPC = 0x1444; |
272 | |
273 | // TCP/IP Communication Manager codepoint constant. Min. level 5. |
274 | static final int CMNTCPIP = 0x1474; |
275 | |
276 | // Correlation Token codepoint constant. |
277 | static final int CRRTKN = 0x2135; |
278 | |
279 | // Description Error code |
280 | static final int DSCERRCD = 0x2101; |
281 | |
282 | // Server Attributes Reply Data codepoint constant. |
283 | static final int EXCSATRD = 0x1443; |
284 | |
285 | // External Name codepoint constant. |
286 | static final int EXTNAM = 0x115E; |
287 | |
288 | // Fixed Row Query Protocol. |
289 | static final int FIXROWPRC = 0x2418; |
290 | |
291 | // Limited Block Query Protocol. |
292 | static final int LMTBLKPRC = 0x2417; |
293 | |
294 | // Maximum Number of Extra Blocks. |
295 | static final int MAXBLKEXT = 0x2141; |
296 | |
297 | // Manager Level List codepoint constant. |
298 | static final int MGRLVLLS = 0x1404; |
299 | |
300 | // Manager Level Number Attribute constants. |
301 | // Specifies the level of a defined DDM manager. |
302 | static final int MGRLVLN = 0x1473; |
303 | |
304 | // Password |
305 | static final int PASSWORD = 0x11A1; |
306 | |
307 | // Package name & consistency token |
308 | static final int PKGNAMCT = 0x2112; |
309 | |
310 | // Conversational Protocol Error Code |
311 | static final int PRCCNVCD = 0x113F; |
312 | |
313 | // Product Specific Identifier codepoint constant. |
314 | static final int PRDID = 0x112E; |
315 | |
316 | // Product Specific Data |
317 | static final int PRDDTA = 0x2104; |
318 | |
319 | // Query Attribute for Scrollability. |
320 | static final int QRYATTSCR = 0x2149; |
321 | |
322 | // Query Attribute for Rowset |
323 | static final int QRYATTSET = 0x214A; |
324 | |
325 | // Query Attribute for Sensitivity. |
326 | static final int QRYATTSNS = 0x2157; |
327 | |
328 | // Query Attribute for Updatability. |
329 | static final int QRYATTUPD = 0x2150; |
330 | |
331 | // Query Close Implicit |
332 | static final int QRYCLSIMP = 0x215D; |
333 | |
334 | // Query Scroll Orientation. |
335 | static final int QRYSCRORN = 0x2152; |
336 | |
337 | // Query Scroll Relative Orientation. |
338 | static final int QRYSCRREL = 1; |
339 | |
340 | // Query Scroll Absolute Orientation. |
341 | static final int QRYSCRABS = 2; |
342 | |
343 | // Query Scroll After Orientation. |
344 | static final int QRYSCRAFT = 3; |
345 | |
346 | // Query Scroll Before Orientation. |
347 | static final int QRYSCRBEF = 4; |
348 | |
349 | // Query Instance Identifier |
350 | static final int QRYINSID = 0x215B; |
351 | |
352 | // Query Insensitive to Changes |
353 | static final int QRYINS = 1; |
354 | |
355 | // Sensitive static |
356 | static final int QRYSNSSTC = 0x2; |
357 | |
358 | // Query Attributes is Unknown or Undefined |
359 | static final int QRYUNK = 0; |
360 | |
361 | // Query Row Number. |
362 | static final int QRYROWNBR = 0x213D; |
363 | |
364 | // Query Block Reset. |
365 | static final int QRYBLKRST = 0x2154; |
366 | |
367 | // Query Returns Data. |
368 | static final int QRYRTNDTA = 0x2155; |
369 | |
370 | // Query Block Protocol Control |
371 | static final int QRYBLKCTL = 0x2132; |
372 | |
373 | // Query Block Size |
374 | static final int QRYBLKSZ = 0x2114; |
375 | |
376 | // Query Protocol Type |
377 | static final int QRYPRCTYP = 0x2102; |
378 | |
379 | // Query Rowset Size. |
380 | static final int QRYROWSET = 0x2156; |
381 | |
382 | // Cursor is Read-only. |
383 | static final int QRYRDO = 0x1; |
384 | |
385 | // Cursor Allows Read, Delete, and Update Operations. |
386 | static final int QRYUPD = 0x4; |
387 | |
388 | // Relational Database codepoint constant. Min. level 3. |
389 | static final int RDB = 0x240F; |
390 | |
391 | // RDB Access Manager Class. |
392 | static final int RDBACCCL = 0x210F; |
393 | |
394 | // RDB Allow Updates |
395 | static final int RDBALWUPD = 0x211A; |
396 | |
397 | // Relational Database Name codepoint constant. |
398 | static final int RDBNAM = 0x2110; |
399 | |
400 | |
401 | // Resynchronization Manager. Min levl 5. |
402 | // It is a manager object of DDM that performs |
403 | // resynchronization for in-doubt units of work after |
404 | // a sync point operation failure. |
405 | static final int RSYNCMGR = 0x14C1; |
406 | |
407 | // Retuan SQL Descriptor Area |
408 | static final int RTNSQLDA = 0x2116; |
409 | |
410 | |
411 | // Type of SQL Descriptor Area |
412 | static final int TYPSQLDA = 0x2146; |
413 | |
414 | // Security Check Code codepoint constant. |
415 | static final int SECCHKCD = 0x11A4; |
416 | |
417 | // Security Mechanism codepoint constant. |
418 | static final int SECMEC = 0x11A2; |
419 | |
420 | // Security Manager codepoint constant. |
421 | static final int SECMGR = 0x1440; |
422 | |
423 | // Security Token codepoint constant. |
424 | static final int SECTKN = 0x11DC; |
425 | |
426 | // SQL Application Manager codepoint constant. Min. level 3. |
427 | static final int SQLAM = 0x2407; |
428 | |
429 | // SQL Communication Area Reply Data codepoint constant. |
430 | public static final int SQLCARD = 0x2408; |
431 | |
432 | // SQL Result Set Column Information Reply Data. |
433 | public static final int SQLCINRD = 0x240B; |
434 | |
435 | // Hold Cursor Position |
436 | static final int SQLCSRHLD = 0x211F; |
437 | |
438 | // SQL Result Set Reply Data. |
439 | static final int SQLRSLRD = 0x240E; |
440 | |
441 | // SQLDA Reply Data codepoint constant. |
442 | public static final int SQLDARD = 0x2411; |
443 | |
444 | // Server Class Name codepoint constant. |
445 | static final int SRVCLSNM = 0x1147; |
446 | |
447 | |
448 | // Server Name codepoint constant. |
449 | static final int SRVNAM = 0x116D; |
450 | |
451 | // Server Product Release Level codepoint constant. |
452 | static final int SRVRLSLV = 0x115A; |
453 | |
454 | // Severity Code codepoint constant. |
455 | static final int SVRCOD = 0x1149; |
456 | |
457 | // Sync Point Manager. Min. level 4. |
458 | // It is a manager object of DDM that coordinates resource |
459 | // recovery of the units of work associated with recoverable |
460 | // resources in multiple DDM servers. |
461 | static final int SYNCPTMGR = 0x14C0; |
462 | |
463 | // Syntax Error code |
464 | static final int SYNERRCD = 0x114A; |
465 | |
466 | // Data Type Definition Name codepoint constant. |
467 | public static final int TYPDEFNAM = 0x002F; |
468 | |
469 | // TYPDEF Overrides codepoint constant. |
470 | public static final int TYPDEFOVR = 0x0035; |
471 | |
472 | // Unit of Work Disposition codepoint constant. |
473 | static final int UOWDSP = 0x2115; |
474 | |
475 | // Unit of Work Disposition. Committed Enumerated Value. |
476 | static final int UOWDSP_COMMIT = 0x01; |
477 | |
478 | // Unit of Work Dispostion. Rolled Back Enumerated Value. |
479 | static final int UOWDSP_ROLLBACK = 0x02; |
480 | |
481 | // Usrid codepoint constant. |
482 | static final int USRID = 0x11A0; |
483 | |
484 | // Rdb Package Name, Consistency Token, and Section |
485 | // Number codepoint constant. |
486 | static final int PKGNAMCSN = 0x2113; |
487 | |
488 | // RDB Package Section Number |
489 | static final int PKGSN = 0x210C; |
490 | |
491 | // Scalar Data Length |
492 | static final int SCLDTALEN = 0x0100; |
493 | |
494 | // XA Manager |
495 | static final int XAMGR = 0x1C01; |
496 | |
497 | // SQL Error Diagnostic Level |
498 | static final int DIAGLVL = 0x2160; |
499 | |
500 | //-----------------------DDM reply codepoints--------------------------------- |
501 | |
502 | // Command Check codepoint constant. |
503 | public static final int CMDCHKRM = 0x1254; |
504 | |
505 | // Command Not Supported codepoint constant. |
506 | static final int CMDNSPRM = 0x1250; |
507 | |
508 | // Abnormal End of Unit of Work Condition codepoint constant. |
509 | static final int ABNUOWRM = 0x220D; |
510 | |
511 | // Access to RDB Completed. |
512 | // Specifies that an instance of the SQL application manager |
513 | // has been created and is bound to the specified RDB. |
514 | static final int ACCRDBRM = 0x2201; |
515 | |
516 | |
517 | final static int MGRLVLRM = 0x1210; |
518 | |
519 | // End Unit of Work Condition codepoint constant. |
520 | static final int ENDUOWRM = 0x220C; |
521 | |
522 | // Object Not Supported codepoint constant. |
523 | static final int OBJNSPRM = 0x1253; |
524 | |
525 | // Conversational Protocol Error |
526 | public static final int PRCCNVRM = 0x1245; |
527 | |
528 | // Query not open codepoint constant. |
529 | static final int QRYNOPRM = 0x2202; |
530 | |
531 | // Query previously opened codepoint |
532 | static final int QRYPOPRM = 0x220F; |
533 | |
534 | // RDB Currently Accessed Codepoint |
535 | static final int RDBACCRM = 0x2207; |
536 | |
537 | // RDB Commit Allowed codepoint |
538 | static final int RDBCMTOK = 0x2105; |
539 | |
540 | // Security Check. |
541 | // Indicates the acceptability of the security information. |
542 | static final int SECCHKRM = 0x1219; |
543 | |
544 | // RDB Access Failed Reply Message codepoint |
545 | static final int RDBAFLRM = 0x221A; |
546 | |
547 | // Not Authorized To RDB reply message codepoint |
548 | static final int RDBATHRM = 0x22CB; |
549 | |
550 | // RDB Not Accessed codepoint constant. |
551 | static final int RDBNACRM = 0x2204; |
552 | |
553 | // RDB not found codepoint |
554 | static final int RDBNFNRM = 0x2211; |
555 | |
556 | // RDB Update Reply Message codepoint constant. |
557 | static final int RDBUPDRM = 0x2218; |
558 | |
559 | // Data Stream Syntax Error |
560 | public static final int SYNTAXRM = 0x124C; |
561 | |
562 | // Parameter Value Not Supported codepoint constant. |
563 | public static final int VALNSPRM = 0x1252; |
564 | |
565 | // SQL Error Condition codepoint constant. |
566 | static final int SQLERRRM = 0x2213; |
567 | |
568 | // Open Query Complete. |
569 | public final static int OPNQRYRM = 0x2205; |
570 | |
571 | // End of Query. |
572 | public final static int ENDQRYRM = 0x220B; |
573 | |
574 | // Data Descriptor Mismatch. |
575 | final static int DTAMCHRM = 0x220E; |
576 | |
577 | // Open Query Failure. |
578 | final static int OPNQFLRM = 0x2212; |
579 | |
580 | // RDB Result Set Reply Message. |
581 | public final static int RSLSETRM = 0x2219; |
582 | |
583 | // Manager Level Overrides |
584 | public static final int MGRLVLOVR = 0x1C03; |
585 | |
586 | //----------------------------fdoca code points------------------------------- |
587 | |
588 | static final int RTNEXTDTA = 0x2148; |
589 | static final int RTNEXTROW = 0x01; |
590 | static final int RTNEXTALL = 0x02; |
591 | |
592 | // Externalized FD:OCA Data codepoint constant. |
593 | public static final int EXTDTA = 0x146C; |
594 | |
595 | // FDOCA data descriptor |
596 | static final int FDODSC = 0x0010; |
597 | |
598 | // FDOCA data |
599 | static final int FDODTA = 0x147A; |
600 | |
601 | //--------------------------ddm error code points--------------------------------- |
602 | // Syntax Error Code. DSS header length less than 6. |
603 | static int SYNERRCD_DSS_LESS_THAN_6 = 0x01; |
604 | |
605 | // Syntax Error Code. DSS header length does not match the number of |
606 | // bytes of data found. |
607 | static int SYNERRCD_DSS_LENGTH_BYTE_NUMBER_MISMATCH = 0x02; |
608 | |
609 | // Syntax Error Code. DSS header C-byte not D0. |
610 | static int SYNERRCD_CBYTE_NOT_D0 = 0x03; |
611 | |
612 | // Syntax Error Code. DSS header f-bytes either not recognized or not supported. |
613 | static int SYNERRCD_FBYTE_NOT_SUPPORTED = 0x04; |
614 | |
615 | // Syntax Error Code. Object length less than four. |
616 | static int SYNERRCD_OBJ_LEN_LESS_THAN_4 = 0x07; |
617 | |
618 | // Syntax Error Code. Object length not allowed. |
619 | static int SYNERRCD_OBJ_LEN_NOT_ALLOWED = 0x0B; |
620 | |
621 | // Syntax Error Code. Required object not found. |
622 | static int SYNERRCD_REQ_OBJ_NOT_FOUND = 0x0E; |
623 | |
624 | // Syntax Error Code. Duplicate object present. |
625 | static int SYNERRCD_DUP_OBJ_PRESENT = 0x12; |
626 | |
627 | // Syntax Error Code. Invalid request correlator specified. |
628 | static int SYNERRCD_INVALID_CORRELATOR = 0x13; |
629 | |
630 | // Syntax Error Code. Incorrect large object extended length field. |
631 | static int SYNERRCD_INCORRECT_EXTENDED_LEN = 0x0C; |
632 | |
633 | // Syntax Error Code. DSS continuation less than or equal to two. |
634 | static int SYNERRCD_DSS_CONT_LESS_OR_EQUAL_2 = 0x16; |
635 | |
636 | // Syntax Error Code. DSS chaining bit not b'1', but DSSFMT bit3 set to b'1'. |
637 | static int SYNERRCD_CHAIN_OFF_SAME_NEXT_CORRELATOR = 0x18; |
638 | |
639 | // Syntax Error Code. DSS chaining bit not b'1', but error continuation requested. |
640 | static int SYNERRCD_CHAIN_OFF_ERROR_CONTINUE = 0x1A; |
641 | |
642 | // Conversational Protocol Error Code. OBJDSS sent when not allowed. |
643 | static int PRCCNVCD_OBJDSS_SENT_NOT_ALLOWED = 0x03; |
644 | |
645 | // Information Only Severity Code. |
646 | static int SVRCOD_INFO = 0; |
647 | |
648 | // Warning Severity Code. |
649 | static int SVRCOD_WARNING = 4; |
650 | |
651 | // Error Severity Code. |
652 | static int SVRCOD_ERROR = 8; |
653 | |
654 | // Severe Error Severity Code. |
655 | static int SVRCOD_SEVERE = 16; |
656 | |
657 | // Access Damage Severity Code. |
658 | static int SVRCOD_ACCDMG = 32; |
659 | |
660 | // Permanent Damage Severity Code. |
661 | static int SVRCOD_PRMDMG = 64; |
662 | |
663 | // Session Damage Severity Code. |
664 | static int SVRCOD_SESDMG = 128; |
665 | |
666 | |
667 | //--------------------------XA code points--------------------------- |
668 | |
669 | // SYNC Point Control Reply |
670 | public static final int SYNCCRD = 0x1248; |
671 | |
672 | // XA Return Value |
673 | public static final int XARETVAL = 0x1904; |
674 | |
675 | // new unit of work for XA |
676 | public static final int SYNCTYPE_NEW_UOW = 0x09; |
677 | |
678 | // End unit of work (Sync type). |
679 | public static final int SYNCTYPE_END_UOW = 0x0B; |
680 | |
681 | // Prepare to commit (Sync type). |
682 | public static final int SYNCTYPE_PREPARE = 0x01; |
683 | |
684 | // migrate to resync server sync type |
685 | public static final int SYNCTYPE_MIGRATE = 0x02; |
686 | |
687 | // commit sync type |
688 | public static final int SYNCTYPE_COMMITTED = 0x03; |
689 | |
690 | // request to forget sync type |
691 | public static final int SYNCTYPE_REQ_FORGET = 0x06; |
692 | |
693 | //rollback sync type |
694 | public static final int SYNCTYPE_ROLLBACK = 0x04; |
695 | |
696 | |
697 | // migrated unit of work sync type |
698 | public static final int SYNCTYPE_MIGRATED = 0x0A; |
699 | |
700 | //recover sync type |
701 | public static final int SYNCTYPE_INDOUBT = 0x0C; |
702 | |
703 | // Length Codepoint |
704 | public static final int LLCP = 0x0004; |
705 | |
706 | // SYNC Type Codepoint |
707 | public static final int SYNCTYPE = 0x1187; |
708 | |
709 | // XId Codepoint |
710 | public static final int XID = 0x1801; |
711 | |
712 | // XA Flag Codepoint |
713 | public static final int XAFLAGS = 0x1903; |
714 | |
715 | |
716 | // Resync Types |
717 | public static final int RSYNC_FORGET = 0x02; |
718 | |
719 | // UOW States |
720 | public static final int RESET_STATE = 0x01; |
721 | public static final int UNKNOWN_STATE = 0x3; |
722 | public static final int INDOUBT_STATE = 0x04; |
723 | public static final int COLD_STATE = 0x05; |
724 | |
725 | // XA Flags |
726 | public static final int TMNOFLAGS = 0x00000000; |
727 | public static final int TMLOCAL = 0x10000000; |
728 | |
729 | // Prepared and hueristic complete list |
730 | static final int PRPHRCLST = 0x1905; |
731 | |
732 | // XID count |
733 | static final int XIDCNT = 0x1906; |
734 | |
735 | |
736 | // hide the default constructor |
737 | private CodePoint() { |
738 | } |
739 | } |
740 | |
741 | |