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

📄 productmanagerimpl.java

📁 Struts数据库项目中的一个实例
💻 JAVA
字号:
package com.relationinfo.service.impl;import java.util.List;import com.relationinfo.model.Product;import com.relationinfo.dao.ProductDAO;import com.relationinfo.service.ProductManager;public class ProductManagerImpl extends BaseManager implements ProductManager {    private ProductDAO dao;    /**     * Set the DAO for communication with the data layer.     * @param dao     */    public void setProductDAO(ProductDAO dao) {        this.dao = dao;    }    /**     * @see com.relationinfo.service.ProductManager#getProducts(com.relationinfo.model.Product)     */    public List getProducts(final Product product) {        return dao.getProducts(product);    }    /**     * @see com.relationinfo.service.ProductManager#getProduct(String productid)     */    public Product getProduct(final String productid) {        return dao.getProduct(new String(productid));    }    /**     * @see com.relationinfo.service.ProductManager#saveProduct(Product product)     */    public void saveProduct(Product product) {        dao.saveProduct(product);    }    /**     * @see com.relationinfo.service.ProductManager#removeProduct(String productid)     */    public void removeProduct(final String productid) {        dao.removeProduct(new String(productid));    }}

⌨️ 快捷键说明

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