示例#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());
 }
示例#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());
 }
示例#3
0
 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;
 }