All Packages Class Hierarchy This Package Previous Next Index
Interface javax.ejb.EJBHome
- public interface interface EJBHome
- extends Remote
The EJBHome interface is an interface that is extended by all enterprise
bean's home interfaces. An enterprise bean's home interface defines the
methods that allow a client to create, find, and destroy EJB objects.
Each enterprise bean has a home interface. The home interface must
extend the javax.ejb.EJBHome interface, and define the enterprise bean
type specific create and finder methods (session beans do not have finders).
The home interface is defined by the enterprise bean provider and
implemented by the enterprise bean container.
-
destroy(Handle)
- Destroy an EJB object identified by its handle.
-
destroy(Object)
- Destroy an EJB object identified by its primary key.
-
getEJBMetaData()
- Obtain the EJBMetaData interface for the enterprise bean.
destroy
public abstract void destroy(Handle handle) throws RemoteException, DestroyException
- Destroy an EJB object identified by its handle.
- Throws: DestroyException
- Thrown if the enterprise bean or
the container does not allow the client to destroy the object.
- Throws: RemoteException
- Thrown when the method failed due to a
system-level failure.
- Throws: DestroyException
- The enterprise bean or the container
does not allow destruction of the object.
destroy
public abstract void destroy(Object primaryKey) throws RemoteException, DestroyException
- Destroy an EJB object identified by its primary key.
- Throws: DestroyException
- Thrown if the enterprise bean or
the container does not allow the client to destroy the object.
- Throws: RemoteException
- Thrown when the method failed due to a
system-level failure.
- Throws: DestroyException
- The enterprise bean or the container
does not allow destruction of the object.
getEJBMetaData
public abstract 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.
All Packages Class Hierarchy This Package Previous Next Index