EJBHome (Java EE 5)

Java EE API


javax.ejb Interface EJBHome

All Superinterfaces:
Remote
All Known Subinterfaces:
ManagementHome

public interface EJBHome
extends Remote

Implements: java.rmi.Remote
Implemented by: ManagementHome

EJBHome 接口必须通过所有企业 Bean 的远程 home 接口扩展。企业 Bean 的远程 home 接口定义了允许远程客户端创建、查找和移除 EJB 对象的方法,以及不特定于 Bean 实例的 home 业务方法(会话 Bean 没有查找器和 home 方法)。

远程 home 接口由企业 Bean 提供者定义,由企业 Bean 容器实现。

英文文档:

The EJBHome interface must be extended by all enterprise Beans' remote home interfaces. An enterprise Bean's remote home interface defines the methods that allow a remote client to create, find, and remove EJB objects, as well as home business methods that are not specific to a bean instance (Session Beans do not have finders and home methods).

The remote home interface is defined by the enterprise Bean provider and implemented by the enterprise Bean container.


Method Summary
 EJBMetaData
 HomeHandle
 void
 void
 

Method Detail

public void remove(Handle handle) throws java.rmi.RemoteException, RemoveException
移除由其句柄标识的 EJB 对象。
ThrowsRemoveException: 如果企业 Bean 或容器不允许客户端移除该对象,则抛出该异常。
Throwsjava.rmi.RemoteException: 方法由于系统级失败而失败时抛出该异常。
英文文档:

remove

void remove(Handle handle)
            throws RemoteException,
                   RemoveException
Remove an EJB object identified by its handle.

Throws:
RemoveException - Thrown if the enterprise Bean or the container does not allow the client to remove the object.
RemoteException - Thrown when the method failed due to a system-level failure.

public void remove(Object primaryKey) throws java.rmi.RemoteException, RemoveException
移除由其主键标识的 EJB 对象。

此方法仅用于实体 Bean。试图对会话 Bean 调用此方法将导致 RemoveException。

ThrowsRemoveException: 如果企业 Bean 或容器不允许客户端移除该对象,则抛出该异常。
Throwsjava.rmi.RemoteException: 方法由于系统级失败而失败时抛出该异常。

英文文档:

remove

void remove(Object primaryKey)
            throws RemoteException,
                   RemoveException
Remove an EJB object identified by its primary key.

This method can be used only for an entity bean. An attempt to call this method on a session bean will result in a RemoveException.

Throws:
RemoveException - Thrown if the enterprise Bean or the container does not allow the client to remove the object.
RemoteException - Thrown when the method failed due to a system-level failure.

public EJBMetaData getEJBMetaData() throws java.rmi.RemoteException
获得企业 Bean 的 EJBMetaData 接口。EJBMetaData 接口允许客户端获得关于企业 Bean 的信息。

通过 EJBMetaData 接口获得的信息将由工具使用。

return 企业 Bean 的 EJBMetaData 接口。
Throwsjava.rmi.RemoteException: 方法由于系统级失败而失败时抛出该异常。

英文文档:

getEJBMetaData

EJBMetaData getEJBMetaData()
                           throws RemoteException
Obtain the EJBMetaData interface for the enterprise Bean. The EJBMetaData interface allows the client to obtain information about the enterprise Bean.

The information obtainable via the EJBMetaData interface is intended to be used by tools.

Returns:
The enterprise Bean's EJBMetaData interface.
Throws:
RemoteException - Thrown when the method failed due to a system-level failure.

public HomeHandle getHomeHandle() throws java.rmi.RemoteException
获得远程 home 对象的句柄。句柄可以随后用于重新获得对远程 home 对象的引用,可能是在不同的 Java 虚拟机中。
return 远程 home 对象的句柄。
Throwsjava.rmi.RemoteException: 方法由于系统级失败而失败时抛出该异常。
英文文档:

getHomeHandle

HomeHandle getHomeHandle()
                         throws RemoteException
Obtain a handle for the remote home object. The handle can be used at later time to re-obtain a reference to the remote home object, possibly in a different Java Virtual Machine.

Returns:
A handle for the remote home object.
Throws:
RemoteException - Thrown when the method failed due to a system-level failure.


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!