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 StreamProtocolClient {
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, new java.lang.Short((short) 600)},
517: //{org.myoodb.core.AbstractObjectContainer.class, new java.lang.Short((short) 601)},
518: //{org.myoodb.core.AbstractRootContainer.class, new java.lang.Short((short) 602)},
519: //{org.myoodb.core.AbstractServer.class, new java.lang.Short((short) 603)},
520: //{org.myoodb.core.DeclaredMethodDelegation.class, new java.lang.Short((short) 604)},
521: { org.myoodb.core.Identifier.class,
522: new java.lang.Short((short) 605) },
523: //{org.myoodb.core.Lock.class, new java.lang.Short((short) 606)},
524: //{org.myoodb.core.Properties.class, new java.lang.Short((short) 607)},
525: //{org.myoodb.core.User.class, new java.lang.Short((short) 608)},
526: //{org.myoodb.core.WorkManager.class, new java.lang.Short((short) 609)},
527: //{org.myoodb.core.storage.Cluster.class, new java.lang.Short((short) 610)},
528: //{org.myoodb.core.storage.ObjectContainer.class, new java.lang.Short((short) 611)},
529: //{org.myoodb.core.storage.RootContainer.class, new java.lang.Short((short) 612)},
530:
531: { org.myoodb.event.Event.class,
532: new java.lang.Short((short) 700) },
533: //{org.myoodb.event.EventDbImpl.class, new java.lang.Short((short) 701)},
534: { org.myoodb.event.EventDbProxy.class,
535: new java.lang.Short((short) 702) },
536: { org.myoodb.event.EventLog.class,
537: new java.lang.Short((short) 703) },
538: //{org.myoodb.event.EventLogDbImpl.class, new java.lang.Short((short) 704)},
539: { org.myoodb.event.EventLogDbProxy.class,
540: new java.lang.Short((short) 705) },
541:
542: { org.myoodb.collectable.AbcObject.class,
543: new java.lang.Short((short) 800) },
544: //{org.myoodb.collectable.AbcObjectDbImpl.class, new java.lang.Short((short) 801)},
545: { org.myoodb.collectable.AbcObjectDbProxy.class,
546: new java.lang.Short((short) 802) },
547: { org.myoodb.collectable.AbcStore.class,
548: new java.lang.Short((short) 803) },
549: //{org.myoodb.collectable.AbcStoreDbImpl.class, new java.lang.Short((short) 804)},
550: { org.myoodb.collectable.AbcStoreDbProxy.class,
551: new java.lang.Short((short) 805) },
552: { org.myoodb.collectable.AbstractCollection.class,
553: new java.lang.Short((short) 806) },
554: { org.myoodb.collectable.Collectable.class,
555: new java.lang.Short((short) 807) },
556: //{org.myoodb.collectable.CollectableDbImpl.class, new java.lang.Short((short) 808)},
557: { org.myoodb.collectable.CollectableDbProxy.class,
558: new java.lang.Short((short) 809) },
559: { org.myoodb.collectable.DigitObject.class,
560: new java.lang.Short((short) 810) },
561: //{org.myoodb.collectable.DigitObjectDbImpl.class, new java.lang.Short((short) 811)},
562: { org.myoodb.collectable.DigitObjectDbProxy.class,
563: new java.lang.Short((short) 812) },
564: { org.myoodb.collectable.DigitStore.class,
565: new java.lang.Short((short) 813) },
566: //{org.myoodb.collectable.DigitStoreDbImpl.class, new java.lang.Short((short) 814)},
567: { org.myoodb.collectable.DigitStoreDbProxy.class,
568: new java.lang.Short((short) 815) },
569: { org.myoodb.collectable.HashMap.class,
570: new java.lang.Short((short) 816) },
571: //{org.myoodb.collectable.HashMapDbImpl.class, new java.lang.Short((short) 817)},
572: { org.myoodb.collectable.HashMapDbProxy.class,
573: new java.lang.Short((short) 818) },
574: { org.myoodb.collectable.HashSet.class,
575: new java.lang.Short((short) 819) },
576: //{org.myoodb.collectable.HashSetDbImpl.class, new java.lang.Short((short) 820)},
577: { org.myoodb.collectable.HashSetDbProxy.class,
578: new java.lang.Short((short) 821) },
579: { org.myoodb.collectable.Iterator.class,
580: new java.lang.Short((short) 822) },
581: //{org.myoodb.collectable.IteratorDbImpl.class, new java.lang.Short((short) 823)},
582: { org.myoodb.collectable.IteratorDbProxy.class,
583: new java.lang.Short((short) 824) },
584: { org.myoodb.collectable.LinkedList.class,
585: new java.lang.Short((short) 825) },
586: //{org.myoodb.collectable.LinkedListDbImpl.class, new java.lang.Short((short) 826)},
587: { org.myoodb.collectable.LinkedListDbProxy.class,
588: new java.lang.Short((short) 827) },
589: { org.myoodb.collectable.LogObject.class,
590: new java.lang.Short((short) 828) },
591: //{org.myoodb.collectable.LogObjectDbImpl.class, new java.lang.Short((short) 829)},
592: { org.myoodb.collectable.LogObjectDbProxy.class,
593: new java.lang.Short((short) 830) },
594: { org.myoodb.collectable.LogStore.class,
595: new java.lang.Short((short) 831) },
596: //{org.myoodb.collectable.LogStoreDbImpl.class, new java.lang.Short((short) 832)},
597: { org.myoodb.collectable.LogStoreDbProxy.class,
598: new java.lang.Short((short) 833) },
599: { org.myoodb.collectable.StoreCollection.class,
600: new java.lang.Short((short) 834) },
601: { org.myoodb.collectable.StoreObject.class,
602: new java.lang.Short((short) 835) },
603: { org.myoodb.collectable.TreeMap.class,
604: new java.lang.Short((short) 836) },
605: //{org.myoodb.collectable.TreeMapDbImpl.class, new java.lang.Short((short) 837)},
606: { org.myoodb.collectable.TreeMapDbProxy.class,
607: new java.lang.Short((short) 838) },
608: { org.myoodb.collectable.TreeSet.class,
609: new java.lang.Short((short) 839) },
610: //{org.myoodb.collectable.TreeSetDbImpl.class, new java.lang.Short((short) 840)},
611: { org.myoodb.collectable.TreeSetDbProxy.class,
612: new java.lang.Short((short) 841) },
613:
614: { "org.rdesktop.objects.StreamExchange",
615: new java.lang.Short((short) 1000) },
616: //{"org.rdesktop.objects.StreamExchangeDbImpl", new java.lang.Short((short) 1001)},
617: { "org.rdesktop.objects.StreamExchangeDbProxy",
618: new java.lang.Short((short) 1002) },
619:
620: { "org.rdesktop.objects.RdpDesktopExchange",
621: new java.lang.Short((short) 1003) },
622: //{"org.rdesktop.objects.RdpDesktopExchangeDbImpl", new java.lang.Short((short) 1004)},
623: { "org.rdesktop.objects.RdpDesktopExchangeDbProxy",
624: new java.lang.Short((short) 1005) }, };
625:
626: public synchronized static void register()
627: throws ClassNotFoundException {
628: if (org.myoodb.util.FastObjectInputStream.CLASS_TABLE != null) {
629: return;
630: }
631:
632: org.myoodb.util.FastObjectInputStream.CLASS_TABLE = new java.util.HashMap(
633: 100);
634: org.myoodb.util.FastObjectOutputStream.ID_TABLE = new java.util.HashMap(
635: 100);
636:
637: for (int i = 0; i != Map.length; i++) {
638: Class classType = null;
639:
640: if (Map[i][0] instanceof java.lang.Class) {
641: classType = (java.lang.Class) Map[i][0];
642: } else {
643: classType = java.lang.Class.forName((String) Map[i][0]);
644: }
645:
646: org.myoodb.util.FastObjectInputStream.CLASS_TABLE.put(
647: Map[i][1], classType);
648: org.myoodb.util.FastObjectOutputStream.ID_TABLE.put(
649: classType, Map[i][1]);
650: }
651: }
652: }
|