productdao.java
来自「Struts数据库项目中的一个实例」· Java 代码 · 共 38 行
JAVA
38 行
package com.relationinfo.dao;import java.util.List;import com.relationinfo.model.Product;public interface ProductDAO extends DAO { /** * Retrieves all of the products */ public List getProducts(Product product); /** * Gets product's information based on primary key. An * ObjectRetrievalFailureException Runtime Exception is thrown if * nothing is found. * * @param productid the product's productid * @return product populated product object */ public Product getProduct(final String productid); /** * Saves a product's information * @param product the object to be saved */ public void saveProduct(Product product); /** * Removes a product from the database by productid * @param productid the product's productid */ public void removeProduct(final String productid);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?