Package com.db4o.config

Examples of com.db4o.config.Configuration.objectClass()


    config.activationDepth(2);
    config.flushFileBuffers(false);
    config.callConstructors(true);
    config.exceptionsOnNotStorable(true);
    configureAbstractEntity(config);
    config.objectClass(BookMark.class).objectField("fFeedLink").indexed(true); //$NON-NLS-1$
    config.objectClass(ConditionalGet.class).objectField("fLink").indexed(true); //$NON-NLS-1$
    configureFeed(config);
    configureNews(config);
    configureSearchMark(config);
    configureFolder(config);
View Full Code Here


    config.flushFileBuffers(false);
    config.callConstructors(true);
    config.exceptionsOnNotStorable(true);
    configureAbstractEntity(config);
    config.objectClass(BookMark.class).objectField("fFeedLink").indexed(true); //$NON-NLS-1$
    config.objectClass(ConditionalGet.class).objectField("fLink").indexed(true); //$NON-NLS-1$
    configureFeed(config);
    configureNews(config);
    configureSearchMark(config);
    configureFolder(config);
    config.objectClass(NewsCounter.class).cascadeOnDelete(true);
View Full Code Here

    config.objectClass(ConditionalGet.class).objectField("fLink").indexed(true); //$NON-NLS-1$
    configureFeed(config);
    configureNews(config);
    configureSearchMark(config);
    configureFolder(config);
    config.objectClass(NewsCounter.class).cascadeOnDelete(true);
    config.objectClass(Preference.class).cascadeOnDelete(true);
    config.objectClass(Preference.class).objectField("fKey").indexed(true); //$NON-NLS-1$
    return config;
  }
View Full Code Here

    configureFeed(config);
    configureNews(config);
    configureSearchMark(config);
    configureFolder(config);
    config.objectClass(NewsCounter.class).cascadeOnDelete(true);
    config.objectClass(Preference.class).cascadeOnDelete(true);
    config.objectClass(Preference.class).objectField("fKey").indexed(true); //$NON-NLS-1$
    return config;
  }

  private void configureAbstractEntity(Configuration config) {
View Full Code Here

    configureNews(config);
    configureSearchMark(config);
    configureFolder(config);
    config.objectClass(NewsCounter.class).cascadeOnDelete(true);
    config.objectClass(Preference.class).cascadeOnDelete(true);
    config.objectClass(Preference.class).objectField("fKey").indexed(true); //$NON-NLS-1$
    return config;
  }

  private void configureAbstractEntity(Configuration config) {
    ObjectClass abstractEntityClass = config.objectClass(AbstractEntity.class);
View Full Code Here

    oc.close();

    Configuration c = Db4o.newConfiguration();

    /* core.model.types to core.persist */
    c.objectClass(IAttachment.class).rename(org.rssowl.core.persist.IAttachment.class.getName());
    c.objectClass(IBookMark.class).rename(org.rssowl.core.persist.IBookMark.class.getName());
    c.objectClass(ICategory.class).rename(org.rssowl.core.persist.ICategory.class.getName());
    c.objectClass(IFeed.class).rename(org.rssowl.core.persist.IFeed.class.getName());
    c.objectClass(IFolder.class).rename(org.rssowl.core.persist.IFolder.class.getName());
    c.objectClass(IImage.class).rename(org.rssowl.core.persist.IImage.class.getName());
View Full Code Here

    Configuration c = Db4o.newConfiguration();

    /* core.model.types to core.persist */
    c.objectClass(IAttachment.class).rename(org.rssowl.core.persist.IAttachment.class.getName());
    c.objectClass(IBookMark.class).rename(org.rssowl.core.persist.IBookMark.class.getName());
    c.objectClass(ICategory.class).rename(org.rssowl.core.persist.ICategory.class.getName());
    c.objectClass(IFeed.class).rename(org.rssowl.core.persist.IFeed.class.getName());
    c.objectClass(IFolder.class).rename(org.rssowl.core.persist.IFolder.class.getName());
    c.objectClass(IImage.class).rename(org.rssowl.core.persist.IImage.class.getName());
    c.objectClass(ILabel.class).rename(org.rssowl.core.persist.ILabel.class.getName());
View Full Code Here

    Configuration c = Db4o.newConfiguration();

    /* core.model.types to core.persist */
    c.objectClass(IAttachment.class).rename(org.rssowl.core.persist.IAttachment.class.getName());
    c.objectClass(IBookMark.class).rename(org.rssowl.core.persist.IBookMark.class.getName());
    c.objectClass(ICategory.class).rename(org.rssowl.core.persist.ICategory.class.getName());
    c.objectClass(IFeed.class).rename(org.rssowl.core.persist.IFeed.class.getName());
    c.objectClass(IFolder.class).rename(org.rssowl.core.persist.IFolder.class.getName());
    c.objectClass(IImage.class).rename(org.rssowl.core.persist.IImage.class.getName());
    c.objectClass(ILabel.class).rename(org.rssowl.core.persist.ILabel.class.getName());
    c.objectClass(IMark.class).rename(org.rssowl.core.persist.IMark.class.getName());
View Full Code Here

    /* core.model.types to core.persist */
    c.objectClass(IAttachment.class).rename(org.rssowl.core.persist.IAttachment.class.getName());
    c.objectClass(IBookMark.class).rename(org.rssowl.core.persist.IBookMark.class.getName());
    c.objectClass(ICategory.class).rename(org.rssowl.core.persist.ICategory.class.getName());
    c.objectClass(IFeed.class).rename(org.rssowl.core.persist.IFeed.class.getName());
    c.objectClass(IFolder.class).rename(org.rssowl.core.persist.IFolder.class.getName());
    c.objectClass(IImage.class).rename(org.rssowl.core.persist.IImage.class.getName());
    c.objectClass(ILabel.class).rename(org.rssowl.core.persist.ILabel.class.getName());
    c.objectClass(IMark.class).rename(org.rssowl.core.persist.IMark.class.getName());
    c.objectClass(INews.class).rename(org.rssowl.core.persist.INews.class.getName());
View Full Code Here

    /* core.model.types to core.persist */
    c.objectClass(IAttachment.class).rename(org.rssowl.core.persist.IAttachment.class.getName());
    c.objectClass(IBookMark.class).rename(org.rssowl.core.persist.IBookMark.class.getName());
    c.objectClass(ICategory.class).rename(org.rssowl.core.persist.ICategory.class.getName());
    c.objectClass(IFeed.class).rename(org.rssowl.core.persist.IFeed.class.getName());
    c.objectClass(IFolder.class).rename(org.rssowl.core.persist.IFolder.class.getName());
    c.objectClass(IImage.class).rename(org.rssowl.core.persist.IImage.class.getName());
    c.objectClass(ILabel.class).rename(org.rssowl.core.persist.ILabel.class.getName());
    c.objectClass(IMark.class).rename(org.rssowl.core.persist.IMark.class.getName());
    c.objectClass(INews.class).rename(org.rssowl.core.persist.INews.class.getName());
    c.objectClass(INews.State.class).rename(org.rssowl.core.persist.INews.State.class.getName());
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.