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

📄 productproxy.java

📁 jsp网站开发四“酷”全书原码
💻 JAVA
字号:
package com.publish.shop.product.javabeans;import java.sql.Connection;import java.util.ArrayList;import com.publish.shop.util.javabeans.*;import com.publish.shop.product.dao.ProductDAO;public class ProductProxy {  ProductDAO dao = null;  public ProductProxy(){    dao = new ProductDAO();  }  public ProductModel queryProductByProductName(String productName) throws Exception{    return dao.queryProductByProductName(productName);  }  public ArrayList queryProduct(ProductModel model,Pager pager) throws Exception{    ArrayList lList = new ArrayList();    lList = dao.query(model);    return Utility.generatePager(lList,pager);  }  public ArrayList queryProduct(ProductModel model) throws Exception{    return dao.query(model);  }  public ProductModel queryProduct(String productId) throws Exception{     return dao.queryProduct(productId);  }  public void insertProduct(ProductModel model) throws Exception{      dao.insert(model);  }  public void updateProduct(ProductModel model) throws Exception{      dao.update(model);  }  public void deleteProduct(String productId) throws Exception{      dao.delete(productId);  }}

⌨️ 快捷键说明

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