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

📄 shopcarlogic.java

📁 >项目名称:电脑电子商务平台 >1.运行环境JDK1.6+Oracle10g+Tomcat5.5 >2.开发工具: MyEclipse Enterprise Workbench
💻 JAVA
字号:
package omega.logic;

import java.util.List;

import omega.domain.Product;
import omega.domain.Shopcart;
import omega.persistence.iface.*;
import omega.persistence.sqlmapdao.ShopCarSqlMapDao;

public class ShopCarLogic {
	ShopCarDao sd=new ShopCarSqlMapDao();
	
	public List getCarbyName(String username) throws Exception{
		return sd.getShopCar(username);
	}
	public void Insert(Shopcart shopcar) throws Exception{
		sd.insertCar(shopcar);
	}
	
	public void update(Shopcart shopcar) throws Exception{
		sd.updateCar(shopcar);
	}
	
	public void updatebyorderid(Shopcart shopcar)throws Exception{
		sd.updateCarByOrderid(shopcar);
	}

	public void Del(int id) throws Exception{
		sd.delCar(id);
	}
	
	public void DelByName(String username) throws Exception{
		sd.delCarbyusername(username);
	}
	
	public Shopcart getMaxId() throws Exception {
		return sd.getMaxId();
	}

	public int getCount() throws Exception {
		return sd.getCount();
	}
 }

⌨️ 快捷键说明

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