Methods Summary |
---|
public final EJBObjectImpl | createEJBObjectImpl()Create a new EJBObject and new EJB if necessary.
This is called from the generated "HelloEJBHomeImpl" create method.
Return the EJBObject for the bean.
return container.createEJBObjectImpl();
|
public EJBObjectImpl | createRemoteBusinessObjectImpl()
return container.createRemoteBusinessObjectImpl();
|
protected final Container | getContainer()Called from EJBHome implementation.
return container;
|
protected javax.ejb.EJBHome | getEJBHome()Get the EJBHome corresponding to an EJBHomeImpl.
These objects are one and the same when the home is generated,
but distinct in the case of dynamic proxies. Therefore, code can't
assume it can cast an EJBHomeImpl to the EJBHome that
the client uses, and vice-versa. This is overridden in the
InvocationHandler.
return this;
|
public final EJBMetaData | getEJBMetaData()This is the implementation of the javax.ejb.EJBHome method.
container.authorizeRemoteMethod(BaseContainer.EJBHome_getEJBMetaData);
return container.getEJBMetaData();
|
public final HomeHandle | getHomeHandle()This is the implementation of the javax.ejb.EJBHome getHomeHandle
method.
container.authorizeRemoteMethod(BaseContainer.EJBHome_getHomeHandle);
return new HomeHandleImpl(container.getEJBHomeStub());
|
public final void | remove(Handle handle)This is the implementation of the javax.ejb.EJBHome remove method.
container.authorizeRemoteMethod(BaseContainer.EJBHome_remove_Handle);
EJBObject ejbo;
try {
ejbo = handle.getEJBObject();
} catch ( RemoteException ex ) {
_logger.log(Level.FINE, "Exception in method remove()", ex);
NoSuchObjectException nsoe =
new NoSuchObjectException(ex.toString());
nsoe.initCause(ex);
throw nsoe;
}
ejbo.remove();
|
public final void | remove(java.lang.Object primaryKey)This is the implementation of the javax.ejb.EJBHome remove method.
if ( !(container instanceof EntityContainer) ) {
// Session beans dont have primary keys. EJB2.0 Section 6.6
throw new RemoveException("Invalid remove operation.");
}
container.authorizeRemoteMethod(BaseContainer.EJBHome_remove_Pkey);
Method method=null;
try {
method = EJBHome.class.getMethod("remove",
new Class[]{Object.class});
} catch ( NoSuchMethodException e ) {
_logger.log(Level.FINE, "Exception in method remove()", e);
}
((EntityContainer)container).removeBean(primaryKey, method, false);
|
final void | setContainer(BaseContainer c)Called from BaseContainer only.
container = c;
|