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

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

?? petstoreannotationimpl.java

?? spring 實現 的 petstore
?? 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一区二区三区免费野_久草精品视频
一本久久综合亚洲鲁鲁五月天 | 亚洲精品综合在线| 高清不卡一二三区| 最新中文字幕一区二区三区| 91麻豆蜜桃一区二区三区| 亚洲精品日产精品乱码不卡| 欧美优质美女网站| 全部av―极品视觉盛宴亚洲| 精品久久五月天| 国产一区二区不卡| 日韩欧美成人一区| 在线精品亚洲一区二区不卡| 色综合久久综合网97色综合| 国产在线精品一区在线观看麻豆| 91精品国产免费| 青青国产91久久久久久| www国产精品av| 国产成人av一区二区| 亚洲日本免费电影| 欧美日韩美少妇| 国产一区二区三区久久悠悠色av| 国产精品美女久久久久久久久 | 中文字幕亚洲视频| 欧美图片一区二区三区| 精品一区二区三区视频在线观看 | 一本久久a久久精品亚洲| 日本系列欧美系列| 欧美午夜电影一区| 亚洲一区欧美一区| 欧美精品成人一区二区三区四区| 精品一区二区av| 亚洲男人电影天堂| 精品国产免费一区二区三区四区| 99久久婷婷国产综合精品| 亚洲成av人片一区二区三区| 久久精品亚洲国产奇米99| 欧美色综合网站| 国产精品99久久久久久似苏梦涵| 亚洲一区在线视频| 国产婷婷色一区二区三区 | 欧美日本一区二区| 国产成人免费在线视频| 午夜电影网亚洲视频| 国产欧美一区二区三区在线看蜜臀 | 欧美一区二区三区视频免费 | 日本在线不卡视频| 亚洲图片欧美激情| 2020国产精品久久精品美国| 欧美视频一区二区三区| 成人性视频免费网站| 麻豆精品精品国产自在97香蕉| 中文字幕一区二区三| 精品欧美乱码久久久久久 | 亚洲精品日产精品乱码不卡| 国产亚洲欧美日韩在线一区| 91精品国产一区二区三区香蕉| 99久久久无码国产精品| 国产成人精品一区二| 久久精品国产99国产精品| 亚洲成av人片在线| 亚洲一级二级三级在线免费观看| 国产精品久久国产精麻豆99网站 | 精品国产一区二区三区久久久蜜月 | 日日夜夜免费精品| 一区二区三区四区在线免费观看| 国产精品久久久久永久免费观看 | 国产在线国偷精品免费看| 亚洲中国最大av网站| 成人欧美一区二区三区1314| 久久精品日韩一区二区三区| 精品国产免费一区二区三区香蕉| 欧美日韩中文字幕一区| 成人精品视频一区| 成人av小说网| 成人一区二区三区视频在线观看| 久久er99精品| 久久精品国产精品亚洲红杏| 精品夜夜嗨av一区二区三区| 狠狠色丁香婷综合久久| 久久99九九99精品| 国产一区二区毛片| av电影在线观看一区| 97久久精品人人做人人爽| 波多野结衣在线一区| 99精品一区二区三区| 欧洲一区二区三区免费视频| 日本精品一区二区三区四区的功能| 色综合久久中文字幕综合网| 欧美婷婷六月丁香综合色| 欧美日韩大陆一区二区| 欧美伦理电影网| 欧美成人精品二区三区99精品| 日韩欧美国产一区二区在线播放 | www.性欧美| 色欧美乱欧美15图片| 91小视频在线| 日本黄色一区二区| 欧美精品丝袜久久久中文字幕| 日韩午夜激情免费电影| 久久久电影一区二区三区| 国产精品电影一区二区三区| 亚洲综合一区在线| 蜜臀久久久99精品久久久久久| 国产福利精品一区二区| 91浏览器入口在线观看| 88在线观看91蜜桃国自产| 久久精品亚洲国产奇米99| 一区二区三区久久久| 七七婷婷婷婷精品国产| 成人免费不卡视频| 欧美亚洲自拍偷拍| 精品成人a区在线观看| 中文无字幕一区二区三区| 亚洲第一二三四区| 国产一区二区在线看| 欧美在线观看一区二区| 久久无码av三级| 亚洲黄色尤物视频| 久热成人在线视频| 93久久精品日日躁夜夜躁欧美| 日韩欧美在线网站| ...av二区三区久久精品| 美女性感视频久久| 成人动漫av在线| 欧美成人三级在线| 亚洲va欧美va人人爽午夜| 国产麻豆精品久久一二三| 欧美日韩一区久久| 国产精品女主播av| 裸体健美xxxx欧美裸体表演| 成人午夜私人影院| 日韩丝袜情趣美女图片| 亚洲激情成人在线| 成人动漫一区二区在线| 久久影院视频免费| 久久电影网电视剧免费观看| 色94色欧美sute亚洲13| 国产精品你懂的在线| 久久国产精品99久久人人澡| 欧美美女一区二区在线观看| 亚洲三级视频在线观看| 国产成人在线视频网址| 日韩欧美成人激情| 日韩**一区毛片| 91成人看片片| 国产精品久久久久婷婷二区次| 精品一二线国产| 91精品国产一区二区三区香蕉| 一区二区三区日韩| 91在线高清观看| 国产精品美女久久久久aⅴ| 国产做a爰片久久毛片| 91精品国产麻豆| 婷婷国产v国产偷v亚洲高清| 在线看日本不卡| 一区二区三区中文字幕电影 | 国产剧情av麻豆香蕉精品| 欧美日韩1区2区| 亚洲小说欧美激情另类| 一本色道a无线码一区v| 成人欧美一区二区三区小说 | 久久狠狠亚洲综合| 欧美一区二区三区白人| 午夜视频久久久久久| 欧美在线一二三四区| 亚洲图片你懂的| 欧美综合久久久| 一区二区三区加勒比av| 欧美午夜电影网| 亚洲第一综合色| 一区二区三区免费网站| 欧美日韩国产一二三| 欧美亚洲动漫制服丝袜| 欧美mv日韩mv| 国产一区二三区| 精品国产第一区二区三区观看体验| 精品中文字幕一区二区小辣椒| 日韩免费观看高清完整版在线观看| 日韩成人一级大片| 日韩欧美国产三级电影视频| 精品一区二区三区久久| 久久综合中文字幕| 成人午夜精品在线| 亚洲品质自拍视频| 欧美午夜精品一区| 免费成人av在线| 国产视频一区不卡| 91在线精品一区二区三区| 亚洲二区在线视频| 欧美一级午夜免费电影| 国产精品一卡二卡| 亚洲精品中文字幕乱码三区| 欧美日韩三级在线| 精彩视频一区二区三区| 中文在线资源观看网站视频免费不卡| 91污片在线观看| 日韩中文字幕av电影| 国产欧美日韩激情| 欧美在线观看一区| 国产一区在线观看麻豆|