Package org.rssowl.core.internal.persist

Examples of org.rssowl.core.internal.persist.NewsBin


    INews news = fTypesFactory.createNews(null, feed, new Date());
    DynamicDAO.save(feed);

    IFolder folder = fTypesFactory.createFolder(null, null, "Folder");
    fTypesFactory.createBookMark(null, folder, new FeedLinkReference(feed.getLink()), "BookMark");
    NewsBin bin = (NewsBin) fTypesFactory.createNewsBin(null, folder, "News Bin");
    DynamicDAO.save(folder);

    INews newsCopy = fTypesFactory.createNews(news, bin);
    DynamicDAO.save(newsCopy);
    DynamicDAO.save(bin);

    /* Ensure that arrays are treated specially by db4o, don't need to delete them manually */
    assertFalse(fDb.ext().isStored(bin.internalGetNewsContainer().internalGetNewsIds()));

    NewsContainer newsContainer = bin.internalGetNewsContainer();
    DynamicDAO.delete(bin);
    assertFalse(fDb.ext().isStored(newsContainer));
  }
View Full Code Here


    INews news = fTypesFactory.createNews(null, feed, new Date());
    DynamicDAO.save(feed);

    IFolder folder = fTypesFactory.createFolder(null, null, "Folder");
    fTypesFactory.createBookMark(null, folder, new FeedLinkReference(feed.getLink()), "BookMark");
    NewsBin bin = (NewsBin) fTypesFactory.createNewsBin(null, folder, "News Bin");
    DynamicDAO.save(folder);

    INews newsCopy = fTypesFactory.createNews(news, bin);
    DynamicDAO.save(newsCopy);
    DynamicDAO.save(bin);

    /*
     * Ensure that arrays are treated specially by db4o, don't need to delete
     * them manually
     */
    assertFalse(fDb.ext().isStored(bin.internalGetNewsContainer().internalGetNewsIds()));

    NewsContainer newsContainer = bin.internalGetNewsContainer();
    DynamicDAO.delete(bin);
    assertFalse(fDb.ext().isStored(newsContainer));
  }
View Full Code Here

TOP

Related Classes of org.rssowl.core.internal.persist.NewsBin

Copyright © 2018 www.massapicom. 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.