EMailAddressReferenceInternal.java
上传用户:qing5858
上传日期:2015-10-27
资源大小:6056k
文件大小:1k
源码类别:
搜索引擎
开发平台:
Java
- package net.javacoding.jspider.core.model;
- import net.javacoding.jspider.api.model.*;
- import net.javacoding.jspider.core.storage.spi.StorageSPI;
- /**
- * $Id: EMailAddressReferenceInternal.java,v 1.2 2003/04/11 16:37:03 vanrogu Exp $
- */
- public class EMailAddressReferenceInternal implements EMailAddressReference {
- protected StorageSPI storage;
- protected int resource;
- protected String emailAddress;
- protected int count;
- public EMailAddressReferenceInternal ( StorageSPI storage, int resource, String emailAddress, int count ) {
- this.storage = storage;
- this.resource = resource;
- this.emailAddress = emailAddress;
- this.count = count;
- }
- public FetchedResource getResource() {
- return storage.getResourceDAO().getResource(resource) ;
- }
- public EMailAddress getEMailAddress() {
- return storage.getEMailAddressDAO().find(emailAddress);
- }
- public int getCount() {
- return count;
- }
- public void incrementCount ( ) {
- count = count + 1;
- }
- }