亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? petstoreannotationimpl.java

?? jpetstore struts spring hibernate
?? JAVA
字號:
package org.springframework.samples.jpetstore.domain.logic;

import java.util.List;

import org.springframework.samples.jpetstore.dao.AccountDao;
import org.springframework.samples.jpetstore.dao.CategoryDao;
import org.springframework.samples.jpetstore.dao.ItemDao;
import org.springframework.samples.jpetstore.dao.OrderDao;
import org.springframework.samples.jpetstore.dao.ProductDao;
import org.springframework.samples.jpetstore.domain.Account;
import org.springframework.samples.jpetstore.domain.Category;
import org.springframework.samples.jpetstore.domain.Item;
import org.springframework.samples.jpetstore.domain.Order;
import org.springframework.samples.jpetstore.domain.Product;
import org.springframework.transaction.annotation.Transactional;

/**
 * JPetStore primary business object.
 * 
 * <p>This object makes use of five DAO objects, decoupling it
 * from the details of working with persistence APIs. So
 * although this application uses iBATIS for data access,
 * a different persistence tool could be dropped in without
 * breaking this class.
 *
 * <p>The DAOs are made available to the instance of this object
 * using Dependency Injection. (The DAOs are in turn configured using
 * Dependency Injection themselves.) We use Setter Injection here,
 * exposing JavaBean setter methods for each DAO. This means there is
 * a JavaBean property for each DAO. In the present case, the properties
 * are write-only: there are no corresponding getter methods. Getter
 * methods for configuration properties are optional: Implement them
 * only if you want to expose those properties to other business objects.
 *
 * <p>There is one instance of this class in the JPetStore application.
 * In Spring terminology, it is a "singleton", referring to a
 * per-Application Context singleton. The factory creates a single
 * instance; there is no need for a private constructor, static
 * factory method etc as in the traditional implementation of
 * the Singleton Design Pattern. 
 *
 * <p>This is a POJO. It does not depend on any Spring APIs.
 * It's usable outside a Spring container, and can be instantiated
 * using new in a JUnit test. However, we can still apply declarative
 * transaction management to it using Spring AOP.
 *
 * <p>This class defines a default transaction annotation for all methods.
 * Note that this annotation definition is only necessary for auto-proxying
 * driven by JDK 1.5+ annotations (see the "annotation" directory under the root
 * of JPetStore). No annotations are required with a TransactionFactoryProxyBean,
 * as in the default applicationContext.xml in the war/WEB-INF directory.
 *
 * <p>The following annotation is Spring's JDK 1.5+ Transactional annotation.
 *
 * @author Juergen Hoeller
 * @since 30.11.2003
 */
@Transactional
public class PetStoreAnnotationImpl implements PetStoreFacade, OrderService {

	private AccountDao accountDao;

	private CategoryDao categoryDao;

	private ProductDao productDao;

	private ItemDao itemDao;

	private OrderDao orderDao;


	//-------------------------------------------------------------------------
	// Setter methods for dependency injection
	//-------------------------------------------------------------------------

	public void setAccountDao(AccountDao accountDao) {
		this.accountDao = accountDao;
	}

	public void setCategoryDao(CategoryDao categoryDao) {
		this.categoryDao = categoryDao;
	}

	public void setProductDao(ProductDao productDao) {
		this.productDao = productDao;
	}

	public void setItemDao(ItemDao itemDao) {
		this.itemDao = itemDao;
	}

	public void setOrderDao(OrderDao orderDao) {
		this.orderDao = orderDao;
	}


	//-------------------------------------------------------------------------
	// Operation methods, implementing the PetStoreFacade interface
	//-------------------------------------------------------------------------

	public Account getAccount(String username) {
		return this.accountDao.getAccount(username);
	}

	public Account getAccount(String username, String password) {
		return this.accountDao.getAccount(username, password);
	}

	public void insertAccount(Account account) {
		this.accountDao.insertAccount(account);
	}

	public void updateAccount(Account account) {
		this.accountDao.updateAccount(account);
	}

