001: ///////////////////////////////////////////////////////////////////////////////
002: //
003: // Copyright (C) 2003-@year@ by Thomas M. Hazel, MyOODB (www.myoodb.org)
004: //
005: // All Rights Reserved
006: //
007: // This program is free software; you can redistribute it and/or modify
008: // it under the terms of the GNU General Public License and GNU Library
009: // General Public License as published by the Free Software Foundation;
010: // either version 2, or (at your option) any later version.
011: //
012: // This program is distributed in the hope that it will be useful,
013: // but WITHOUT ANY WARRANTY; without even the implied warranty of
014: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
015: // GNU General Public License and GNU Library General Public License
016: // for more details.
017: //
018: // You should have received a copy of the GNU General Public License
019: // and GNU Library General Public License along with this program; if
020: // not, write to the Free Software Foundation, 675 Mass Ave, Cambridge,
021: // MA 02139, USA.
022: //
023: ///////////////////////////////////////////////////////////////////////////////
024:
025: package org.rdesktop.server;
026:
027: public class StreamProtocolServer {
028: public static Object[][] Map = {
029: // java
030: { int.class, new java.lang.Short((short) 0) },
031: { int[].class, new java.lang.Short((short) 1) },
032: { char.class, new java.lang.Short((short) 2) },
033: { char[].class, new java.lang.Short((short) 3) },
034: { long.class, new java.lang.Short((short) 4) },
035: { long[].class, new java.lang.Short((short) 5) },
036: { byte.class, new java.lang.Short((short) 6) },
037: { byte[].class, new java.lang.Short((short) 7) },
038: { short.class, new java.lang.Short((short) 8) },
039: { short[].class, new java.lang.Short((short) 9) },
040: { float.class, new java.lang.Short((short) 10) },
041: { float[].class, new java.lang.Short((short) 11) },
042: { double.class, new java.lang.Short((short) 12) },
043: { double[].class, new java.lang.Short((short) 13) },
044: { boolean.class, new java.lang.Short((short) 14) },
045: { boolean[].class, new java.lang.Short((short) 15) },
046: { java.io.CharConversionException.class,
047: new java.lang.Short((short) 16) },
048: { java.io.EOFException.class,
049: new java.lang.Short((short) 17) },
050: { java.io.Externalizable.class,
051: new java.lang.Short((short) 18) },
052: { java.io.File.class, new java.lang.Short((short) 19) },
053: { java.io.FileNotFoundException.class,
054: new java.lang.Short((short) 20) },
055: { java.io.FilePermission.class,
056: new java.lang.Short((short) 21) },
057: { java.io.IOException.class,
058: new java.lang.Short((short) 22) },
059: { java.io.InterruptedIOException.class,
060: new java.lang.Short((short) 23) },
061: { java.io.InvalidClassException.class,
062: new java.lang.Short((short) 24) },
063: { java.io.InvalidObjectException.class,
064: new java.lang.Short((short) 25) },
065: { java.io.NotActiveException.class,
066: new java.lang.Short((short) 26) },
067: { java.io.NotSerializableException.class,
068: new java.lang.Short((short) 27) },
069: { java.io.ObjectStreamClass.class,
070: new java.lang.Short((short) 28) },
071: { java.io.ObjectStreamException.class,
072: new java.lang.Short((short) 29) },
073: { java.io.OptionalDataException.class,
074: new java.lang.Short((short) 30) },
075: { java.io.Serializable.class,
076: new java.lang.Short((short) 31) },
077: { java.io.SerializablePermission.class,
078: new java.lang.Short((short) 32) },
079: { java.io.StreamCorruptedException.class,
080: new java.lang.Short((short) 33) },
081: { java.io.SyncFailedException.class,
082: new java.lang.Short((short) 34) },
083: { java.io.UTFDataFormatException.class,
084: new java.lang.Short((short) 35) },
085: { java.io.UnsupportedEncodingException.class,
086: new java.lang.Short((short) 36) },
087: { java.io.WriteAbortedException.class,
088: new java.lang.Short((short) 37) },
089: { java.util.ArrayList.class,
090: new java.lang.Short((short) 38) },
091: { java.util.BitSet.class, new java.lang.Short((short) 39) },
092: { java.util.Calendar.class, new java.lang.Short((short) 40) },
093: { java.util.ConcurrentModificationException.class,
094: new java.lang.Short((short) 41) },
095: { java.util.Currency.class, new java.lang.Short((short) 42) },
096: { java.util.Date.class, new java.lang.Short((short) 43) },
097: { java.util.DuplicateFormatFlagsException.class,
098: new java.lang.Short((short) 44) },
099: { java.util.EmptyStackException.class,
100: new java.lang.Short((short) 45) },
101: { java.util.EnumMap.class, new java.lang.Short((short) 46) },
102: { java.util.EnumSet.class, new java.lang.Short((short) 47) },
103: { java.util.EventObject.class,
104: new java.lang.Short((short) 48) },
105: { java.util.FormatFlagsConversionMismatchException.class,
106: new java.lang.Short((short) 49) },
107: { java.util.FormatterClosedException.class,
108: new java.lang.Short((short) 50) },
109: { java.util.GregorianCalendar.class,
110: new java.lang.Short((short) 51) },
111: { java.util.HashMap.class, new java.lang.Short((short) 52) },
112: { java.util.HashSet.class, new java.lang.Short((short) 53) },
113: { java.util.Hashtable.class,
114: new java.lang.Short((short) 54) },
115: { java.util.IdentityHashMap.class,
116: new java.lang.Short((short) 55) },
117: { java.util.IllegalFormatCodePointException.class,
118: new java.lang.Short((short) 56) },
119: { java.util.IllegalFormatConversionException.class,
120: new java.lang.Short((short) 57) },
121: { java.util.IllegalFormatException.class,
122: new java.lang.Short((short) 58) },
123: { java.util.IllegalFormatFlagsException.class,
124: new java.lang.Short((short) 59) },
125: { java.util.IllegalFormatPrecisionException.class,
126: new java.lang.Short((short) 60) },
127: { java.util.IllegalFormatWidthException.class,
128: new java.lang.Short((short) 61) },
129: { java.util.InputMismatchException.class,
130: new java.lang.Short((short) 62) },
131: { java.util.InvalidPropertiesFormatException.class,
132: new java.lang.Short((short) 63) },
133: { java.util.LinkedHashMap.class,
134: new java.lang.Short((short) 64) },
135: { java.util.LinkedHashSet.class,
136: new java.lang.Short((short) 65) },
137: { java.util.LinkedList.class,
138: new java.lang.Short((short) 66) },
139: { java.util.Locale.class, new java.lang.Short((short) 67) },
140: { java.util.MissingFormatArgumentException.class,
141: new java.lang.Short((short) 68) },
142: { java.util.MissingFormatWidthException.class,
143: new java.lang.Short((short) 69) },
144: { java.util.MissingResourceException.class,
145: new java.lang.Short((short) 70) },
146: { java.util.NoSuchElementException.class,
147: new java.lang.Short((short) 71) },
148: { java.util.PriorityQueue.class,
149: new java.lang.Short((short) 72) },
150: { java.util.Properties.class,
151: new java.lang.Short((short) 73) },
152: { java.util.PropertyPermission.class,
153: new java.lang.Short((short) 74) },
154: { java.util.Random.class, new java.lang.Short((short) 75) },
155: { java.util.SimpleTimeZone.class,
156: new java.lang.Short((short) 76) },
157: { java.util.Stack.class, new java.lang.Short((short) 77) },
158: { java.util.TimeZone.class, new java.lang.Short((short) 78) },
159: { java.util.TooManyListenersException.class,
160: new java.lang.Short((short) 79) },
161: { java.util.TreeMap.class, new java.lang.Short((short) 80) },
162: { java.util.TreeSet.class, new java.lang.Short((short) 81) },
163: { java.util.UUID.class, new java.lang.Short((short) 82) },
164: { java.util.UnknownFormatConversionException.class,
165: new java.lang.Short((short) 83) },
166: { java.util.UnknownFormatFlagsException.class,
167: new java.lang.Short((short) 84) },
168: { java.util.Vector.class, new java.lang.Short((short) 85) },
169: { java.lang.AbstractMethodError.class,
170: new java.lang.Short((short) 86) },
171: { java.lang.AbstractMethodError[].class,
172: new java.lang.Short((short) 87) },
173: { java.lang.ArithmeticException.class,
174: new java.lang.Short((short) 88) },
175: { java.lang.ArithmeticException[].class,
176: new java.lang.Short((short) 89) },
177: { java.lang.ArrayIndexOutOfBoundsException.class,
178: new java.lang.Short((short) 90) },
179: { java.lang.ArrayIndexOutOfBoundsException[].class,
180: new java.lang.Short((short) 91) },
181: { java.lang.ArrayStoreException.class,
182: new java.lang.Short((short) 92) },
183: { java.lang.ArrayStoreException[].class,
184: new java.lang.Short((short) 93) },
185: { java.lang.AssertionError.class,
186: new java.lang.Short((short) 94) },
187: { java.lang.AssertionError[].class,
188: new java.lang.Short((short) 95) },
189: { java.lang.Boolean.class, new java.lang.Short((short) 96) },
190: { java.lang.Boolean[].class,
191: new java.lang.Short((short) 97) },
192: { java.lang.Byte.class, new java.lang.Short((short) 98) },
193: { java.lang.Byte[].class, new java.lang.Short((short) 99) },
194: { java.lang.Character.class,
195: new java.lang.Short((short) 100) },
196: { java.lang.Character[].class,
197: new java.lang.Short((short) 101) },
198: { java.lang.Class.class, new java.lang.Short((short) 102) },
199: { java.lang.Class[].class, new java.lang.Short((short) 103) },
200: { java.lang.ClassCastException.class,
201: new java.lang.Short((short) 104) },
202: { java.lang.ClassCastException[].class,
203: new java.lang.Short((short) 105) },
204: { java.lang.ClassCircularityError.class,
205: new java.lang.Short((short) 106) },
206: { java.lang.ClassCircularityError[].class,
207: new java.lang.Short((short) 107) },
208: { java.lang.ClassFormatError.class,
209: new java.lang.Short((short) 108) },
210: { java.lang.ClassFormatError[].class,
211: new java.lang.Short((short) 109) },
212: { java.lang.ClassNotFoundException.class,
213: new java.lang.Short((short) 110) },
214: { java.lang.ClassNotFoundException[].class,
215: new java.lang.Short((short) 111) },
216: { java.lang.CloneNotSupportedException.class,
217: new java.lang.Short((short) 112) },
218: { java.lang.CloneNotSupportedException[].class,
219: new java.lang.Short((short) 113) },
220: { java.lang.Double.class, new java.lang.Short((short) 114) },
221: { java.lang.Double[].class,
222: new java.lang.Short((short) 115) },
223: { java.lang.Enum.class, new java.lang.Short((short) 116) },
224: { java.lang.Enum[].class, new java.lang.Short((short) 117) },
225: { java.lang.EnumConstantNotPresentException.class,
226: new java.lang.Short((short) 118) },
227: { java.lang.EnumConstantNotPresentException[].class,
228: new java.lang.Short((short) 119) },
229: { java.lang.Error.class, new java.lang.Short((short) 120) },
230: { java.lang.Error[].class, new java.lang.Short((short) 121) },
231: { java.lang.Exception.class,
232: new java.lang.Short((short) 122) },
233: { java.lang.Exception[].class,
234: new java.lang.Short((short) 123) },
235: { java.lang.ExceptionInInitializerError.class,
236: new java.lang.Short((short) 124) },
237: { java.lang.ExceptionInInitializerError[].class,
238: new java.lang.Short((short) 125) },
239: { java.lang.Float.class, new java.lang.Short((short) 126) },
240: { java.lang.Float[].class, new java.lang.Short((short) 127) },
241: { java.lang.IllegalAccessError.class,
242: new java.lang.Short((short) 128) },
243: { java.lang.IllegalAccessError[].class,
244: new java.lang.Short((short) 129) },
245: { java.lang.IllegalAccessException.class,
246: new java.lang.Short((short) 130) },
247: { java.lang.IllegalAccessException[].class,
248: new java.lang.Short((short) 131) },
249: { java.lang.IllegalArgumentException.class,
250: new java.lang.Short((short) 132) },
251: { java.lang.IllegalArgumentException[].class,
252: new java.lang.Short((short) 133) },
253: { java.lang.IllegalMonitorStateException.class,
254: new java.lang.Short((short) 134) },
255: { java.lang.IllegalMonitorStateException[].class,
256: new java.lang.Short((short) 135) },
257: { java.lang.IllegalStateException.class,
258: new java.lang.Short((short) 136) },
259: { java.lang.IllegalStateException[].class,
260: new java.lang.Short((short) 137) },
261: { java.lang.IllegalThreadStateException.class,
262: new java.lang.Short((short) 138) },
263: { java.lang.IllegalThreadStateException[].class,
264: new java.lang.Short((short) 139) },
265: { java.lang.IncompatibleClassChangeError.class,
266: new java.lang.Short((short) 140) },
267: { java.lang.IncompatibleClassChangeError[].class,
268: new java.lang.Short((short) 141) },
269: { java.lang.IndexOutOfBoundsException.class,
270: new java.lang.Short((short) 142) },
271: { java.lang.IndexOutOfBoundsException[].class,
272: new java.lang.Short((short) 143) },
273: { java.lang.InstantiationError.class,
274: new java.lang.Short((short) 144) },
275: { java.lang.InstantiationError[].class,
276: new java.lang.Short((short) 145) },
277: { java.lang.InstantiationException.class,
278: new java.lang.Short((short) 146) },
279: { java.lang.InstantiationException[].class,
280: new java.lang.Short((short) 147) },
281: { java.lang.Integer.class, new java.lang.Short((short) 148) },
282: { java.lang.Integer[].class,
283: new java.lang.Short((short) 149) },
284: { java.lang.InternalError.class,
285: new java.lang.Short((short) 150) },
286: { java.lang.InternalError[].class,
287: new java.lang.Short((short) 151) },
288: { java.lang.InterruptedException.class,
289: new java.lang.Short((short) 152) },
290: { java.lang.InterruptedException[].class,
291: new java.lang.Short((short) 153) },
292: { java.lang.LinkageError.class,
293: new java.lang.Short((short) 154) },
294: { java.lang.LinkageError[].class,
295: new java.lang.Short((short) 155) },
296: { java.lang.Long.class, new java.lang.Short((short) 156) },
297: { java.lang.Long[].class, new java.lang.Short((short) 157) },
298: { java.lang.NegativeArraySizeException.class,
299: new java.lang.Short((short) 158) },
300: { java.lang.NegativeArraySizeException[].class,
301: new java.lang.Short((short) 159) },
302: { java.lang.NoClassDefFoundError.class,
303: new java.lang.Short((short) 160) },
304: { java.lang.NoClassDefFoundError[].class,
305: new java.lang.Short((short) 161) },
306: { java.lang.NoSuchFieldError.class,
307: new java.lang.Short((short) 162) },
308: { java.lang.NoSuchFieldError[].class,
309: new java.lang.Short((short) 163) },
310: { java.lang.NoSuchFieldException.class,
311: new java.lang.Short((short) 164) },
312: { java.lang.NoSuchFieldException[].class,
313: new java.lang.Short((short) 165) },
314: { java.lang.NoSuchMethodError.class,
315: new java.lang.Short((short) 166) },
316: { java.lang.NoSuchMethodError[].class,
317: new java.lang.Short((short) 167) },
318: { java.lang.NoSuchMethodException.class,
319: new java.lang.Short((short) 168) },
320: { java.lang.NoSuchMethodException[].class,
321: new java.lang.Short((short) 169) },
322: { java.lang.NullPointerException.class,
323: new java.lang.Short((short) 170) },
324: { java.lang.NullPointerException[].class,
325: new java.lang.Short((short) 171) },
326: { java.lang.Number.class, new java.lang.Short((short) 172) },
327: { java.lang.Number[].class,
328: new java.lang.Short((short) 173) },
329: { java.lang.NumberFormatException.class,
330: new java.lang.Short((short) 174) },
331: { java.lang.NumberFormatException[].class,
332: new java.lang.Short((short) 175) },
333: { java.lang.OutOfMemoryError.class,
334: new java.lang.Short((short) 176) },
335: { java.lang.OutOfMemoryError[].class,
336: new java.lang.Short((short) 177) },
337: { java.lang.RuntimeException.class,
338: new java.lang.Short((short) 178) },
339: { java.lang.RuntimeException[].class,
340: new java.lang.Short((short) 179) },
341: { java.lang.RuntimePermission.class,
342: new java.lang.Short((short) 180) },
343: { java.lang.RuntimePermission[].class,
344: new java.lang.Short((short) 181) },
345: { java.lang.SecurityException.class,
346: new java.lang.Short((short) 182) },
347: { java.lang.SecurityException[].class,
348: new java.lang.Short((short) 183) },
349: { java.lang.Short.class, new java.lang.Short((short) 184) },
350: { java.lang.Short[].class, new java.lang.Short((short) 185) },
351: { java.lang.StackOverflowError.class,
352: new java.lang.Short((short) 186) },
353: { java.lang.StackOverflowError[].class,
354: new java.lang.Short((short) 187) },
355: { java.lang.StackTraceElement.class,
356: new java.lang.Short((short) 188) },
357: { java.lang.StackTraceElement[].class,
358: new java.lang.Short((short) 189) },
359: { java.lang.String.class, new java.lang.Short((short) 190) },
360: { java.lang.String[].class,
361: new java.lang.Short((short) 191) },
362: { java.lang.StringBuffer.class,
363: new java.lang.Short((short) 192) },
364: { java.lang.StringBuffer[].class,
365: new java.lang.Short((short) 193) },
366: { java.lang.StringBuilder.class,
367: new java.lang.Short((short) 194) },
368: { java.lang.StringBuilder[].class,
369: new java.lang.Short((short) 195) },
370: { java.lang.StringIndexOutOfBoundsException.class,
371: new java.lang.Short((short) 196) },
372: { java.lang.StringIndexOutOfBoundsException[].class,
373: new java.lang.Short((short) 197) },
374: { java.lang.ThreadDeath.class,
375: new java.lang.Short((short) 198) },
376: { java.lang.ThreadDeath[].class,
377: new java.lang.Short((short) 199) },
378: { java.lang.Throwable.class,
379: new java.lang.Short((short) 200) },
380: { java.lang.Throwable[].class,
381: new java.lang.Short((short) 201) },
382: { java.lang.TypeNotPresentException.class,
383: new java.lang.Short((short) 202) },
384: { java.lang.TypeNotPresentException[].class,
385: new java.lang.Short((short) 203) },
386: { java.lang.UnknownError.class,
387: new java.lang.Short((short) 204) },
388: { java.lang.UnknownError[].class,
389: new java.lang.Short((short) 205) },
390: { java.lang.UnsatisfiedLinkError.class,
391: new java.lang.Short((short) 206) },
392: { java.lang.UnsatisfiedLinkError[].class,
393: new java.lang.Short((short) 207) },
394: { java.lang.UnsupportedClassVersionError.class,
395: new java.lang.Short((short) 208) },
396: { java.lang.UnsupportedClassVersionError[].class,
397: new java.lang.Short((short) 209) },
398: { java.lang.UnsupportedOperationException.class,
399: new java.lang.Short((short) 210) },
400: { java.lang.UnsupportedOperationException[].class,
401: new java.lang.Short((short) 211) },
402: { java.lang.VerifyError.class,
403: new java.lang.Short((short) 212) },
404: { java.lang.VerifyError[].class,
405: new java.lang.Short((short) 213) },
406: { java.lang.VirtualMachineError.class,
407: new java.lang.Short((short) 214) },
408: { java.lang.VirtualMachineError[].class,
409: new java.lang.Short((short) 215) },
410: { java.lang.Object.class, new java.lang.Short((short) 216) },
411: { java.lang.Object[].class,
412: new java.lang.Short((short) 217) },
413: { java.math.BigDecimal.class,
414: new java.lang.Short((short) 218) },
415: { java.math.BigDecimal[].class,
416: new java.lang.Short((short) 219) },
417: { java.math.BigInteger.class,
418: new java.lang.Short((short) 220) },
419: { java.math.BigInteger[].class,
420: new java.lang.Short((short) 221) },
421: { java.math.MathContext.class,
422: new java.lang.Short((short) 222) },
423: { java.math.MathContext[].class,
424: new java.lang.Short((short) 223) },
425: { java.math.RoundingMode.class,
426: new java.lang.Short((short) 224) },
427: { java.math.RoundingMode[].class,
428: new java.lang.Short((short) 225) },
429:
430: // myoodb
431: { org.myoodb.MyOodbAbstract.class,
432: new java.lang.Short((short) 300) },
433: { org.myoodb.MyOodbAbstract[].class,
434: new java.lang.Short((short) 301) },
435: { org.myoodb.MyOodbBase.class,
436: new java.lang.Short((short) 302) },
437: { org.myoodb.MyOodbBase[].class,
438: new java.lang.Short((short) 303) },
439: { org.myoodb.MyOodbBean.class,
440: new java.lang.Short((short) 304) },
441: { org.myoodb.MyOodbBean[].class,
442: new java.lang.Short((short) 305) },
443: { org.myoodb.MyOodbLocal.class,
444: new java.lang.Short((short) 306) },
445: { org.myoodb.MyOodbLocal[].class,
446: new java.lang.Short((short) 307) },
447: { org.myoodb.MyOodbObject.class,
448: new java.lang.Short((short) 308) },
449: { org.myoodb.MyOodbObject[].class,
450: new java.lang.Short((short) 309) },
451: { org.myoodb.MyOodbProxy.class,
452: new java.lang.Short((short) 310) },
453: { org.myoodb.MyOodbProxy[].class,
454: new java.lang.Short((short) 311) },
455: { org.myoodb.MyOodbRemote.class,
456: new java.lang.Short((short) 312) },
457: { org.myoodb.MyOodbRemote[].class,
458: new java.lang.Short((short) 313) },
459:
460: { org.myoodb.exception.BackupException.class,
461: new java.lang.Short((short) 400) },
462: { org.myoodb.exception.DefragException.class,
463: new java.lang.Short((short) 401) },
464: { org.myoodb.exception.InternalException.class,
465: new java.lang.Short((short) 402) },
466: { org.myoodb.exception.MaintenanceException.class,
467: new java.lang.Short((short) 403) },
468: { org.myoodb.exception.MyOodbException.class,
469: new java.lang.Short((short) 404) },
470: { org.myoodb.exception.NestedTransactionException.class,
471: new java.lang.Short((short) 405) },
472: { org.myoodb.exception.ObjectException.class,
473: new java.lang.Short((short) 406) },
474: { org.myoodb.exception.ObjectNotFoundException.class,
475: new java.lang.Short((short) 407) },
476: { org.myoodb.exception.PermissionException.class,
477: new java.lang.Short((short) 408) },
478: { org.myoodb.exception.RemoteException.class,
479: new java.lang.Short((short) 409) },
480: { org.myoodb.exception.RestoreException.class,
481: new java.lang.Short((short) 410) },
482: { org.myoodb.exception.TimeoutException.class,
483: new java.lang.Short((short) 411) },
484: { org.myoodb.exception.TransactionException.class,
485: new java.lang.Short((short) 412) },
486: { org.myoodb.exception.VerifyException.class,
487: new java.lang.Short((short) 413) },
488:
489: { org.myoodb.core.command.AbstractCommand.class,
490: new java.lang.Short((short) 500) },
491: { org.myoodb.core.command.CreateCommand.class,
492: new java.lang.Short((short) 501) },
493: { org.myoodb.core.command.DeleteCommand.class,
494: new java.lang.Short((short) 502) },
495: { org.myoodb.core.command.GetBeanCommand.class,
496: new java.lang.Short((short) 503) },
497: { org.myoodb.core.command.GetObjectCommand.class,
498: new java.lang.Short((short) 504) },
499: { org.myoodb.core.command.GetRootCommand.class,
500: new java.lang.Short((short) 505) },
501: { org.myoodb.core.command.GetXMLCommand.class,
502: new java.lang.Short((short) 506) },
503: { org.myoodb.core.command.InvokeMethodCommand.class,
504: new java.lang.Short((short) 507) },
505: { org.myoodb.core.command.LoginCommand.class,
506: new java.lang.Short((short) 508) },
507: { org.myoodb.core.command.LogoutCommand.class,
508: new java.lang.Short((short) 509) },
509: { org.myoodb.core.command.SetBeanCommand.class,
510: new java.lang.Short((short) 510) },
511: { org.myoodb.core.command.SetXMLCommand.class,
512: new java.lang.Short((short) 511) },
513: { org.myoodb.core.command.TransactionCommand.class,
514: new java.lang.Short((short) 512) },
515:
516: { org.myoodb.core.AbstractLock.class,
517: new java.lang.Short((short) 600) },
518: { org.myoodb.core.AbstractObjectContainer.class,
519: new java.lang.Short((short) 601) },
520: { org.myoodb.core.AbstractRootContainer.class,
521: new java.lang.Short((short) 602) },
522: { org.myoodb.core.AbstractServer.class,
523: new java.lang.Short((short) 603) },
524: { org.myoodb.core.DeclaredMethodDelegation.class,
525: new java.lang.Short((short) 604) },
526: { org.myoodb.core.Identifier.class,
527: new java.lang.Short((short) 605) },
528: { org.myoodb.core.Lock.class,
529: new java.lang.Short((short) 606) },
530: { org.myoodb.core.Properties.class,
531: new java.lang.Short((short) 607) },
532: { org.myoodb.core.User.class,
533: new java.lang.Short((short) 608) },
534: { org.myoodb.core.WorkManager.class,
535: new java.lang.Short((short) 609) },
536: { org.myoodb.core.storage.Cluster.class,
537: new java.lang.Short((short) 610) },
538: { org.myoodb.core.storage.ObjectContainer.class,
539: new java.lang.Short((short) 611) },
540: { org.myoodb.core.storage.RootContainer.class,
541: new java.lang.Short((short) 612) },
542:
543: { org.myoodb.event.Event.class,
544: new java.lang.Short((short) 700) },
545: { org.myoodb.event.EventDbImpl.class,
546: new java.lang.Short((short) 701) },
547: { org.myoodb.event.EventDbProxy.class,
548: new java.lang.Short((short) 702) },
549: { org.myoodb.event.EventLog.class,
550: new java.lang.Short((short) 703) },
551: { org.myoodb.event.EventLogDbImpl.class,
552: new java.lang.Short((short) 704) },
553: { org.myoodb.event.EventLogDbProxy.class,
554: new java.lang.Short((short) 705) },
555:
556: { org.myoodb.collectable.AbcObject.class,
557: new java.lang.Short((short) 800) },
558: { org.myoodb.collectable.AbcObjectDbImpl.class,
559: new java.lang.Short((short) 801) },
560: { org.myoodb.collectable.AbcObjectDbProxy.class,
561: new java.lang.Short((short) 802) },
562: { org.myoodb.collectable.AbcStore.class,
563: new java.lang.Short((short) 803) },
564: { org.myoodb.collectable.AbcStoreDbImpl.class,
565: new java.lang.Short((short) 804) },
566: { org.myoodb.collectable.AbcStoreDbProxy.class,
567: new java.lang.Short((short) 805) },
568: { org.myoodb.collectable.AbstractCollection.class,
569: new java.lang.Short((short) 806) },
570: { org.myoodb.collectable.Collectable.class,
571: new java.lang.Short((short) 807) },
572: { org.myoodb.collectable.CollectableDbImpl.class,
573: new java.lang.Short((short) 808) },
574: { org.myoodb.collectable.CollectableDbProxy.class,
575: new java.lang.Short((short) 809) },
576: { org.myoodb.collectable.DigitObject.class,
577: new java.lang.Short((short) 810) },
578: { org.myoodb.collectable.DigitObjectDbImpl.class,
579: new java.lang.Short((short) 811) },
580: { org.myoodb.collectable.DigitObjectDbProxy.class,
581: new java.lang.Short((short) 812) },
582: { org.myoodb.collectable.DigitStore.class,
583: new java.lang.Short((short) 813) },
584: { org.myoodb.collectable.DigitStoreDbImpl.class,
585: new java.lang.Short((short) 814) },
586: { org.myoodb.collectable.DigitStoreDbProxy.class,
587: new java.lang.Short((short) 815) },
588: { org.myoodb.collectable.HashMap.class,
589: new java.lang.Short((short) 816) },
590: { org.myoodb.collectable.HashMapDbImpl.class,
591: new java.lang.Short((short) 817) },
592: { org.myoodb.collectable.HashMapDbProxy.class,
593: new java.lang.Short((short) 818) },
594: { org.myoodb.collectable.HashSet.class,
595: new java.lang.Short((short) 819) },
596: { org.myoodb.collectable.HashSetDbImpl.class,
597: new java.lang.Short((short) 820) },
598: { org.myoodb.collectable.HashSetDbProxy.class,
599: new java.lang.Short((short) 821) },
600: { org.myoodb.collectable.Iterator.class,
601: new java.lang.Short((short) 822) },
602: { org.myoodb.collectable.IteratorDbImpl.class,
603: new java.lang.Short((short) 823) },
604: { org.myoodb.collectable.IteratorDbProxy.class,
605: new java.lang.Short((short) 824) },
606: { org.myoodb.collectable.LinkedList.class,
607: new java.lang.Short((short) 825) },
608: { org.myoodb.collectable.LinkedListDbImpl.class,
609: new java.lang.Short((short) 826) },
610: { org.myoodb.collectable.LinkedListDbProxy.class,
611: new java.lang.Short((short) 827) },
612: { org.myoodb.collectable.LogObject.class,
613: new java.lang.Short((short) 828) },
614: { org.myoodb.collectable.LogObjectDbImpl.class,
615: new java.lang.Short((short) 829) },
616: { org.myoodb.collectable.LogObjectDbProxy.class,
617: new java.lang.Short((short) 830) },
618: { org.myoodb.collectable.LogStore.class,
619: new java.lang.Short((short) 831) },
620: { org.myoodb.collectable.LogStoreDbImpl.class,
621: new java.lang.Short((short) 832) },
622: { org.myoodb.collectable.LogStoreDbProxy.class,
623: new java.lang.Short((short) 833) },
624: { org.myoodb.collectable.StoreCollection.class,
625: new java.lang.Short((short) 834) },
626: { org.myoodb.collectable.StoreObject.class,
627: new java.lang.Short((short) 835) },
628: { org.myoodb.collectable.TreeMap.class,
629: new java.lang.Short((short) 836) },
630: { org.myoodb.collectable.TreeMapDbImpl.class,
631: new java.lang.Short((short) 837) },
632: { org.myoodb.collectable.TreeMapDbProxy.class,
633: new java.lang.Short((short) 838) },
634: { org.myoodb.collectable.TreeSet.class,
635: new java.lang.Short((short) 839) },
636: { org.myoodb.collectable.TreeSetDbImpl.class,
637: new java.lang.Short((short) 840) },
638: { org.myoodb.collectable.TreeSetDbProxy.class,
639: new java.lang.Short((short) 841) },
640:
641: { "org.rdesktop.objects.StreamExchange",
642: new java.lang.Short((short) 1000) },
643: { "org.rdesktop.objects.StreamExchangeDbImpl",
644: new java.lang.Short((short) 1001) },
645: { "org.rdesktop.objects.StreamExchangeDbProxy",
646: new java.lang.Short((short) 1002) },
647:
648: { "org.rdesktop.objects.RdpDesktopExchange",
649: new java.lang.Short((short) 1003) },
650: { "org.rdesktop.objects.RdpDesktopExchangeDbImpl",
651: new java.lang.Short((short) 1004) },
652: { "org.rdesktop.objects.RdpDesktopExchangeDbProxy",
653: new java.lang.Short((short) 1005) }, };
654:
655: public synchronized static void register()
656: throws ClassNotFoundException {
657: if (org.myoodb.util.FastObjectInputStream.CLASS_TABLE != null) {
658: return;
659: }
660:
661: org.myoodb.util.FastObjectInputStream.CLASS_TABLE = new java.util.HashMap(
662: 100);
663: org.myoodb.util.FastObjectOutputStream.ID_TABLE = new java.util.HashMap(
664: 100);
665:
666: for (int i = 0; i != Map.length; i++) {
667: Class classType = null;
668:
669: if (Map[i][0] instanceof java.lang.Class) {
670: classType = (java.lang.Class) Map[i][0];
671: } else {
672: classType = java.lang.Class.forName((String) Map[i][0]);
673: }
674:
675: org.myoodb.util.FastObjectInputStream.CLASS_TABLE.put(
676: Map[i][1], classType);
677: org.myoodb.util.FastObjectOutputStream.ID_TABLE.put(
678: classType, Map[i][1]);
679: }
680: }
681: }
|