KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > javacoding > jspider > core > model > EMailAddressReferenceInternal


1 package net.javacoding.jspider.core.model;
2
3 import net.javacoding.jspider.api.model.*;
4 import net.javacoding.jspider.core.storage.spi.StorageSPI;
5
6
7 /**
8  * $Id: EMailAddressReferenceInternal.java,v 1.2 2003/04/11 16:37:03 vanrogu Exp $
9  */

10 public class EMailAddressReferenceInternal implements EMailAddressReference {
11
12     protected StorageSPI storage;
13     protected int resource;
14     protected String JavaDoc emailAddress;
15     protected int count;
16
17     public EMailAddressReferenceInternal ( StorageSPI storage, int resource, String JavaDoc emailAddress, int count ) {
18         this.storage = storage;
19         this.resource = resource;
20         this.emailAddress = emailAddress;
21         this.count = count;
22     }
23
24     public FetchedResource getResource() {
25         return storage.getResourceDAO().getResource(resource) ;
26     }
27
28     public EMailAddress getEMailAddress() {
29         return storage.getEMailAddressDAO().find(emailAddress);
30     }
31
32     public int getCount() {
33         return count;
34     }
35
36     public void incrementCount ( ) {
37         count = count + 1;
38     }
39
40 }
41
Popular Tags