org.jfox.ejb
Interface EJBOperation

All Known Subinterfaces:
Bucket, SessionOperation
All Known Implementing Classes:
BucketSupport, SessionBucket

public interface EJBOperation

定义和 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

getPrimaryKey

public java.lang.Object getPrimaryKey(javax.ejb.EnterpriseBean obj)
                               throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getHandle

public javax.ejb.Handle getHandle(javax.ejb.EnterpriseBean obj)
                           throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

isIdentical

public boolean isIdentical(ObjectId thisObjectId,
                           ObjectId thatObjectId)
                    throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

remove

public void remove(javax.ejb.EnterpriseBean bean)
            throws java.rmi.RemoteException,
                   javax.ejb.RemoveException
Throws:
java.rmi.RemoteException
javax.ejb.RemoveException

getEJBHome

public javax.ejb.EJBHome getEJBHome()
                             throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

ejbCreate

public void ejbCreate(javax.ejb.EnterpriseBean bean,
                      java.lang.String createMethod,
                      java.lang.Object[] args)
               throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

remove

public void remove(javax.ejb.Handle handle)
            throws java.rmi.RemoteException,
                   javax.ejb.RemoveException
Remove an EJB object identified by its handle.

Throws:
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.

remove

public void remove(java.lang.Object primaryKey)
            throws java.rmi.RemoteException,
                   javax.ejb.RemoveException
Remove an EJB object identified by its primary key.

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.

Throws:
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.

getEJBMetaData

public javax.ejb.EJBMetaData getEJBMetaData()
                                     throws java.rmi.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:
java.rmi.RemoteException - Thrown when the method failed due to a system-level failure.

getHomeHandle

public javax.ejb.HomeHandle getHomeHandle()
                                   throws java.rmi.RemoteException
Obtain a handle for the remote home object. The handle can be used at later time to re-obtain a reference to the remote home object, possibly in a different Java Virtual Machine.

Returns:
A handle for the remote home object.
Throws:
java.rmi.RemoteException - Thrown when the method failed due to a system-level failure.