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

? 歡迎來(lái)到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? petstoreimpl.java

?? spring 實(shí)現(xiàn) 的 petstore
?? JAVA
字號(hào):
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;

/**
 * JPetStore's business layer facade.
 *
 * <p>This object makes use of five DAO objects, decoupling it from the
 * details of working with persistence APIs. Therefore, although this
 * application uses iBATIS for data access, a different persistence
 * strategy could be incorporated 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.) We use Setter Injection here,
 * exposing JavaBean setter methods for each DAO. This means there is
 * a JavaBean "property" for each DAO. In this case the properties
 * are write-only: there is no getter method to accompany the setter
 * methods. Getter methods are optional: implement them only if you
 * want to expose access to the properties in your business object.
 *
 * <p>There is one instance of this class in the JPetStore application.
 * In Spring terminology, it is a "singleton". This means a singleton
 * per Spring Application Context instance. 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 is 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 attribute for all methods.
 * Note that this attribute definition is only necessary if using Commons
 * Attributes auto-proxying (see the "attributes" directory under the root of
 * JPetStore). No attributes are required with a TransactionFactoryProxyBean;
 * see the default <code>applicationContext.xml</code> config file in the
 * <code>war/WEB-INF</code> directory for an example.
 *
 * <p>The following attribute definition uses Commons Attributes attribute syntax.
 * @@org.springframework.transaction.interceptor.DefaultTransactionAttribute()
 *
 * @author Juergen Hoeller
 * @since 30.11.2003
 */
