Examples of ext()


Examples of com.db4o.ObjectContainer.ext()

      return;

    /* Entity Id By Event Type */
    EntityIdsByEventType entityIdsByEventType = sourceDb.query(EntityIdsByEventType.class).iterator().next();
    sourceDb.activate(entityIdsByEventType, Integer.MAX_VALUE);
    destinationDb.ext().store(entityIdsByEventType, Integer.MAX_VALUE);

    monitor.worked(DEFRAG_SUB_WORK_EVENTS);

    /* User might have cancelled the operation */
    if (isCanceled(monitor, sourceDb, destinationDb))
View Full Code Here

Examples of com.db4o.ObjectContainer.ext()

      for (ConditionalGet conditionalGet : allConditionalGets) {
        if (isCanceled(monitor, sourceDb, destinationDb))
          return;

        sourceDb.activate(conditionalGet, Integer.MAX_VALUE);
        destinationDb.ext().store(conditionalGet, Integer.MAX_VALUE);
        monitor.worked(chunk);
      }
      allConditionalGets = null;
    } else
      monitor.worked(available);
View Full Code Here

Examples of com.db4o.ObjectContainer.ext()

        query.descend("fId").constrain(newsRef.getId()); //$NON-NLS-1$
        News news = (News) query.execute().iterator().next();
        oc.activate(news, Integer.MAX_VALUE);
        String parentIdFieldName = "fParentId"; //$NON-NLS-1$
        MigrationHelper.setField(news, parentIdFieldName, newsBin.getId().longValue());
        oc.ext().store(news, Integer.MAX_VALUE);
      }
    }
    oc.commit();
    oc.close();
View Full Code Here

Examples of com.db4o.ObjectContainer.ext()

      } else {
        map.put(name, 1);
      }
      // Activated to depth 1
      try {
        Logger.minor(this, "DATABASE: "+o.getClass()+":"+o+":"+database.ext().getID(o));
      } catch (Throwable t) {
        Logger.minor(this, "CAUGHT "+t+" FOR CLASS "+o.getClass());
      }
      database.deactivate(o, 1);
    }
View Full Code Here

Examples of com.db4o.ObjectContainer.ext()

        ObjectSet set = container.get(new Object());

        for (Object object : set) {
            container.delete(object);
        }
        container.ext().purge();
        container.close();
    }

    ObjectContainer getContainer() {
        return this.controller.releaseContainer();
View Full Code Here

Examples of com.db4o.ObjectContainer.ext()

    {
      final ObjectContainer database = Db4o.openFile(getNewDatabaseConfiguration(), databaseFile.getAbsolutePath());
     
      // Db4o will throw during defragmentation if new fields were added to classes and we didn't initialize their values on existing
      // objects before defragmenting. So we just don't defragment if the database format version has changed.
      final boolean canDefragment = Configuration.peekDatabaseFormatVersion(this, database.ext()) == Freetalk.DATABASE_FORMAT_VERSION;

      while(!database.close());
     
      if(!canDefragment) {
        Logger.normal(this, "Not defragmenting, database format version changed!");
View Full Code Here

Examples of com.db4o.ObjectContainer.ext()

        query.descend("fId").constrain(newsRef.getId()); //$NON-NLS-1$
        News news = (News) query.execute().iterator().next();
        oc.activate(news, Integer.MAX_VALUE);
        String parentIdFieldName = "fParentId"; //$NON-NLS-1$
        MigrationHelper.setField(news, parentIdFieldName, newsBin.getId().longValue());
        oc.ext().set(news, Integer.MAX_VALUE);
      }
    }

    oc.commit();
    oc.close();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.