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()); }
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()); }