|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
定义和 EJBObject,EJBHome 相对应的方法 EJBHome 的方法可以直接继承,但是 EJBObject 里面的方法需要重新定义
| Method Summary | |
void |
ejbCreate(javax.ejb.EnterpriseBean bean,
java.lang.String createMethod,
java.lang.Object[] args)
|
javax.ejb.EJBHome |
getEJBHome()
|
javax.ejb.EJBMetaData |
getEJBMetaData()
Obtain the EJBMetaData interface for the enterprise Bean. |
javax.ejb.Handle |
getHandle(javax.ejb.EnterpriseBean obj)
|
javax.ejb.HomeHandle |
getHomeHandle()
Obtain a handle for the remote home object. |
java.lang.Object |
getPrimaryKey(javax.ejb.EnterpriseBean obj)
|
boolean |
isIdentical(ObjectId thisObjectId,
ObjectId thatObjectId)
|
void |
remove(javax.ejb.EnterpriseBean bean)
|
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. |
| Method Detail |
public java.lang.Object getPrimaryKey(javax.ejb.EnterpriseBean obj)
throws java.rmi.RemoteException
java.rmi.RemoteException
public javax.ejb.Handle getHandle(javax.ejb.EnterpriseBean obj)
throws java.rmi.RemoteException
java.rmi.RemoteException
public boolean isIdentical(ObjectId thisObjectId,
ObjectId thatObjectId)
throws java.rmi.RemoteException
java.rmi.RemoteException
public void remove(javax.ejb.EnterpriseBean bean)
throws java.rmi.RemoteException,
javax.ejb.RemoveException
java.rmi.RemoteException
javax.ejb.RemoveException
public javax.ejb.EJBHome getEJBHome()
throws java.rmi.RemoteException
java.rmi.RemoteException
public void ejbCreate(javax.ejb.EnterpriseBean bean,
java.lang.String createMethod,
java.lang.Object[] args)
throws java.rmi.RemoteException
java.rmi.RemoteException
public void remove(javax.ejb.Handle handle)
throws java.rmi.RemoteException,
javax.ejb.RemoveException
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 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.
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 javax.ejb.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.
public javax.ejb.HomeHandle getHomeHandle()
throws java.rmi.RemoteException
java.rmi.RemoteException - Thrown when the method failed due to a
system-level failure.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||