bulletinproxy.java
来自「一个常用的电子商城的站点源码」· Java 代码 · 共 40 行
JAVA
40 行
package com.publish.shop.bulletin.javabeans;import java.sql.Connection;import java.util.ArrayList;import com.publish.shop.util.javabeans.*;import com.publish.shop.bulletin.dao.BulletinDAO;public class BulletinProxy { BulletinDAO dao = null; public BulletinProxy(){ dao = new BulletinDAO(); } public ArrayList queryBulletin(BulletinModel model,Pager pager) throws Exception{ ArrayList lList = new ArrayList(); lList = dao.query(model); return Utility.generatePager(lList,pager); } public ArrayList queryBulletin(BulletinModel model) throws Exception{ return dao.query(model); } public BulletinModel queryBulletin(String bulletinId) throws Exception{ return dao.queryBulletin(bulletinId); } public void insertBulletin(BulletinModel model) throws Exception{ dao.insert(model); } public void updateBulletin(BulletinModel model) throws Exception{ dao.update(model); } public void deleteBulletin(String bulletinId) throws Exception{ dao.delete(bulletinId); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?