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

搜索引擎

开发平台:

Java

  1. package net.javacoding.jspider.core.model;
  2. import net.javacoding.jspider.api.model.*;
  3. import net.javacoding.jspider.core.storage.spi.StorageSPI;
  4. /**
  5.  * $Id: EMailAddressReferenceInternal.java,v 1.2 2003/04/11 16:37:03 vanrogu Exp $
  6.  */
  7. public class EMailAddressReferenceInternal implements EMailAddressReference {
  8.     protected StorageSPI storage;
  9.     protected int resource;
  10.     protected String emailAddress;
  11.     protected int count;
  12.     public EMailAddressReferenceInternal ( StorageSPI storage, int resource, String emailAddress, int count ) {
  13.         this.storage = storage;
  14.         this.resource = resource;
  15.         this.emailAddress = emailAddress;
  16.         this.count = count;
  17.     }
  18.     public FetchedResource getResource() {
  19.         return storage.getResourceDAO().getResource(resource) ;
  20.     }
  21.     public EMailAddress getEMailAddress() {
  22.         return storage.getEMailAddressDAO().find(emailAddress);
  23.     }
  24.     public int getCount() {
  25.         return count;
  26.     }
  27.     public void incrementCount ( ) {
  28.         count = count + 1;
  29.     }
  30. }