lineitemproxy.java
来自「一个常用的电子商城的站点源码」· Java 代码 · 共 59 行
JAVA
59 行
package com.publish.shop.order.javabeans;import java.sql.Connection;import java.util.ArrayList;import com.publish.shop.util.javabeans.*;import com.publish.shop.order.dao.LineItemDAO;public class LineItemProxy { LineItemDAO dao = null; public LineItemProxy(){ dao = new LineItemDAO(); } public ArrayList queryLineItem(LineItemModel model,Pager pager) throws Exception{ ArrayList lList = new ArrayList(); lList = dao.query(model); return Utility.generatePager(lList,pager); } public ArrayList queryLineItem(LineItemModel model) throws Exception{ return dao.query(model); } public ArrayList queryLineItem(String orderId,Pager pager) throws Exception{ ArrayList lList = new ArrayList(); lList = dao.query(orderId); return Utility.generatePager(lList,pager); } public ArrayList queryLineItem(String orderId) throws Exception{ return dao.query(orderId); } public LineItemModel queryLineItemByOrderIdAndLineIndex(String orderId, String lineIndex) throws Exception{ return dao.queryLineItemByOrderIdAndLineIndex(orderId, lineIndex); } public void insertLineItem(LineItemModel model) throws Exception{ dao.insert(model); } public void insertLocalLineItem(ArrayList list, String productId) { } public void updateLineItem(LineItemModel model) throws Exception{ dao.update(model); } public void deleteLineItem(String orderId, String lineIndex) throws Exception{ dao.delete(orderId, lineIndex); } public void deleteLineItemByOrderId(String orderId) throws Exception{ dao.deleteByOrderId(orderId); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?