inventoryservice.java
来自「用JAVA编写的EJB」· Java 代码 · 共 31 行
JAVA
31 行
package oracle.toplink.jpa.example.inventory.services;
import java.util.Collection;
import oracle.toplink.jpa.example.inventory.nonentity.Category;
import oracle.toplink.jpa.example.inventory.model.Inventory;
import oracle.toplink.jpa.example.inventory.model.Order;
/**
* This class provides the interface point for the 'InventoryService'. The
* implemenation of the OrderService accesses the persistence store and
* provides the caller with data about the Inventory in the system.
*
* @author Gordon Yorke
*/
public interface InventoryService {
/**
* Returns a list of available item categories. The Categories are not
* entities but is a summary of data available.
*/
public Collection<Category> getCategories();
/**
* Returns a list items for the specified category with Quantitieg less than
* or equal to the provided int value.
*/
public Collection<Inventory> getInventoryForCategoryMaxQuantity(String category, int quantity);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?