	public List getUsernameList() {
		return this.accountDao.getUsernameList();
	}

	public List getCategoryList() {
		return this.categoryDao.getCategoryList();
	}

	public Category getCategory(String categoryId) {
		return this.categoryDao.getCategory(categoryId);
	}

	public List getProductListByCategory(String categoryId) {
		return this.productDao.getProductListByCategory(categoryId);
	}

	public List searchProductList(String keywords) {
		return this.productDao.searchProductList(keywords);
	}

	public Product getProduct(String productId) {
		return this.productDao.getProduct(productId);
	}

	public List getItemListByProduct(String productId) {
		return this.itemDao.getItemListByProduct(productId);
	}

	public Item getItem(String itemId) {
		return this.itemDao.getItem(itemId);
	}

	public boolean isItemInStock(String itemId) {
		return this.itemDao.isItemInStock(itemId);
	}

	public void insertOrder(Order order) {
		this.orderDao.insertOrder(order);
		this.itemDao.updateQuantity(order);
	}

	public Order getOrder(int orderId) {
		return this.orderDao.getOrder(orderId);
	}

	public List getOrdersByUsername(String username) {
		return this.orderDao.getOrdersByUsername(username);
	}

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美极品aⅴ影院| 国产日韩三级在线| 91免费国产在线| 波波电影院一区二区三区| 成人在线视频首页| 处破女av一区二区| 99精品国产热久久91蜜凸| 91亚洲精品乱码久久久久久蜜桃| 99国产精品视频免费观看| 成人午夜私人影院| 欧美专区日韩专区| 国产乱子伦视频一区二区三区 | 美女一区二区三区| 亚洲国产日韩一级| 日本欧美在线观看| 国产精品影音先锋| 色综合视频一区二区三区高清| 色美美综合视频| 欧美一级片免费看| 国产精品久久久久久久久动漫| 欧美国产综合一区二区| 色噜噜偷拍精品综合在线| 波多野结衣中文字幕一区二区三区| 成人午夜短视频| 欧美午夜片在线观看| 精品国产一区二区三区不卡| 国产三级一区二区三区| 亚洲一区二区三区四区的| 蜜乳av一区二区| 99久久精品免费精品国产| 欧美一区二区二区| 国产精品乱人伦| 日本韩国欧美在线| 色综合久久精品| 精品视频资源站| 精品久久一区二区| 国产精品电影院| 麻豆精品视频在线观看| 国产一区二区美女| 欧美日韩1区2区| 久久精品夜夜夜夜久久| 午夜久久久久久电影| 国产精品一区三区| 欧美久久久久免费| 国产清纯在线一区二区www| 亚洲日本护士毛茸茸| 久久99精品久久久久久| 色综合久久中文字幕综合网| 日韩一级片在线观看| 亚洲国产高清aⅴ视频| 美女视频一区在线观看| 欧美伊人久久久久久午夜久久久久| 久久精品一区二区| 蜜桃视频在线一区| 欧美精品日韩精品| 亚洲h动漫在线| 欧美三区在线视频| 亚洲精品写真福利| 成人av资源网站| 久久久久久一二三区| 国产成人av一区| 日韩欧美一区二区免费| 五月天激情小说综合| 色88888久久久久久影院野外| 欧美国产丝袜视频| 成人aaaa免费全部观看| 国产欧美一二三区| 国产精品主播直播| 国产亚洲综合在线| 国产·精品毛片| 国产精品国产三级国产普通话99| 国产精品18久久久久久vr| 精品国产人成亚洲区| 日韩av电影免费观看高清完整版 | 欧美日韩在线播| 国产精品国产三级国产aⅴ无密码| 激情五月婷婷综合网| 欧美xingq一区二区| 亚洲一区免费在线观看| 国产亚洲欧洲一区高清在线观看| 免费成人美女在线观看.| 91精品国产高清一区二区三区| 亚洲美女视频在线观看| 在线精品国精品国产尤物884a| 最新欧美精品一区二区三区| 波多野结衣精品在线| 国产亚洲精品中文字幕| 国产成人午夜精品5599| 久久久美女艺术照精彩视频福利播放 | 91农村精品一区二区在线| 国产精品色呦呦| 色域天天综合网| 亚洲综合视频在线| 欧美精品亚洲二区| 久久国产日韩欧美精品| 中文幕一区二区三区久久蜜桃| 国产麻豆一精品一av一免费 | 国产a区久久久| 国产色婷婷亚洲99精品小说| 国产一区二区三区四区五区美女| 日韩一区二区三区在线观看| 国产一区美女在线| 久久精品欧美一区二区三区不卡| 国产ts人妖一区二区| 中文字幕欧美一| 欧美日韩电影在线| 捆绑调教一区二区三区| 中文字幕一区免费在线观看| 91啦中文在线观看| 午夜精品一区二区三区三上悠亚| 制服丝袜亚洲精品中文字幕| 日韩精品成人一区二区三区| 国产精品一区二区你懂的| 亚洲欧洲无码一区二区三区| 欧美久久久久久久久| 国精品**一区二区三区在线蜜桃| 中文字幕欧美国产| 在线观看成人免费视频| 久久精品国产精品亚洲红杏| 欧美韩日一区二区三区| 欧美日韩国产综合一区二区| 丝袜美腿亚洲色图| 中文字幕一区二区三区在线观看 | 亚洲丝袜制服诱惑| 欧美一级黄色大片| 在线观看网站黄不卡| 日本亚洲一区二区| 亚洲一区二区三区自拍| 久久这里只有精品首页| 国产精品无人区| 精品国产乱码久久久久久久久| 亚洲丝袜制服诱惑| 中文字幕av一区二区三区| 日韩一区二区免费视频| 欧美久久婷婷综合色| 色婷婷精品久久二区二区蜜臂av| 国产精一区二区三区| 久久黄色级2电影| 石原莉奈一区二区三区在线观看| 国产精品天美传媒| 亚洲国产中文字幕在线视频综合| 久久久久一区二区三区四区| 日韩午夜激情视频| 欧美日韩一级二级| 色婷婷久久久综合中文字幕 | 中文字幕中文字幕一区| 这里只有精品电影| 欧美日韩国产美| 欧美视频在线观看一区| 99久久久免费精品国产一区二区| 免费日本视频一区| 亚欧色一区w666天堂| 中文字幕佐山爱一区二区免费| 久久精品夜色噜噜亚洲aⅴ| 欧美一三区三区四区免费在线看 | 欧美午夜视频网站| zzijzzij亚洲日本少妇熟睡| 毛片不卡一区二区| 婷婷开心激情综合| 日本强好片久久久久久aaa| 亚洲免费观看高清完整| 亚洲婷婷在线视频| 亚洲视频免费观看| 综合欧美亚洲日本| 久久午夜免费电影| 久久久精品综合| 久久夜色精品国产噜噜av| 亚洲国产精品t66y| 亚洲人吸女人奶水| 亚洲与欧洲av电影| 三级久久三级久久久| 性久久久久久久久久久久| 日本欧洲一区二区| 国产不卡一区视频| 91在线观看视频| 91精品国产综合久久精品app | 午夜精品久久久久久久蜜桃app| 日日夜夜精品视频免费| 日日夜夜精品免费视频| 日本午夜精品一区二区三区电影| 日韩va欧美va亚洲va久久| 国产999精品久久久久久绿帽| 亚洲色图19p| 毛片基地黄久久久久久天堂| 成人av在线看| 69久久99精品久久久久婷婷 | 亚洲激情图片小说视频| 丝袜亚洲精品中文字幕一区| 日本在线不卡一区| 91在线云播放| 欧美男生操女生| 中文字幕色av一区二区三区| 亚洲成人免费在线| 成人美女视频在线看| 欧美一区二区三区免费大片| 亚洲素人一区二区| 国产在线精品一区二区三区不卡| 欧美亚一区二区| 国产欧美精品在线观看| 久久99精品国产麻豆婷婷洗澡|