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

📄 accounthome.java

📁 EJB_原代码多例-好好东西啊
💻 JAVA
字号:
package com.wiley.compBooks.roman.entity.account;

import javax.ejb.*;
import java.rmi.RemoteException;
import java.util.Enumeration;

/**
 * This is the home interface for Account.  This interface is
 * implemented by the EJB Server's glue-code tools - the
 * implemented object is called the Home Object, and serves as
 * a factory for EJB Objects.
 *
 * We define a single create() method is in this home interface,
 * which corresponds to the ejbCreate() method in AccountBean.
 */
public interface AccountHome extends EJBHome {

   /**
    * This method creates the EJB Object.
    *
    * Notice that the Home Interface returns a Remote Interface,
    * whereas the Bean returns a PK.
    *
    * @param accountID The number of the account (unique)
    * @param ownerName The name of the person who owns the account
    *
    * @return The newly created EJB Object.
    */
   Account create(String accountID, String ownerName) throws CreateException, RemoteException;

   /**
    * Finds a Account by its primary Key (Account ID)
    */
   public Account findByPrimaryKey(AccountPK key) throws FinderException, RemoteException;

   /**
    * Finds a Account by its owner's name (assume there is only 1)
    */
   public Enumeration findByOwnerName(String name) throws FinderException, RemoteException;
}

⌨️ 快捷键说明

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