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()); }
public ObjectWriterSV( StorageChannel file, PagedOidIndex oidIndex, ZooClassDef def, SchemaIndex schemaIndex) { this.out = file.getWriter(true); this.oidIndex = oidIndex; out.setOverflowCallbackWrite(this); this.def = def; this.headerForWrite = def.getOid(); this.schemaIndex = schemaIndex; }