orderstatuslocalhome.java

来自「《J2EE企业级应用开发》一书的配套源代码」· Java 代码 · 共 37 行

JAVA
37
字号
package com.j2eeapp.cdstore.order;

import javax.ejb.*;
import com.j2eeapp.cdstore.vo.OrderStatus;
import java.util.Collection;

public interface OrderStatusLocalHome extends EJBLocalHome
{
    
    public static final String ORDER_STATUS_PASSED="passed";
    public static final String ORDER_STATUS_ISSHIPPED="shipped";
    public static final String ORDER_STATUS_NOTCOMFIRMED="notconfirm";
    public static final String ORDER_STATUS_CONFIRMED="confirmed";
    public static final String ORDER_STATUS_CANCELED="cancel";
    /**
     * @J2EE_METHOD  --  create
     * Called by the client to create an EJB bean instance. It requires a matching pair in
     * the bean class, i.e. ejbCreate().
     * @throws javax.ejb.CreateException
     */
    public OrderStatusLocal create    (OrderStatus orderStatus) 
                throws CreateException;
    
    /**
     * @J2EE_METHOD  --  findByPrimaryKey
     * Called by the client to find an EJB bean instance, usually find by primary key.
     * @throws javax.ejb.FinderException
     */
    public OrderStatusLocal findByPrimaryKey    (String primaryKey) 
                throws FinderException;
    public Collection findAllUncomfirmedOrders(String status)throws FinderException;
    public Collection findAllComfirmedOrders(String status)throws FinderException;
    public Collection findAllPassedOrders(String status)throws FinderException;
    public Collection findAllShippedOrders(String status)throws FinderException;
    public Collection findAllCanceledOrders(String status)throws FinderException;
    
  }

⌨️ 快捷键说明

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