InMemoryStorageImpl.java
上传用户:qing5858
上传日期:2015-10-27
资源大小:6056k
文件大小:1k
源码类别:

搜索引擎

开发平台:

Java

  1. package net.javacoding.jspider.core.storage.memory;
  2. import net.javacoding.jspider.core.storage.spi.*;
  3. /**
  4.  *
  5.  * $Id: InMemoryStorageImpl.java,v 1.24 2003/04/11 16:37:07 vanrogu Exp $
  6.  *
  7.  * @author G黱ther Van Roey
  8.  */
  9. class InMemoryStorageImpl implements StorageSPI {
  10.     protected SiteDAOSPI siteDAO;
  11.     protected ResourceDAOSPI resourceDAO;
  12.     protected ContentDAOSPI contentDAO;
  13.     protected DecisionDAOSPI decisionDAO;
  14.     protected CookieDAOSPI cookieDAO;
  15.     protected EMailAddressDAOSPI emailAddressDAO;
  16.     protected FolderDAOSPI folderDAO;
  17.     public InMemoryStorageImpl() {
  18.         siteDAO = new SiteDAOImpl(this);
  19.         resourceDAO = new ResourceDAOImpl(this);
  20.         contentDAO = new ContentDAOImpl(this);
  21.         decisionDAO = new DecisionDAOImpl(this);
  22.         cookieDAO = new CookieDAOImpl(this);
  23.         emailAddressDAO = new EMailAddressDAOImpl(this);
  24.         folderDAO = new FolderDAOImpl(this);
  25.     }
  26.     public FolderDAOSPI getFolderDAO() {
  27.         return folderDAO;
  28.     }
  29.     public SiteDAOSPI getSiteDAO() {
  30.         return siteDAO;
  31.     }
  32.     public ResourceDAOSPI getResourceDAO() {
  33.         return resourceDAO;
  34.     }
  35.     public ContentDAOSPI getContentDAO() {
  36.         return contentDAO;
  37.     }
  38.     public DecisionDAOSPI getDecisionDAO() {
  39.         return decisionDAO;
  40.     }
  41.     public CookieDAOSPI getCookieDAO() {
  42.         return cookieDAO;
  43.     }
  44.     public EMailAddressDAOSPI getEMailAddressDAO() {
  45.         return emailAddressDAO;
  46.     }
  47. }