Examples of ext()


Examples of com.db4o.ObjectContainer.ext()

        if (isCanceled(monitor, sourceDb, destinationDb))
          return;

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

Examples of com.db4o.ObjectContainer.ext()

        if (isCanceled(monitor, sourceDb, destinationDb))
          return;

        sourceDb.activate(type, Integer.MAX_VALUE);
        if (type.getParent() == null)
          destinationDb.ext().store(type, Integer.MAX_VALUE);

        monitor.worked(chunk);
      }
      allFolders = null;
    } else
View Full Code Here

Examples of com.db4o.ObjectContainer.ext()

            staleNewsRefs.add(newsRef);
            continue;
          }
          Object news = newsIt.next();
          sourceDb.activate(news, Integer.MAX_VALUE);
          destinationDb.ext().store(news, Integer.MAX_VALUE);
        }

        if (!staleNewsRefs.isEmpty()) {
          if (isCanceled(monitor, sourceDb, destinationDb))
            return;
View Full Code Here

Examples of com.db4o.ObjectContainer.ext()

        if (!staleNewsRefs.isEmpty()) {
          if (isCanceled(monitor, sourceDb, destinationDb))
            return;

          newsBin.removeNewsRefs(staleNewsRefs);
          destinationDb.ext().store(newsBin, Integer.MAX_VALUE);
        }

        monitor.worked(chunk);
      }
      allBins = null;
View Full Code Here

Examples of com.db4o.ObjectContainer.ext()

        monitor.subTask(NLS.bind(Messages.DBManager_OPTIMIZING_NEWSFEEDS, i, allFeedsSize));
        i++;

        sourceDb.activate(feed, Integer.MAX_VALUE);
        addNewsCounterItem(newsCounter, feed);
        destinationDb.ext().store(feed, Integer.MAX_VALUE);

        ++feedCounter;
        if (feedCounter % 40 == 0) {
          destinationDb.commit();
          System.gc();
View Full Code Here

Examples of com.db4o.ObjectContainer.ext()

    /* User might have cancelled the operation */
    if (isCanceled(monitor, sourceDb, destinationDb))
      return;

    destinationDb.ext().store(newsCounter, Integer.MAX_VALUE);

    /* User might have cancelled the operation */
    if (isCanceled(monitor, sourceDb, destinationDb))
      return;

View Full Code Here

Examples of com.db4o.ObjectContainer.ext()

      for (Description description : allDescriptions) {
        if (isCanceled(monitor, sourceDb, destinationDb))
          return;

        sourceDb.activate(description, Integer.MAX_VALUE);
        destinationDb.ext().store(description, Integer.MAX_VALUE);

        ++descriptionCounter;
        if (descriptionCounter % 600 == 0) {
          destinationDb.commit();
          System.gc();
View Full Code Here

Examples of com.db4o.ObjectContainer.ext()

      for (Preference pref : allPreferences) {
        if (isCanceled(monitor, sourceDb, destinationDb))
          return;

        sourceDb.activate(pref, Integer.MAX_VALUE);
        destinationDb.ext().store(pref, Integer.MAX_VALUE);

        monitor.worked(chunk);
      }

      allPreferences = null;
View Full Code Here

Examples of com.db4o.ObjectContainer.ext()

      for (ISearchFilter filter : allFilters) {
        if (isCanceled(monitor, sourceDb, destinationDb))
          return;

        sourceDb.activate(filter, Integer.MAX_VALUE);
        destinationDb.ext().store(filter, Integer.MAX_VALUE);
        monitor.worked(chunk);
      }

      allFilters = null;
    } else
View Full Code Here

Examples of com.db4o.ObjectContainer.ext()

    /* Counter */
    List<Counter> counterSet = sourceDb.query(Counter.class);
    Counter counter = counterSet.iterator().next();
    sourceDb.activate(counter, Integer.MAX_VALUE);
    destinationDb.ext().store(counter, Integer.MAX_VALUE);

    monitor.worked(DEFRAG_SUB_WORK_COUNTERS);

    /* User might have cancelled the operation */
    if (isCanceled(monitor, sourceDb, destinationDb))
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.