⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 follownotebean.java

📁 一个仿造淘宝的jsp网站。功能比较完善
💻 JAVA
字号:
package com.jc.taobao.gjj.logic;

import java.util.ArrayList;
import java.util.List;

import com.jc.taobao.gjj.dao.FollowNoteDAO;
import com.jc.taobao.gjj.entity.FollowNote;
import com.jc.taobao.gjj.factory.WorkFactory;

public class FollowNoteBean {
	FollowNoteDAO fdao=null;
	public FollowNoteBean()
	{
		fdao=(FollowNoteDAO)WorkFactory.getDAO("FollowNoteDAO");
	}
	public int save(FollowNote fn) {
		return fdao.save(fn);
	}

	public int delete(Integer id) {
		return fdao.delete(id);
	}

	public int merge(FollowNote fn) {
		return fdao.merge(fn);
	}
	
	public List<FollowNote> getquerybyALL()//查询所有跟贴信息
	 {
		 return fdao.querybyALL();
	 }
	 
	 public List<FollowNote> getquerybyFid(Integer fid)//根据跟贴号查询跟贴信息
	 {
		 return fdao.querybyFid(fid);
	 }
	 
	 public List<FollowNote> getquerybymid(Integer mid)//根据主帖号查询跟贴信息
	 {
		 return fdao.querybymid(mid);
	 }
	 
	 public List<FollowNote> getquerybyfollowtitle(FollowNote follow)//根据跟贴标题查询跟贴信息
	 {
		 return fdao.querybyfollowtitle(follow);
	 }
	 public List<FollowNote> getquerybyfollowmessage(FollowNote follow)//根据跟贴内容查询跟贴信息
	 {
		 return fdao.querybyfollowmessage(follow);
	 }
	 public int getFollownoteCount()
	 {
		 return fdao.queryfollownoteCount();
	 }
	 
	 public int getFollownotCountbymid(Integer mid)
	 {
		return fdao.queryfollowcountbymid(mid); 
	 }
	 public ArrayList getqueryFollowbyuserId(Integer userid)
	{
		return (ArrayList)fdao.queryFollowbyuserId(userid);
	}
	 public ArrayList getqueryzuijiamasternote()
	 {
		 return fdao.queryzuijiamasternote();
	 }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -