Source Code Cross Referenced for CodePoint.java in  » Database-DBMS » db-derby-10.2 » org » apache » derby » impl » drda » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database DBMS » db derby 10.2 » org.apache.derby.impl.drda 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:
003:           Derby - Class org.apache.derby.impl.drda.CodePoint
004:
005:           Licensed to the Apache Software Foundation (ASF) under one or more
006:           contributor license agreements.  See the NOTICE file distributed with
007:           this work for additional information regarding copyright ownership.
008:           The ASF licenses this file to You under the Apache License, Version 2.0
009:           (the "License"); you may not use this file except in compliance with
010:           the License.  You may obtain a copy of the License at
011:
012:              http://www.apache.org/licenses/LICENSE-2.0
013:
014:           Unless required by applicable law or agreed to in writing, software
015:           distributed under the License is distributed on an "AS IS" BASIS,
016:           WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
017:           See the License for the specific language governing permissions and
018:           limitations under the License.
019:
020:         */
021:        package org.apache.derby.impl.drda;
022:
023:        // TBD:
024:        //	 organize into separate kinds of code points; impose organizational scheme.
025:        // TBD:
026:        //	 reconsider the various SECCHKCD_xx constants, perhaps we should hardwire.
027:
028:        class CodePoint {
029:            // --------------------code points for constant ddm data----------------------
030:
031:            // Indicates false state.  This 1-byte code point is used by some DDM parameters.
032:            static final byte FALSE = -16; // was 0xf0
033:
034:            // Indicates true state.  This 1-byte code point is used by some DDM parameters.
035:            static final byte TRUE = -15; // was 0xf1
036:
037:            // Zero indicator constant.
038:            // Indicates data does flow.
039:            static final int ZEROIND = 0x00;
040:
041:            static final int NULLDATA = 0xFF;
042:
043:            // Security check was successful.
044:            static final int SECCHKCD_00 = 0x00;
045:
046:            // SECMEC value not supported.
047:            static final int SECCHKCD_01 = 0x01;
048:
049:            // DCE informational status
050:            static final int SECCHKCD_02 = 0x02;
051:
052:            // DCE retryable error.
053:            static final int SECCHKCD_03 = 0x03;
054:
055:            // DCE non-retryable error.
056:            static final int SECCHKCD_04 = 0x04;
057:
058:            // GSSAPI informaional status.
059:            static final int SECCHKCD_05 = 0x05;
060:
061:            // GSSAPI retryable error.
062:            static final int SECCHKCD_06 = 0x06;
063:
064:            // GSSAPI non-retryable error.
065:            static final int SECCHKCD_07 = 0x07;
066:
067:            // Local security service info.
068:            static final int SECCHKCD_08 = 0x08;
069:
070:            // Local security service retryable error.
071:            static final int SECCHKCD_09 = 0x09;
072:
073:            // Local security service non-retryable error.
074:            static final int SECCHKCD_0A = 0x0A;
075:
076:            // SECTKN missing or invalid.
077:            static final int SECCHKCD_0B = 0x0B;
078:
079:            // Password expired.
080:            static final int SECCHKCD_0E = 0x0E;
081:
082:            // Password invalid.
083:            static final int SECCHKCD_0F = 0x0F;
084:
085:            // Password missing.
086:            static final int SECCHKCD_10 = 0x10;
087:
088:            // Userid missing.
089:            static final int SECCHKCD_12 = 0x12;
090:
091:            // Userid invalid.
092:            static final int SECCHKCD_13 = 0x13;
093:
094:            // Userid revoked.
095:            static final int SECCHKCD_14 = 0x14;
096:
097:            // New password invalid.
098:            static final int SECCHKCD_15 = 0x15;
099:
100:            // ----------------------ddm code points--------------------------------------
101:
102:            final static int EXCSAT = 0x1041;
103:            final static int SYNCCTL = 0x1055;
104:            final static int SYNCRSY = 0x1069;
105:            final static int ACCSEC = 0x106D;
106:            final static int SECCHK = 0x106E;
107:            final static int SYNCLOG = 0x106F;
108:            final static int ACCRDB = 0x2001;
109:            final static int BGNBND = 0x2002;
110:            final static int BNDSQLSTT = 0x2004;
111:            final static int CLSQRY = 0x2005;
112:            final static int CNTQRY = 0x2006;
113:            final static int DRPPKG = 0x2007;
114:            final static int DSCSQLSTT = 0x2008;
115:            final static int ENDBND = 0x2009;
116:            final static int EXCSQLIMM = 0x200A;
117:            final static int EXCSQLSTT = 0x200B;
118:            final static int EXCSQLSET = 0x2014;
119:            final static int OPNQRY = 0x200C;
120:            final static int PRPSQLSTT = 0x200D;
121:            final static int RDBCMM = 0x200E;
122:            final static int RDBRLLBCK = 0x200F;
123:            final static int REBIND = 0x2010;
124:            final static int DSCRDBTBL = 0x2012;
125:
126:            final static int SQLDTA = 0x2412;
127:            final static int SQLDTARD = 0x2413;
128:            final static int SQLSTT = 0x2414;
129:            final static int SQLATTR = 0x2450;
130:            final static int SQLSTTVRB = 0x2419;
131:            final static int QRYDSC = 0x241A;
132:            final static int QRYDTA = 0x241B;
133:            final static int SQLRSLRD = 0x240E;
134:            final static int SQLCINRD = 0x240B;
135:
136:            // Access Security Reply Data.
137:            // Contains the security information from a target server's
138:            // security manager.  This information is returned in response
139:            // to an ACCSEC command.
140:            static final int ACCSECRD = 0x14AC;
141:
142:            // Agent codepoint constant.
143:            static final int AGENT = 0x1403;
144:
145:            // The codepoint for codepoint
146:            static final int CODPNT = 0x000C;
147:
148:            // The Codepoint for data representation of dictionary codepoint
149:            static final int CODPNTDR = 0x0064;
150:
151:            // Subtypes for CODPNTR
152:            static final int CSTMBCS = 0x2435; // Multibyte default
153:
154:            // CCSID for Double-Byte Characters codepoint constant.
155:            static final int CCSIDDBC = 0x119D;
156:
157:            // CCSID for Mixed-Byte Characters codepoint constant.
158:            static final int CCSIDMBC = 0x119E;
159:
160:            // CCSID Manager.  Min. level 4.
161:            // Provides character data conversion of the DDM parameters
162:            // containing character data.
163:            static final int CCSIDMGR = 0x14CC;
164:
165:            // CCSID for Single-Byte Characters codepoint constant.
166:            static final int CCSIDSBC = 0x119C;
167:
168:            // LU 6.2 Conversational Communications Manager.
169:            // Describes the communications manager that supports
170:            // conversational protocols by using System Network
171:            // Architecture Logical Unit 6.2 (SNA LU 6.2) local
172:            // communications facilities.
173:            static final int CMNAPPC = 0x1444;
174:
175:            // SNA LU 6.2 Sync Point Conversational Communications
176:            // Manager.  Min. level 4.
177:            // Provides an SNA LU 6.2 Conversational Communications
178:            // Manager with sync point support.
179:            static final int CMNSYNCPT = 0x147C;
180:
181:            // TCP/IP Communication Manager codepoint constant.  Min. level 5.
182:            static final int CMNTCPIP = 0x1474;
183:
184:            // XA Manager codepoint constant
185:            static final int XAMGR = 0x1C01;
186:
187:            // Correlation Token codepoint constant.
188:            static final int CRRTKN = 0x2135;
189:
190:            // Target Default Value Return
191:            static final int TRGDFTRT = 0x213B;
192:
193:            // It is a manager of a set of named descriptions of object.
194:            static final int DICTIONARY = 0x1458;
195:
196:            // Manager dependency error code
197:            static final int DEPERRCD = 0x119B;
198:
199:            // Description Error code
200:            static final int DSCERRCD = 0x2101;
201:
202:            // Server Attributes Reply Data codepoint constant.
203:            static final int EXCSATRD = 0x1443;
204:
205:            // External Name codepoint constant.
206:            static final int EXTNAM = 0x115E;
207:
208:            // Fixed Row Query Protocol.
209:            static final int FIXROWPRC = 0x2418;
210:
211:            // Force Fixed Row Query Protocol.
212:            static final int FRCFIXROW = 0x2410;
213:
214:            // Limited Block Query Protocol.
215:            static final int LMTBLKPRC = 0x2417;
216:
217:            // Manager Level List codepoint constant.
218:            static final int MGRLVLLS = 0x1404;
219:
220:            // Manager Level Number Attribute constants.
221:            // Specifies the level of a defined DDM manager.
222:            static final int MGRLVLN = 0x1473;
223:
224:            // Monitor Events
225:            static final int MONITOR = 0x1900;
226:
227:            // Monitor Reply Data
228:            static final int MONITORRD = 0x1C00;
229:
230:            // New Password
231:            static final int NEWPASSWORD = 0x11DE;
232:
233:            // Password
234:            static final int PASSWORD = 0x11A1;
235:
236:            // Package Default Character Subtype codepoint constant.
237:            static final int PKGDFTCST = 0x2125;
238:
239:            // Package Id
240:            static final int PKGID = 0x2109;
241:
242:            // Maximum Number of extra Blocks
243:            static final int MAXBLKEXT = 0x2141;
244:
245:            // Maximum result set count
246:            static final int MAXRSLCNT = 0x2140;
247:
248:            // Result Set Flags
249:            static final int RSLSETFLG = 0x2142;
250:
251:            // RDB Commit allowed
252:            static final int RDBCMTOK = 0x2105;
253:
254:            // Package name & consistency token
255:            static final int PKGNAMCT = 0x2112;
256:
257:            // list of PAKNAMCSN
258:            static final int PKGSNLST = 0x2139;
259:
260:            // Conversational Protocol Error Code
261:            static final int PRCCNVCD = 0x113F;
262:
263:            // Product Specific Identifier codepoint constant.
264:            static final int PRDID = 0x112E;
265:
266:            // Output override
267:            static final int OUTOVR = 0x2415;
268:
269:            //Output override option
270:            static final int OUTOVROPT = 0x2147;
271:
272:            // Package Consistency Token
273:            static final int PKGCNSTKN = 0x210D;
274:
275:            // Product Specific Data
276:            static final int PRDDTA = 0x2104;
277:
278:            // Query Instance Identifier
279:            static final int QRYINSID = 0x215B;
280:
281:            // Query Block Protocol Control
282:            static final int QRYBLKCTL = 0x2132;
283:
284:            // Query Block Size
285:            static final int QRYBLKSZ = 0x2114;
286:
287:            // Query Protocol Type
288:            static final int QRYPRCTYP = 0x2102;
289:
290:            // Query Close Implicit
291:            static final int QRYCLSIMP = 0x215D;
292:
293:            // Query Close Lock Release
294:            static final int QRYCLSRLS = 0x215E;
295:
296:            // QRYOPTVAL - Query Optimization Value
297:            static final int QRYOPTVAL = 0x215F;
298:
299:            // Cursor Allows Read and Delete Operations.
300:            static final int QRYDEL = 0x2;
301:
302:            // Cursor is Read-only.
303:            static final int QRYRDO = 0x1;
304:
305:            // Insensitive SCROLL
306:            static final int QRYINS = 0x1;
307:
308:            // Sensitive static
309:            static final int QRYSNSSTC = 0x2;
310:
311:            // Number of fetch or Insert Rows
312:            static final int NBRROW = 0x213A;
313:
314:            // Output expected
315:            static final int OUTEXP = 0x2111;
316:
317:            // Procedure name
318:            static final int PRCNAM = 0x2138;
319:
320:            // Query Attribute for Updatability
321:            static final int QRYATTUPD = 0x2150;
322:
323:            // Cursor Allows Read, Delete, and Update Operations.
324:            static final int QRYUPD = 0x4;
325:
326:            // Relational Database codepoint constant.  Min. level 3.
327:            static final int RDB = 0x240F;
328:
329:            // RDB Access Manager Class.
330:            static final int RDBACCCL = 0x210F;
331:
332:            // RDB Allow Updates
333:            static final int RDBALWUPD = 0x211A;
334:
335:            // Query Relative  Scrolling Action
336:            static final int QRYRELSCR = 0x213C;
337:
338:            // Query Scroll Orientation
339:            static final int QRYSCRORN = 0x2152;
340:
341:            // Query Row Number
342:            static final int QRYROWNBR = 0x213D;
343:
344:            // Query Row Sensitivity
345:            static final int QRYROWSNS = 0x2153;
346:
347:            // Query Refresh Answer set table 
348:            static final int QRYRFRTBL = 0x213E;
349:
350:            // Query Attribute for Scrollability
351:            static final int QRYATTSCR = 0x2149;
352:
353:            // Query Attribute for Sensitivity
354:            static final int QRYATTSNS = 0x2157;
355:
356:            // Query Block Reset
357:            static final int QRYBLKRST = 0x2154;
358:
359:            // Query Rowset Size
360:            static final int QRYROWSET = 0x2156;
361:
362:            // Query Returns Data
363:            static final int QRYRTNDTA = 0x2155;
364:
365:            // RDB interrupt token.
366:            static final int RDBINTTKN = 0x2103;
367:
368:            // Relational Database Name codepoint constant.
369:            static final int RDBNAM = 0x2110;
370:
371:            // RDB Collection Identifier
372:            static final int RDBCOLID = 0x2108;
373:
374:            // Resource name information
375:            static final int RSCNAM = 0x112D;
376:
377:            // Resource Type Information
378:            static final int RSCTYP = 0x111F;
379:
380:            // Reason Code Information
381:            static final int RSNCOD = 0x1127;
382:
383:            // Resynchronization Manager.  Min levl 5.
384:            // It is a manager object of DDM that performs
385:            // resynchronization for in-doubt units of work after
386:            // a sync point operation failure.
387:            static final int RSYNCMGR = 0x14C1;
388:
389:            // Retuan SQL Descriptor Area
390:            static final int RTNSQLDA = 0x2116;
391:
392:            // Type of SQL Descriptor Area
393:            static final int TYPSQLDA = 0x2146;
394:
395:            // Security Check Code codepoint constant.
396:            static final int SECCHKCD = 0x11A4;
397:
398:            // Security Mechanism codepoint constant.
399:            static final int SECMEC = 0x11A2;
400:
401:            // Security Manager codepoint constant.
402:            static final int SECMGR = 0x1440;
403:
404:            // Security Manager Name codepoint constant.
405:            static final int SECMGRNM = 0x1196;
406:
407:            // Security Token codepoint constant.
408:            static final int SECTKN = 0x11DC;
409:
410:            // Return of EXTDTA Option
411:            static final int RTNEXTDTA = 0x2148;
412:
413:            // Return of EXTDTA Option - Return EXTDTAs by Row
414:            static final int RTNEXTROW = 0x1;
415:
416:            // Return of EXTDTA Option - Return All EXTDTAs for QRYDTA's Sent
417:            static final int RTNEXTALL = 0x2;
418:
419:            // Supervisor name codepoint constant.
420:            static final int SPVNAM = 0x115D;
421:
422:            // SQL Application Manager codepoint constant.  Min. level 3.
423:            static final int SQLAM = 0x2407;
424:
425:            // SQL Communication Area Reply Data codepoint constant.
426:            static final int SQLCARD = 0x2408;
427:
428:            // Hold Cursor Position
429:            static final int SQLCSRHLD = 0x211F;
430:
431:            // SQLDA Reply Data codepoint constant.
432:            static final int SQLDARD = 0x2411;
433:
434:            // Server Class Name codepoint constant.
435:            static final int SRVCLSNM = 0x1147;
436:
437:            // Server Diagnostic Information codepoint constant.
438:            static final int SRVDGN = 0x1153;
439:
440:            // Server List codepoint constant.
441:            static final int SRVLST = 0x244E;
442:
443:            // Server Name codepoint constant.
444:            static final int SRVNAM = 0x116D;
445:
446:            // Server Product Release Level codepoint constant.
447:            static final int SRVRLSLV = 0x115A;
448:
449:            //Statement Decimal Delimiter
450:            static final int STTDECDEL = 0x2121;
451:
452:            //Statement String Delimiter
453:            static final int STTSTRDEL = 0x2120;
454:
455:            // Supervisor.
456:            // Manages a collection of managers in a consistent manner.
457:            static final int SUPERVISOR = 0x143C;
458:
459:            // Security Service Error Number codepoint constant.
460:            static final int SVCERRNO = 0x11B4;
461:
462:            // Severity Code codepoint constant.
463:            static final int SVRCOD = 0x1149;
464:
465:            // Sync Point Manager.  Min. level 4.
466:            // It is a manager object of DDM that coordinates resource
467:            // recovery of the units of work associated with recoverable
468:            // resources in multiple DDM servers.
469:            static final int SYNCPTMGR = 0x14C0;
470:
471:            // Syntax Error code
472:            static final int SYNERRCD = 0x114A;
473:
474:            // Data Type Definition Name codepoint constant.
475:            static final int TYPDEFNAM = 0x002F;
476:
477:            // TYPDEF Overrides codepoint constant.
478:            static final int TYPDEFOVR = 0x0035;
479:
480:            // Unit of Word Disposition codepoint constant.
481:            static final int UOWDSP = 0x2115;
482:
483:            // Usrid codepoint constant.
484:            static final int USRID = 0x11A0;
485:
486:            // Version name
487:            static final int VRSNAM = 0x1144;
488:
489:            // Rdb Package Name, Consistency Token, and Section
490:            // Number codepoint constant.
491:            static final int PKGNAMCSN = 0x2113;
492:
493:            // SQL Error Diagnostic Level
494:            static final int DIAGLVL = 0x2160;
495:
496:            //-----------------------DDM reply codepoints---------------------------------
497:
498:            // Invalid description
499:            static final int DSCINVRM = 0x220A;
500:
501:            // Codepoint for Command Authorization for Agent Permanent Error
502:            static final int CMDATHRM = 0x121C;
503:
504:            // Command Check codepoint constant.
505:            static final int CMDCHKRM = 0x1254;
506:
507:            // Command Not Supported codepoint constant.
508:            static final int CMDNSPRM = 0x1250;
509:
510:            // Codepoint for Agent Permanent Error Reply message
511:            static final int AGNPRMRM = 0x1232;
512:
513:            static final int BGNBNDRM = 0x2208;
514:
515:            // Abnormal End of Unit of Work Condition codepoint constant.
516:            static final int ABNUOWRM = 0x220D;
517:
518:            // Access to RDB Completed.
519:            // Specifies that an instance of the SQL application manager
520:            // has been created and is bound to the specified RDB.
521:            static final int ACCRDBRM = 0x2201;
522:
523:            final static int CMDCMPRM = 0x124B;
524:
525:            final static int MGRLVLRM = 0x1210;
526:
527:            // Manager dependency Error
528:            static final int MGRDEPRM = 0x1218;
529:
530:            // End Unit of Work Condition codepoint constant.
531:            static final int ENDUOWRM = 0x220C;
532:
533:            // Object Not Supported codepoint constant.
534:            static final int OBJNSPRM = 0x1253;
535:
536:            // Conversational Protocol Error
537:            static final int PRCCNVRM = 0x1245;
538:
539:            // Parameter Not Supported codepoint constant.
540:            static final int PRMNSPRM = 0x1251;
541:
542:            // RDB Package Binding Process Not active Codepoint
543:            static final int PKGBNARM = 0x2206;
544:
545:            // RDB Package Binding Process Active codepoint constant.
546:            static final int PKGBPARM = 0x2209;
547:
548:            // Query not open codepoint constant.
549:            static final int QRYNOPRM = 0x2202;
550:
551:            // Query previously opened codepoint
552:            static final int QRYPOPRM = 0x220F;
553:
554:            // RDB Currently Accessed Codepoint
555:            static final int RDBACCRM = 0x2207;
556:
557:            // Security Check.
558:            // Indicates the acceptability of the security information.
559:            static final int SECCHKRM = 0x1219;
560:
561:            // RDB Access Failed Reply Message codepoint
562:            static final int RDBAFLRM = 0x221A;
563:
564:            // Not Authorized To RDB reply message codepoint
565:            static final int RDBATHRM = 0x22CB;
566:
567:            // RDB Not Accessed codepoint constant.
568:            static final int RDBNACRM = 0x2204;
569:
570:            // RDB not found codepoint
571:            static final int RDBNFNRM = 0x2211;
572:
573:            // RDB Update Reply Message codepoint constant.
574:            static final int RDBUPDRM = 0x2218;
575:
576:            // Resources Limits Reached
577:            static final int RSCLMTRM = 0x1233;
578:
579:            // Data Stream Syntax Error
580:            static final int SYNTAXRM = 0x124C;
581:
582:            // Target Not Supported
583:            static final int TRGNSPRM = 0x125F;
584:
585:            // Parameter Value Not Supported codepoint constant.
586:            static final int VALNSPRM = 0x1252;
587:
588:            // SQL Error Condition codepoint constant.
589:            static final int SQLERRRM = 0x2213;
590:
591:            final static int OPNQRYRM = 0x2205;
592:            final static int ENDQRYRM = 0x220B;
593:            final static int DTAMCHRM = 0x220E;
594:            final static int OPNQFLRM = 0x2212;
595:            final static int RSLSETRM = 0x2219;
596:            final static int CMDVLTRM = 0x221D;
597:            final static int CMMRQSRM = 0x2225;
598:
599:            //-----------------------ddm enumerated values-------------------------------
600:
601:            // TYPSQLDA - Standard Output SQLDA
602:            static final int TYPSQLDA_STD_OUTPUT = 0;
603:
604:            // TYPSQLDA - Standard Input SQLDA
605:            static final int TYPSQLDA_STD_INPUT = 1;
606:
607:            // TYPSQLDA - Light Output SQLDA
608:            static final int TYPSQLDA_LIGHT_OUTPUT = 2;
609:
610:            // TYPSQLDA - Light Input SQLDA
611:            static final int TYPSQLDA_LIGHT_INPUT = 3;
612:
613:            // TYPSQLDA - Extended Output SQLDA
614:            static final int TYPSQLDA_X_OUTPUT = 4;
615:
616:            // TYPSQLDA - Extended Input SQLDA
617:            static final int TYPSQLDA_X_INPUT = 5;
618:
619:            // QRYCLSIMP - Target Server determines whether to implicitly
620:            // close the cursor or not upon SQLSTATE 02000 based on cursor type.
621:            static final int QRYCLSIMP_SERVER_CHOICE = 0x00;
622:
623:            // QRYCLSIMP - Target Server must implicitly close the cursor
624:            // upon SQLSTATE 02000.
625:            static final int QRYCLSIMP_YES = 0x01;
626:
627:            // QRYCLSIMP - Target Server must not implicitly close the cursor
628:            // upon SQLSTATE 02000.
629:            static final int QRYCLSIMP_NO = 0x02;
630:
631:            // QRYCLSRLS - Do not release read locks when the query is closed
632:            static final int QRYCLSRLS_NO = 0x00;
633:
634:            // QRYCLSRLS - Release read locks when the query is closed
635:            static final int QRYCLSRLS_YES = 0x01;
636:
637:            // QRYBLKFCT - No 'OPTIMIZE for N ROWS' clause associated with
638:            // the select statement for the cursor.
639:            static final int QRYBLKFCT_NONE = 0x00;
640:
641:            // QRYBLKEXA - Every query block is exactly the size specified
642:            // in the QRYBLKSZ parameter, except for possibly the last
643:            // query block which may be shorter.
644:            static final int QRYBLKEXA = 0x00;
645:
646:            // QRYBLKFLX - Every query block is at least the size specified
647:            // in the QRYBLKSZ parameter, except for possibly the last
648:            // query block which may be shorter.
649:            static final int QRYBLKFLX = 0x01;
650:
651:            // SQL Error Diagnostic Level
652:            // DIAGLVL0 A null SQLDIAGGRP is returned. This is the default.
653:            // DIAGLVL1 A non-null SQLDIAGGRP should be returned.
654:            // DIAGLVL2 A non-null SQLDIAGGRP should be returned, and both SQLDCMSG
655:            // message text fields should be returned as null strings.
656:            static final byte DIAGLVL0 = (byte) 0xF0;
657:            static final byte DIAGLVL1 = (byte) 0xF1;
658:            static final byte DIAGLVL2 = (byte) 0xF2;
659:
660:            //----------------------------fdoca code points-------------------------------
661:
662:            // Externalized FD:OCA Data codepoint constant.
663:            static final int EXTDTA = 0x146C;
664:
665:            // FDOCA data descriptor
666:            static final int FDODSC = 0x0010;
667:
668:            // FDOCA data
669:            static final int FDODTA = 0x147A;
670:
671:            // FDOCA Descriptor offset
672:            static final int FDODSCOFF = 0x2118;
673:
674:            // FDOCA Triplet Parameter offset
675:            static final int FDOPRMOFF = 0x212B;
676:
677:            // FDOCA Triplet offset
678:            static final int FDOTRPOFF = 0x212A;
679:
680:            //--------------------------ddm error code points---------------------------------
681:            static final int SYNERRCD_DSS_LESS_THAN_6 = 0x01;
682:            static final int SYNERRCD_DSS_LENGTH_BYTE_NUMBER_MISMATCH = 0x02;
683:            static final int SYNERRCD_CBYTE_NOT_D0 = 0x03;
684:            static final int SYNERRCD_FBYTE_NOT_SUPPORTED = 0x04;
685:            static final int SYNERRCD_OBJ_LEN_LESS_THAN_4 = 0x07;
686:            static final int SYNERRCD_TOO_BIG = 0x09;
687:            static final int SYNERRCD_OBJ_LEN_NOT_ALLOWED = 0x0B;
688:            static final int SYNERRCD_INCORRECT_EXTENDED_LEN = 0x0C;
689:            static final int SYNERRCD_REQ_OBJ_NOT_FOUND = 0x0E;
690:            static final int SYNERRCD_TOO_MANY = 0x0F;
691:            static final int SYNERRCD_DUP_OBJ_PRESENT = 0x12;
692:            static final int SYNERRCD_INVALID_CORRELATOR = 0x13;
693:            static final int SYNERRCD_REQ_VAL_NOT_FOUND = 0x14;
694:            static final int SYNERRCD_DSS_CONT_LESS_OR_EQUAL_2 = 0x16;
695:            static final int SYNERRCD_CHAIN_OFF_SAME_NEXT_CORRELATOR = 0x18;
696:            static final int SYNERRCD_CHAIN_OFF_ERROR_CONTINUE = 0x1A;
697:            static final int SYNERRCD_INVALID_CP_FOR_CMD = 0x1D;
698:
699:            static final int PRCCNVCD_OBJDSS_SENT_NOT_ALLOWED = 0x03;
700:            static final int PRCCNVCD_EXCSAT_FIRST_AFTER_CONN = 0x06;
701:            static final int PRCCNVCD_ACCSEC_SECCHK_WRONG_STATE = 0x11;
702:            static final int PRCCNVCD_RDBNAM_MISMATCH = 0x12;
703:
704:            static final int SVRCOD_INFO = 0; // Information Only Severity Code
705:            static final int SVRCOD_WARNING = 4; // Warning Severity Code
706:            static final int SVRCOD_ERROR = 8; // Error Severity Code
707:            static final int SVRCOD_SEVERE = 16; // Severe Error Severity Code
708:            static final int SVRCOD_ACCDMG = 32; // Access Damage Severity Code
709:            static final int SVRCOD_PRMDMG = 64; // Permanent Damage Severity Code
710:            static final int SVRCOD_SESDMG = 128; // Session Damage Severity Code
711:
712:            //---------------------- Security Mechanisms ---------------------------
713:            static final int SECMEC_DCESEC = 1; // Distributed Computing Environment Security
714:            static final int SECMEC_USRIDPWD = 3; // Userid and Password
715:            static final int SECMEC_USRIDONL = 4; // Userid only
716:            static final int SECMEC_USRIDNWPWD = 5; // Userid, Password, and new Password
717:            static final int SECMEC_USRSBSPWD = 6; // Userid with substitute password
718:            static final int SECMEC_USRENCPWD = 7; // Userid with encrypted password
719:            static final int SECMEC_USRSSBPWD = 8; // Userid with Strong password substitute
720:            static final int SECMEC_EUSRIDPWD = 9; // Encrpyted userid and password
721:            static final int SECMEC_EUSRIDNWPWD = 10; // Encrpyted userid and password
722:
723:            //---------------------Security Check Codes ---------------------------
724:            static final int SECCHKCD_OK = 0; // Security info correct and acceptable
725:            static final int SECCHKCD_NOTSUPPORTED = 0x01; // SECMEC value not supported
726:            static final int SECCHKCD_SECTKNMISSING_OR_INVALID = 0x0E; // SECTKN missing or invalid 
727:            static final int SECCHKCD_PASSWORDMISSING = 0x10; // Password missing  
728:            static final int SECCHKCD_USERIDMISSING = 0x12; // User Id missing  
729:            static final int SECCHKCD_USERIDINVALID = 0x13; // Userid invalid
730:
731:            //----------------------Type Definition Names we care about -----------
732:            static final String TYPDEFNAM_QTDSQLASC = "QTDSQLASC"; // ASCII
733:            static final String TYPDEFNAM_QTDSQLJVM = "QTDSQLJVM"; // Java platform
734:            static final String TYPDEFNAM_QTDSQLX86 = "QTDSQLX86"; //  Intel X86 platform
735:
736:            //----------------------Max sizes for strings in the protocol ---------
737:            static final int MAX_NAME = 255;
738:            static final int RDBNAM_LEN = 18; //dbname fixed length for SQLAM level 6, for level 7,
739:            //limit is MAX_NAME (255)
740:            static final int PRDID_MAX = 8;
741:            static final int RDBCOLID_LEN = 18;
742:            static final int PKGID_LEN = 18;
743:            static final int PKGCNSTKN_LEN = 8;
744:            static final int PKGNAMCSN_LEN = RDBNAM_LEN + RDBCOLID_LEN
745:                    + PKGID_LEN + PKGCNSTKN_LEN + 2;
746:
747:            //---------------------QRYBLSZ min and maximum
748:            static final int QRYBLKSZ_MIN = 512;
749:            static final int QRYBLKSZ_MAX = 10 * 1024 * 1024;
750:            static final int QRYROWSET_MAX = 32767;
751:            static final int QRYROWSET_DEFAULT = -1;
752:
753:            //--------------------Defaults for QRYBLKCTL and MAXBLKEXT
754:            static final int QRYBLKCTL_DEFAULT = LMTBLKPRC;
755:            static final int MAXBLKEXT_NONE = 0;
756:            static final int MAXBLKEXT_DEFAULT = MAXBLKEXT_NONE;
757:
758:            //-------------- QRYSCRORN - query scroll orientation values
759:            static final int QRYSCRREL = 1; // relative fetch
760:            static final int QRYSCRABS = 2; // absolute fetch
761:            static final int QRYSCRAFT = 3; // after last row
762:            static final int QRYSCRBEF = 4; // before first row
763:
764:            //---------------OUTOVROPT - output override option values
765:            static final int OUTOVRFRS = 1; // Output Override allowed on first CNTQRY
766:            static final int OUTOVRANY = 2; // Output Override allowed on any CNTQRY
767:
768:            //--------------------------XA code points---------------------------
769:
770:            // Release conversation
771:            public static final int RLSCONV = 0x119F;
772:
773:            // SYNC Point Control Reply
774:            public static final int SYNCCRD = 0x1248;
775:
776:            // XA Return Value
777:            public static final int XARETVAL = 0x1904;
778:
779:            // XA Timeout Value;
780:            public static final int TIMEOUT = 0x1907;
781:
782:            // new unit of work for XA
783:            public static final int SYNCTYPE_NEW_UOW = 0x09;
784:
785:            // End unit of work (Sync type).
786:            public static final int SYNCTYPE_END_UOW = 0x0B;
787:
788:            // Prepare to commit (Sync type).
789:            public static final int SYNCTYPE_PREPARE = 0x01;
790:
791:            // migrate to resync server sync type
792:            public static final int SYNCTYPE_MIGRATE = 0x02;
793:
794:            // commit sync type
795:            public static final int SYNCTYPE_COMMITTED = 0x03;
796:
797:            // request to commit sync type
798:            public static final int SYNCTYPE_REQ_COMMIT = 0x05;
799:
800:            // request to forget sync type
801:            public static final int SYNCTYPE_REQ_FORGET = 0x06;
802:
803:            //rollback sync type
804:            public static final int SYNCTYPE_ROLLBACK = 0x04;
805:
806:            // Request Sync log information (Sync type).
807:            static final int SYNCTYPE_REQ_LOG = 0x08;
808:
809:            // migrated unit of work sync type
810:            public static final int SYNCTYPE_MIGRATED = 0x0A;
811:
812:            //recover sync type
813:            public static final int SYNCTYPE_INDOUBT = 0x0C;
814:
815:            // Forget unit of work.
816:            public static final int FORGET = 0x1186;
817:
818:            // SYNC Type Codepoint
819:            public static final int SYNCTYPE = 0x1187;
820:
821:            // XId Codepoint
822:            public static final int XID = 0x1801;
823:
824:            // XA Flag Codepoint
825:            public static final int XAFLAGS = 0x1903;
826:
827:            // Resync Type
828:            public static final int RSYNCTYP = 0x11EA;
829:
830:            // Sync Resync Reply
831:            public static final int SYNCRRD = 0x126D;
832:
833:            // XA Flags
834:            public static final int TMNOFLAGS = 0x00000000;
835:
836:            // Prepared and hueristic complete list
837:            static final int PRPHRCLST = 0x1905;
838:
839:            // XID count
840:            static final int XIDCNT = 0x1906;
841:
842:            //-----------------------Manager code points --------------------------
843:
844:            protected static int[] MGR_CODEPOINTS = { AGENT, CCSIDMGR, CMNAPPC,
845:                    CMNSYNCPT, CMNTCPIP, DICTIONARY, RDB, RSYNCMGR, SECMGR,
846:                    SQLAM, SUPERVISOR, SYNCPTMGR, XAMGR };
847:            protected static final int UNKNOWN_MANAGER = -1;
848:
849:            // hide the default constructor
850:            private CodePoint() {
851:            }
852:
853:            /**
854:             * Given a manager codepoint find it's location in the managers array
855:             *
856:             * @return index into manager array or UNKNOWN_MANAGER if not found
857:             */
858:            protected static int getManagerIndex(int manager) {
859:                for (int i = 0; i < MGR_CODEPOINTS.length; i++)
860:                    if (MGR_CODEPOINTS[i] == manager)
861:                        return i;
862:                return UNKNOWN_MANAGER;
863:            }
864:
865:            /**
866:             * Check if a manager codepoint is a known manager
867:             * 
868:             * @return true if known, false otherwise
869:             */
870:            protected static boolean isKnownManager(int manager) {
871:                for (int i = 0; i < CodePoint.MGR_CODEPOINTS.length; i++)
872:                    if (manager == CodePoint.MGR_CODEPOINTS[i])
873:                        return true;
874:                return false;
875:            }
876:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.