public class PetStoreImpl 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);
	}

}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91国产精品成人| 黑人精品欧美一区二区蜜桃| 91精品久久久久久久99蜜桃| 国产在线日韩欧美| 亚洲精品一二三区| 精品日韩一区二区三区| 色婷婷综合久久| 麻豆成人免费电影| 亚洲美女屁股眼交| 久久久久久久久免费| 欧美日韩综合不卡| 懂色av中文一区二区三区| 午夜精品成人在线视频| 国产精品不卡在线| 精品国产网站在线观看| 欧美亚洲日本一区| www.欧美精品一二区| 久久精品国产网站| 亚洲成av人在线观看| 亚洲日本成人在线观看| 国产午夜精品久久久久久免费视| 欧美精品色综合| 91热门视频在线观看| 国产v综合v亚洲欧| 国产一区三区三区| 久久精品99国产精品| 午夜精品久久久久久久99樱桃| 中文字幕字幕中文在线中不卡视频| 日韩欧美在线一区二区三区| 欧美揉bbbbb揉bbbbb| 91美女在线视频| 岛国精品在线播放| 国产一区在线观看视频| 精品写真视频在线观看 | 亚洲丝袜制服诱惑| 中文字幕免费不卡在线| 久久亚洲综合av| 日韩欧美在线影院| 欧美一区二区不卡视频| 欧美精品日日鲁夜夜添| 欧美性大战久久久| 欧美日韩久久一区| 欧美日韩国产一区二区三区地区| 色av成人天堂桃色av| 色婷婷国产精品久久包臀| 91免费看片在线观看| 99这里都是精品| av电影天堂一区二区在线观看| 国产成人免费在线观看不卡| 国产不卡视频在线观看| 不卡视频在线观看| 91老师片黄在线观看| 色噜噜狠狠色综合欧洲selulu| 97精品超碰一区二区三区| 99国产精品99久久久久久| 91丨九色丨尤物| 欧美亚洲动漫制服丝袜| 欧美精品色一区二区三区| 91麻豆精品国产91| 欧美va亚洲va| 久久久久久亚洲综合影院红桃| 亚洲国产高清aⅴ视频| 国产精品网站一区| 亚洲精选在线视频| 免费观看在线综合| 韩国理伦片一区二区三区在线播放| 经典一区二区三区| 丁香婷婷综合五月| 91麻豆蜜桃一区二区三区| 欧美日韩专区在线| 精品欧美一区二区久久 | 日韩欧美在线观看一区二区三区| 欧美r级在线观看| 国产精品私人影院| 夜色激情一区二区| 毛片av中文字幕一区二区| 国产成人免费视频网站 | 欧美美女喷水视频| 精品国产乱码久久久久久久久 | 欧美日韩国产免费| 精品久久一区二区| 中文字幕一区二区三区色视频| 亚洲精品免费看| 久久99精品久久久久久国产越南| 国产精品一卡二| 在线精品亚洲一区二区不卡| 日韩欧美亚洲一区二区| 国产亚洲成av人在线观看导航| 中文字幕中文在线不卡住| 亚洲国产日韩精品| 国产精品一区不卡| 欧美精三区欧美精三区 | 亚洲国产日韩一级| 国产精品综合一区二区| 色婷婷综合久久久| 久久婷婷成人综合色| 伊人性伊人情综合网| 久久精品噜噜噜成人88aⅴ| 91麻豆精品视频| 精品国产一区二区三区久久影院| 亚洲黄色片在线观看| 精品伊人久久久久7777人| 91色婷婷久久久久合中文| 久久亚洲欧美国产精品乐播 | 中文字幕不卡在线播放| 天堂在线亚洲视频| 成人国产精品免费网站| 欧美一区二区久久| 一区二区三区在线免费播放| 丰满白嫩尤物一区二区| 欧美一级片在线| 亚洲日韩欧美一区二区在线| 国产激情一区二区三区| 日韩欧美一区二区在线视频| 一区二区三区精品| 97精品久久久久中文字幕| 国产欧美日韩在线视频| 蜜臀av亚洲一区中文字幕| 欧美日韩午夜在线| 亚洲欧美另类图片小说| 成人黄页毛片网站| 久久先锋影音av鲁色资源| 日韩av中文字幕一区二区| 欧美又粗又大又爽| 亚洲柠檬福利资源导航| 成人激情视频网站| 欧美激情一区二区三区| 国产一区不卡在线| 精品国产一区二区三区忘忧草| 日韩av电影天堂| 91精品在线一区二区| 亚洲成人精品在线观看| 欧美网站大全在线观看| 一区二区三区美女视频| 色天使久久综合网天天| ...av二区三区久久精品| 成人精品视频一区二区三区尤物| 久久久久久夜精品精品免费| 精品一区二区综合| 精品国产乱码久久久久久浪潮| 久久99国产精品免费| 日韩欧美亚洲一区二区| 精品午夜久久福利影院| 久久婷婷国产综合精品青草 | 日韩—二三区免费观看av| 欧美日韩国产大片| 五月天婷婷综合| 91精品国产综合久久久蜜臀粉嫩| 五月天亚洲婷婷| 欧美一级精品在线| 国产在线播放一区三区四| 国产欧美精品一区二区色综合朱莉| 韩国精品久久久| 国产精品嫩草99a| 91麻豆蜜桃一区二区三区| 亚洲综合无码一区二区| 欧美日韩一区 二区 三区 久久精品| 亚洲高清久久久| 欧美一区三区二区| 久久精品国产**网站演员| 欧美激情综合网| 91久久国产最好的精华液| 日韩在线一区二区| 欧美zozo另类异族| 成人午夜电影网站| 夜夜操天天操亚洲| 日韩一区二区三区视频| 国产精品一区二区在线看| 中文字幕在线观看不卡视频| 色就色 综合激情| 蜜桃av一区二区三区| 国产日韩综合av| 色中色一区二区| 久久国产人妖系列| 国产精品区一区二区三| 欧美亚洲国产一区在线观看网站| 理论片日本一区| 国产精品久久久久影院老司| 欧美性极品少妇| 国产精品一区二区久久不卡 | 美女久久久精品| 国产亚洲欧洲一区高清在线观看| 91在线云播放| 天使萌一区二区三区免费观看| 久久久久九九视频| 欧美色图12p| 国产精品一卡二| 亚洲成人精品在线观看| 国产欧美日韩另类一区| 欧美性猛交xxxxxxxx| 国产成人午夜视频| 日日摸夜夜添夜夜添精品视频 | 亚洲一区二区三区视频在线| www久久精品| 欧美综合一区二区三区| 国产一级精品在线| 日本欧美加勒比视频| 中文字幕在线不卡| xf在线a精品一区二区视频网站| 欧美无乱码久久久免费午夜一区|