public interface EJBHome
extends java.rmi.Remote
The remote home interface is defined by the enterprise bean provider and implemented by the enterprise bean container.
Enterprise beans written to the EJB 3.0 and later APIs do not require a home interface.
Modifier and Type | Method and Description |
---|---|
EJBMetaData |
getEJBMetaData()
Obtain the EJBMetaData interface for the enterprise bean.
|
HomeHandle |
getHomeHandle()
Obtain a handle for the remote home object.
|
void |
remove(Handle handle)
Remove an EJB object identified by its handle.
|
void |
remove(java.lang.Object primaryKey)
Remove an EJB object identified by its primary key.
|
void remove(Handle handle) throws java.rmi.RemoteException, RemoveException
handle
- the handle of the EJB object to be removedRemoveException
- Thrown if the enterprise bean or
the container does not allow the client to remove the object.java.rmi.RemoteException
- Thrown when the method failed due to a
system-level failure.void remove(java.lang.Object primaryKey) throws java.rmi.RemoteException, RemoveException
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.
Note: Support for entity beans is optional as of EJB 3.2.
primaryKey
- the primary key of the EJB object to be removedRemoveException
- Thrown if the enterprise bean or
the container does not allow the client to remove the object.java.rmi.RemoteException
- Thrown when the method failed due to a
system-level failure.EJBMetaData getEJBMetaData() throws java.rmi.RemoteException
The information obtainable via the EJBMetaData interface is intended to be used by tools.
java.rmi.RemoteException
- Thrown when the method failed due to a
system-level failure.HomeHandle getHomeHandle() throws java.rmi.RemoteException
java.rmi.RemoteException
- Thrown when the method failed due to a
system-level failure.