01: package net.javacoding.jspider.core.storage.memory;
02:
03: import net.javacoding.jspider.core.storage.spi.*;
04:
05: /**
06: *
07: * $Id: InMemoryStorageImpl.java,v 1.24 2003/04/11 16:37:07 vanrogu Exp $
08: *
09: * @author Günther Van Roey
10: */
11: class InMemoryStorageImpl implements StorageSPI {
12:
13: protected SiteDAOSPI siteDAO;
14: protected ResourceDAOSPI resourceDAO;
15: protected ContentDAOSPI contentDAO;
16: protected DecisionDAOSPI decisionDAO;
17: protected CookieDAOSPI cookieDAO;
18: protected EMailAddressDAOSPI emailAddressDAO;
19: protected FolderDAOSPI folderDAO;
20:
21: public InMemoryStorageImpl() {
22: siteDAO = new SiteDAOImpl(this );
23: resourceDAO = new ResourceDAOImpl(this );
24: contentDAO = new ContentDAOImpl(this );
25: decisionDAO = new DecisionDAOImpl(this );
26: cookieDAO = new CookieDAOImpl(this );
27: emailAddressDAO = new EMailAddressDAOImpl(this );
28: folderDAO = new FolderDAOImpl(this );
29: }
30:
31: public FolderDAOSPI getFolderDAO() {
32: return folderDAO;
33: }
34:
35: public SiteDAOSPI getSiteDAO() {
36: return siteDAO;
37: }
38:
39: public ResourceDAOSPI getResourceDAO() {
40: return resourceDAO;
41: }
42:
43: public ContentDAOSPI getContentDAO() {
44: return contentDAO;
45: }
46:
47: public DecisionDAOSPI getDecisionDAO() {
48: return decisionDAO;
49: }
50:
51: public CookieDAOSPI getCookieDAO() {
52: return cookieDAO;
53: }
54:
55: public EMailAddressDAOSPI getEMailAddressDAO() {
56: return emailAddressDAO;
57: }
58:
59: }
|