1 21 package com.db4o.cs.messages; 22 23 import com.db4o.*; 24 import com.db4o.cs.*; 25 26 27 30 final class MClassNameForID extends MsgD{ 31 public final boolean processAtServer(YapServerThread serverThread) { 32 int id = _payLoad.readInt(); 33 String name = ""; 34 synchronized (streamLock()) { 36 try { 37 YapClass yapClass = stream().getYapClass(id); 38 if(yapClass != null){ 39 name = yapClass.getName(); 40 } 41 42 } catch (Throwable t) { 43 if (Deploy.debug) { 44 System.out.println("MClassNameForID failed"); 45 } 46 } 47 } 48 serverThread.write(Msg.CLASS_NAME_FOR_ID.getWriterForString(transaction(), name)); 49 return true; 50 } 51 } 52 | Popular Tags |