Exemplo n.º 1
0
 public GOProxy findOrCreateGo(long oid, Class<?> cls) {
   if (!GOProxy.class.isAssignableFrom(cls)) {
     throw new IllegalStateException("" + cls.getName());
   }
   ZooClassDef def = sMapC.get(cls);
   return findOrCreateGo(oid, def.getVersionProxy());
 }
Exemplo n.º 2
0
 public void addSchema(long sOid, ZooClassDef schemaDef) {
   sMapI.put(sOid, schemaDef);
   //		if (schemaDef.getJavaClass() == null) {
   //			throw new IllegalStateException();
   //		}
   sMapC.put(schemaDef.getJavaClass(), schemaDef);
   addGoClass(schemaDef.getVersionProxy());
 }