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());
 }
Exemplo n.º 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;
 }