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

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

?? petstoreimpl.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;

/**
 * JPetStore primary business object.
 * 
 * <p>This object makes use of five DAO objects, decoupling it
 * from the details of working with persistence APIs. Thus
 * although this application uses iBATIS for data access,
 * another 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.) 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
 * 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 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,
 * as in the default applicationContext.xml in the war/WEB-INF directory.
 *
 * <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);
	}

}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
voyeur盗摄精品| 日韩视频一区二区在线观看| 91精品久久久久久久99蜜桃| 久久久久久毛片| 亚洲一区自拍偷拍| 国产乱码精品一品二品| 精品视频资源站| 综合在线观看色| 国产精品99精品久久免费| 欧美午夜片在线看| 日韩伦理免费电影| 国产91富婆露脸刺激对白| 欧美精品 日韩| 亚洲欧美电影一区二区| 福利电影一区二区| 久久午夜国产精品| 蜜桃av一区二区| 91精品国产综合久久久久久漫画 | 国产精品综合一区二区| 欧美精品国产精品| 亚洲成av人在线观看| kk眼镜猥琐国模调教系列一区二区| 精品久久久久99| 三级久久三级久久| 欧美日本不卡视频| 日韩制服丝袜先锋影音| 欧美日韩中文国产| 日韩精品色哟哟| 欧美精品一卡二卡| 日韩成人午夜电影| 欧美日韩国产综合视频在线观看| 亚洲一区二区三区四区五区黄| 91在线视频免费91| 亚洲另类一区二区| 欧美亚洲国产一区二区三区| 亚洲卡通欧美制服中文| 91成人在线观看喷潮| 亚洲一区二区欧美激情| 欧美专区在线观看一区| 亚洲国产成人va在线观看天堂| 欧美视频完全免费看| 一区二区三区色| 在线观看av一区二区| 午夜国产精品一区| 精品日韩一区二区| 国产.欧美.日韩| 亚洲女人****多毛耸耸8| 欧美日韩一区中文字幕| 免费久久99精品国产| 久久精品视频在线免费观看| 国产成人啪免费观看软件| 26uuu国产日韩综合| 不卡免费追剧大全电视剧网站| 亚洲乱码中文字幕| 91精品国产入口| 国产成人精品一区二区三区四区| 国产精品欧美一区喷水| 色综合色狠狠综合色| 日韩影院在线观看| 国产日产欧美精品一区二区三区| 91在线无精精品入口| 日韩av在线免费观看不卡| 久久精品夜夜夜夜久久| 在线精品视频小说1| 久久99精品国产| 亚洲天堂成人在线观看| 日韩一区二区三区三四区视频在线观看| 国产在线精品免费| 亚洲永久免费视频| 久久久久久久综合狠狠综合| 91精彩视频在线| 国产美女娇喘av呻吟久久| 亚洲视频综合在线| 日韩精品专区在线| 在线观看三级视频欧美| 粉嫩13p一区二区三区| 亚洲图片一区二区| 欧美国产精品劲爆| 日韩三级.com| 色av一区二区| 国产成人在线视频免费播放| 亚洲国产wwwccc36天堂| 国产精品色噜噜| 日韩精品一区二区三区三区免费| 91碰在线视频| 国产成人av电影在线| 蜜臀av一区二区三区| 一区二区在线观看免费 | 欧美久久高跟鞋激| 国产成人精品综合在线观看 | 国产一区在线看| 亚洲高清免费在线| 亚洲少妇30p| 国产肉丝袜一区二区| 欧美一区二区三区免费| 欧美亚洲综合久久| 99久久久国产精品| 成人影视亚洲图片在线| 久久国产日韩欧美精品| 日本不卡的三区四区五区| 亚洲一区在线电影| 亚洲精品视频一区二区| 国产精品美女久久久久av爽李琼| 久久综合九色综合97_久久久| 日韩丝袜美女视频| 欧美一区二区视频免费观看| 欧美日本一区二区三区四区| 在线观看av不卡| 欧美自拍偷拍午夜视频| 91豆麻精品91久久久久久| 91免费看视频| 色欧美日韩亚洲| 在线观看视频一区| 777亚洲妇女| 日韩一级片在线观看| 日韩精品在线一区| 337p日本欧洲亚洲大胆色噜噜| 欧美一卡在线观看| 精品国产91洋老外米糕| 国产日韩欧美一区二区三区综合| 久久久无码精品亚洲日韩按摩| 精品国产乱码久久久久久图片| 日韩欧美一区在线观看| 欧美videos大乳护士334| 精品不卡在线视频| 日本一区二区电影| 亚洲欧美偷拍卡通变态| 亚洲激情av在线| 视频一区视频二区中文| 久久精品国产精品亚洲综合| 国产精品综合网| 91一区二区三区在线观看| 欧美日韩中文另类| 2021中文字幕一区亚洲| 成人欧美一区二区三区视频网页| 亚洲欧美一区二区三区久本道91| 亚洲电影一区二区| 老司机精品视频线观看86| 国产精品一区二区久激情瑜伽 | 精品一区二区在线播放| 国产suv精品一区二区6| 99久久精品免费| 欧美高清你懂得| 日韩精品一区二区三区中文精品| 日本一区二区三区四区在线视频 | 国产亚洲综合在线| 一区二区三区加勒比av| 美女性感视频久久| 成人性生交大合| 欧美日韩一区久久| 久久久另类综合| 亚洲国产精品欧美一二99| 久久国产生活片100| 日本韩国一区二区| 日韩欧美123| 亚洲精品中文字幕在线观看| 久久丁香综合五月国产三级网站| av一区二区三区黑人| 日韩欧美激情在线| 亚洲乱码中文字幕| 国内精品伊人久久久久av一坑 | 欧美va日韩va| 一区二区成人在线视频| 国产精品538一区二区在线| 欧美日韩午夜在线视频| 中文字幕乱码一区二区免费| 日韩av电影天堂| 91尤物视频在线观看| 久久久亚洲精品石原莉奈| 日韩精品久久久久久| 91国偷自产一区二区开放时间| 久久久久久久久99精品| 日韩不卡一区二区| 欧美性感一区二区三区| 国产精品久久毛片av大全日韩| 久色婷婷小香蕉久久| 欧美视频中文一区二区三区在线观看| 国产欧美日韩在线| 国产主播一区二区| 欧美一级日韩不卡播放免费| 亚洲国产综合91精品麻豆| heyzo一本久久综合| 国产亚洲精品7777| 精品一区精品二区高清| 日韩三级精品电影久久久| 首页综合国产亚洲丝袜| 欧美日韩在线直播| 亚洲福利视频三区| 欧美日韩中文字幕一区二区| 一区二区成人在线| 欧美日韩性生活| 亚洲成av人综合在线观看| 欧美系列亚洲系列| 丝袜亚洲另类丝袜在线| 欧美视频中文一区二区三区在线观看| 亚洲精品日产精品乱码不卡| 91精品福利在线| 亚洲成人免费在线| 91精品国产一区二区人妖| 日本午夜一本久久久综合|