001: /*
002:
003: Derby - Class org.apache.derby.impl.drda.CodePointNameTable
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: /**
024: This class has a hashtable of CodePoint values. It is used by the tracing
025: code and by the protocol testing code
026: It is arranged in alphabetical order.
027: */
028:
029: class CodePointNameTable extends java.util.Hashtable {
030: CodePointNameTable() {
031: put(new Integer(CodePoint.ABNUOWRM), "ABNUOWRM");
032: put(new Integer(CodePoint.ACCRDB), "ACCRDB");
033: put(new Integer(CodePoint.ACCRDBRM), "ACCRDBRM");
034: put(new Integer(CodePoint.ACCSEC), "ACCSEC");
035: put(new Integer(CodePoint.ACCSECRD), "ACCSECRD");
036: put(new Integer(CodePoint.AGENT), "AGENT");
037: put(new Integer(CodePoint.AGNPRMRM), "AGNPRMRM");
038: put(new Integer(CodePoint.BGNBND), "BGNBND");
039: put(new Integer(CodePoint.BGNBNDRM), "BGNBNDRM");
040: put(new Integer(CodePoint.BNDSQLSTT), "BNDSQLSTT");
041: put(new Integer(CodePoint.CCSIDSBC), "CCSIDSBC");
042: put(new Integer(CodePoint.CCSIDMBC), "CCSIDMBC");
043: put(new Integer(CodePoint.CCSIDDBC), "CCSIDDBC");
044: put(new Integer(CodePoint.CLSQRY), "CLSQRY");
045: put(new Integer(CodePoint.CMDATHRM), "CMDATHRM");
046: put(new Integer(CodePoint.CMDCHKRM), "CMDCHKRM");
047: put(new Integer(CodePoint.CMDCMPRM), "CMDCMPRM");
048: put(new Integer(CodePoint.CMDNSPRM), "CMDNSPRM");
049: put(new Integer(CodePoint.CMMRQSRM), "CMMRQSRM");
050: put(new Integer(CodePoint.CMDVLTRM), "CMDVLTRM");
051: put(new Integer(CodePoint.CNTQRY), "CNTQRY");
052: put(new Integer(CodePoint.CRRTKN), "CRRTKN");
053: put(new Integer(CodePoint.DRPPKG), "DRPPKG");
054: put(new Integer(CodePoint.DSCRDBTBL), "DSCRDBTBL");
055: put(new Integer(CodePoint.DSCINVRM), "DSCINVRM");
056: put(new Integer(CodePoint.DSCSQLSTT), "DSCSQLSTT");
057: put(new Integer(CodePoint.DTAMCHRM), "DTAMCHRM");
058: put(new Integer(CodePoint.ENDBND), "ENDBND");
059: put(new Integer(CodePoint.ENDQRYRM), "ENDQRYRM");
060: put(new Integer(CodePoint.ENDUOWRM), "ENDUOWRM");
061: put(new Integer(CodePoint.EXCSAT), "EXCSAT");
062: put(new Integer(CodePoint.EXCSATRD), "EXCSATRD");
063: put(new Integer(CodePoint.EXCSQLIMM), "EXCSQLIMM");
064: put(new Integer(CodePoint.EXCSQLSET), "EXCSQLSET");
065: put(new Integer(CodePoint.EXCSQLSTT), "EXCSQLSTT");
066: put(new Integer(CodePoint.EXTNAM), "EXTNAM");
067: put(new Integer(CodePoint.FRCFIXROW), "FRCFIXROW");
068: put(new Integer(CodePoint.MAXBLKEXT), "MAXBLKEXT");
069: put(new Integer(CodePoint.MAXRSLCNT), "MAXRSLCNT");
070: put(new Integer(CodePoint.MGRDEPRM), "MGRDEPRM");
071: put(new Integer(CodePoint.MGRLVLLS), "MGRLVLLS");
072: put(new Integer(CodePoint.MGRLVLRM), "MGRLVLRM");
073: put(new Integer(CodePoint.MONITOR), "MONITOR");
074: put(new Integer(CodePoint.NBRROW), "NBRROW");
075: put(new Integer(CodePoint.OBJNSPRM), "OBJNSPRM");
076: put(new Integer(CodePoint.OPNQFLRM), "OPNQFLRM");
077: put(new Integer(CodePoint.OPNQRY), "OPNQRY");
078: put(new Integer(CodePoint.OPNQRYRM), "OPNQRYRM");
079: put(new Integer(CodePoint.OUTEXP), "OUTEXP");
080: put(new Integer(CodePoint.OUTOVR), "OUTOVR");
081: put(new Integer(CodePoint.OUTOVROPT), "OUTOVROPT");
082: put(new Integer(CodePoint.PASSWORD), "PASSWORD");
083: put(new Integer(CodePoint.PKGID), "PKGID");
084: put(new Integer(CodePoint.PKGBNARM), "PKGBNARM");
085: put(new Integer(CodePoint.PKGBPARM), "PKGBPARM");
086: put(new Integer(CodePoint.PKGNAMCSN), "PKGNAMCSN");
087: put(new Integer(CodePoint.PKGNAMCT), "PKGNAMCT");
088: put(new Integer(CodePoint.PRCCNVRM), "PRCCNVRM");
089: put(new Integer(CodePoint.PRDID), "PRDID");
090: put(new Integer(CodePoint.PRDDTA), "PRDDTA");
091: put(new Integer(CodePoint.PRMNSPRM), "PRMNSPRM");
092: put(new Integer(CodePoint.PRPSQLSTT), "PRPSQLSTT");
093: put(new Integer(CodePoint.QRYBLKCTL), "QRYBLKCTL");
094: put(new Integer(CodePoint.QRYBLKRST), "QRYBLKRST");
095: put(new Integer(CodePoint.QRYBLKSZ), "QRYBLKSZ");
096: put(new Integer(CodePoint.QRYCLSIMP), "QRYCLSIMP");
097: put(new Integer(CodePoint.QRYCLSRLS), "QRYCLSRLS");
098: put(new Integer(CodePoint.QRYDSC), "QRYDSC");
099: put(new Integer(CodePoint.QRYDTA), "QRYDTA");
100: put(new Integer(CodePoint.QRYINSID), "QRYINSID");
101: put(new Integer(CodePoint.QRYNOPRM), "QRYNOPRM");
102: put(new Integer(CodePoint.QRYPOPRM), "QRYPOPRM");
103: put(new Integer(CodePoint.QRYRELSCR), "QRYRELSCR");
104: put(new Integer(CodePoint.QRYRFRTBL), "QRYRFRTBL");
105: put(new Integer(CodePoint.QRYROWNBR), "QRYROWNBR");
106: put(new Integer(CodePoint.QRYROWSNS), "QRYROWSNS");
107: put(new Integer(CodePoint.QRYRTNDTA), "QRYRTNDTA");
108: put(new Integer(CodePoint.QRYSCRORN), "QRYSCRORN");
109: put(new Integer(CodePoint.QRYROWSET), "QRYROWSET");
110: put(new Integer(CodePoint.RDBAFLRM), "RDBAFLRM");
111: put(new Integer(CodePoint.RDBACCCL), "RDBACCCL");
112: put(new Integer(CodePoint.RDBACCRM), "RDBACCRM");
113: put(new Integer(CodePoint.RDBALWUPD), "RDBALWUPD");
114: put(new Integer(CodePoint.RDBATHRM), "RDBATHRM");
115: put(new Integer(CodePoint.RDBCMM), "RDBCMM");
116: put(new Integer(CodePoint.RDBCMTOK), "RDBCMTOK");
117: put(new Integer(CodePoint.RDBNACRM), "RDBNACRM");
118: put(new Integer(CodePoint.RDBNAM), "RDBNAM");
119: put(new Integer(CodePoint.RDBNFNRM), "RDBNFNRM");
120: put(new Integer(CodePoint.RDBRLLBCK), "RDBRLLBCK");
121: put(new Integer(CodePoint.RDBUPDRM), "RDBUPDRM");
122: put(new Integer(CodePoint.REBIND), "REBIND");
123: put(new Integer(CodePoint.RSCLMTRM), "RSCLMTRM");
124: put(new Integer(CodePoint.RSLSETRM), "RSLSETRM");
125: put(new Integer(CodePoint.RTNEXTDTA), "RTNEXTDTA");
126: put(new Integer(CodePoint.RTNSQLDA), "RTNSQLDA");
127: put(new Integer(CodePoint.SECCHK), "SECCHK");
128: put(new Integer(CodePoint.SECCHKCD), "SECCHKCD");
129: put(new Integer(CodePoint.SECCHKRM), "SECCHKRM");
130: put(new Integer(CodePoint.SECMEC), "SECMEC");
131: put(new Integer(CodePoint.SECMGRNM), "SECMGRNM");
132: put(new Integer(CodePoint.SECTKN), "SECTKN");
133: put(new Integer(CodePoint.SPVNAM), "SPVNAM");
134: put(new Integer(CodePoint.SQLAM), "SQLAM");
135: put(new Integer(CodePoint.SQLATTR), "SQLATTR");
136: put(new Integer(CodePoint.SQLCARD), "SQLCARD");
137: put(new Integer(CodePoint.SQLERRRM), "SQLERRRM");
138: put(new Integer(CodePoint.SQLDARD), "SQLDARD");
139: put(new Integer(CodePoint.SQLDTA), "SQLDTA");
140: put(new Integer(CodePoint.SQLDTARD), "SQLDTARD");
141: put(new Integer(CodePoint.SQLSTT), "SQLSTT");
142: put(new Integer(CodePoint.SQLSTTVRB), "SQLSTTVRB");
143: put(new Integer(CodePoint.SRVCLSNM), "SRVCLSNM");
144: put(new Integer(CodePoint.SRVRLSLV), "SRVRLSLV");
145: put(new Integer(CodePoint.SRVNAM), "SRVNAM");
146: put(new Integer(CodePoint.SVRCOD), "SVRCOD");
147: put(new Integer(CodePoint.SYNCCTL), "SYNCCTL");
148: put(new Integer(CodePoint.SYNCLOG), "SYNCLOG");
149: put(new Integer(CodePoint.SYNCRSY), "SYNCRSY");
150: put(new Integer(CodePoint.SYNTAXRM), "SYNTAXRM");
151: put(new Integer(CodePoint.TRGNSPRM), "TRGNSPRM");
152: put(new Integer(CodePoint.TYPDEFNAM), "TYPDEFNAM");
153: put(new Integer(CodePoint.TYPDEFOVR), "TYPDEFOVR");
154: put(new Integer(CodePoint.TYPSQLDA), "TYPSQLDA");
155: put(new Integer(CodePoint.UOWDSP), "UOWDSP");
156: put(new Integer(CodePoint.USRID), "USRID");
157: put(new Integer(CodePoint.VALNSPRM), "VALNSPRM");
158: }
159:
160: String lookup(int codePoint) {
161: return (String) get(new Integer(codePoint));
162: }
163:
164: }
|