Package org.rssowl.core.model.dao

Examples of org.rssowl.core.model.dao.IModelDAO


    return str.toString();
  }

  private IBookMark createBookMark(IFeed feed) throws PersistenceException {
    IModelDAO dao = NewsModel.getDefault().getPersistenceLayer().getModelDAO();
    IFolder folder = dao.saveFolder(NewsModel.getDefault().getTypesFactory().createFolder(null, null, "Root"));

    return dao.saveBookMark(NewsModel.getDefault().getTypesFactory().createBookMark(null, folder, feed.getLink(), new FeedReference(feed.getId()), "BookMark"));
  }
View Full Code Here


      fDb.delete(category);
    }
    for (INews news : ReverseIterator.createInstance(feed.getNews())) {
      fDb.delete(news);
    }
    IModelDAO dao = NewsModel.getDefault().getPersistenceLayer().getModelDAO();
    IConditionalGet conditionalGet = dao.loadConditionalGet(feed.getLink());
    if (conditionalGet != null)
      fDb.delete(conditionalGet);
   
    removeFromItemsBeingDeleted(feed);
  }
View Full Code Here

    assertEquals(unreadCounter, getUnreadCount(feed));
    assertEquals(newCounter, getNewCount(feed));
  }

  private IBookMark createBookMark(IFeed feed) throws PersistenceException {
    IModelDAO dao = NewsModel.getDefault().getPersistenceLayer().getModelDAO();
    IFolder folder = dao.saveFolder(NewsModel.getDefault().getTypesFactory().createFolder(null, null, "Root"));

    return dao.saveBookMark(NewsModel.getDefault().getTypesFactory().createBookMark(
        null, folder, feed.getLink(), new FeedReference(feed.getId()), "BookMark"));
  }
View Full Code Here

TOP

Related Classes of org.rssowl.core.model.dao.IModelDAO

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.