public interface EJBHome extends 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 enterprise bean object identified by its handle.
|
void |
remove(Object primaryKey)
Remove an enterprise bean object identified by its primary key.
|
void remove(Handle handle) throws RemoteException, RemoveException
handle
- the handle of the enterprise bean object to be removedRemoveException
- 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.void remove(Object primaryKey) throws 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 enterprise bean object to be removedRemoveException
- 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.EJBMetaData getEJBMetaData() throws RemoteException
The information obtainable via the EJBMetaData interface is intended to be used by tools.
RemoteException
- Thrown when the method failed due to a system-level failure.HomeHandle getHomeHandle() throws RemoteException
RemoteException
- Thrown when the method failed due to a system-level failure.Copyright © 2018, 2020 Eclipse Foundation.
Use is subject to license terms.