|
JSlim |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gtcgroup.jslim.JSlimEJBHome
This class implements EJBHome in order to override methods throwing a RemoteException or RemoveException. If an exception is thrown, all cached objects are discarded preventing further use. The typical scenario supported is the unavailability of a previously available remote resource.
Copyright (c) 1999 - 2004 by
Global Technology Consulting Group, Inc. at gtcGroup.com.
Use is authorized, provided the source is acknowledged by inclusion of this copyright notice.
Field Summary | |
private javax.ejb.EJBHome |
ejbHome
The EJBHome interface must be extended by all enterprise Beans' remote home interfaces. |
private int |
intUrlSelected
Identifies which of the descriptor document URLs were used to obtain the initial context for the instantiation of this object. |
Constructor Summary | |
JSlimEJBHome()
Constructor. |
|
JSlimEJBHome(javax.ejb.EJBHome ejbHome,
int intUrlSelected)
Constructor. |
Method Summary | |
javax.ejb.EJBMetaData |
getEJBMetaData()
Obtain the EJBMetaData interface for the enterprise Bean. |
javax.ejb.HomeHandle |
getHomeHandle()
Obtain a handle for the remote home object. |
int |
getUrlSelected()
Identifies which of the descriptor document URLs were used to obtain the initial context for the instantiation of this object. |
void |
remove(javax.ejb.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. |
private static void |
rethrowRemoteException(java.rmi.RemoteException e)
|
private static void |
rethrowRemoveException(javax.ejb.RemoveException e)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private final javax.ejb.EJBHome ejbHome
private final int intUrlSelected
Constructor Detail |
public JSlimEJBHome()
public JSlimEJBHome(javax.ejb.EJBHome ejbHome, int intUrlSelected)
ejbHome
- The EJBHome interface must be extended by all enterprise
Beans' remote home interfaces.intUrlSelected
- Identifies which of the descriptor document URLs were used
to obtain the initial context for the instantiation of this object.Method Detail |
public final int getUrlSelected()
getUrlSelected
in interface IJSlimCachable
public final void remove(java.lang.Object primaryKey) throws java.rmi.RemoteException, javax.ejb.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 RemoteException.
remove
in interface javax.ejb.EJBHome
javax.ejb.RemoveException
- 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.public final javax.ejb.EJBMetaData getEJBMetaData() throws java.rmi.RemoteException
The information obtainable via the EJBMetaData interface is intended to be used by tools.
getEJBMetaData
in interface javax.ejb.EJBHome
java.rmi.RemoteException
- Thrown when the method failed due to a
system-level failure.public final void remove(javax.ejb.Handle handle) throws java.rmi.RemoteException, javax.ejb.RemoveException
remove
in interface javax.ejb.EJBHome
javax.ejb.RemoveException
- 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.public final javax.ejb.HomeHandle getHomeHandle() throws java.rmi.RemoteException
getHomeHandle
in interface javax.ejb.EJBHome
java.rmi.RemoteException
- Thrown when the method failed due to a
system-level failure.private static void rethrowRemoteException(java.rmi.RemoteException e) throws java.rmi.RemoteException
java.rmi.RemoteException
private static void rethrowRemoveException(javax.ejb.RemoveException e) throws javax.ejb.RemoveException
javax.ejb.RemoveException
|
JSlim |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 1999 - 2004 by Global Technology Consulting Group, Inc. at gtcGroup.com.
Use is authorized, provided the source is acknowledged by inclusion of this copyright notice.