org.jfox.ejb
Class StatefulSessionBucket

java.lang.Object
  extended byorg.jfox.ejb.BucketSupport
      extended byorg.jfox.ejb.SessionBucket
          extended byorg.jfox.ejb.StatefulSessionBucket
All Implemented Interfaces:
Bucket, EJBOperation, SessionOperation

public class StatefulSessionBucket
extends SessionBucket


Field Summary
 
Fields inherited from class org.jfox.ejb.BucketSupport
beanMethods, bucketMeta, homeClassName, homeMethods, interceptors, logger, oidGenerator
 
Constructor Summary
StatefulSessionBucket(BucketMetaData meta)
           
 
Method Summary
 ObjectId createBean(Invocation invocation)
           
 java.lang.Object invokeBean(Invocation invocation)
          执行 Bean 的方法
 java.lang.Object invokeHome(Invocation invocation)
          来自 EJBHome 的方法
 boolean isIdentical(ObjectId thisObjectId, ObjectId thatObjectId)
           
static void main(java.lang.String[] args)
           
 void remove(javax.ejb.EnterpriseBean bean)
           
 void remove(javax.ejb.Handle handle)
          Remove an EJB object identified by its handle.
 void restoreBean(java.lang.Object key, EJBPoolableObject pobj)
           
 EJBPoolableObject retrieveBean(java.lang.Object key)
           
 
Methods inherited from class org.jfox.ejb.SessionBucket
ejbActivate, ejbPassivate, ejbRemove, getHandle, getPrimaryKey, remove, setSessionContext
 
Methods inherited from class org.jfox.ejb.BucketSupport
ejbCreate, getBeanMethod, getEJBClassLoader, getEJBHome, getEJBMetaData, getHomeHandle, getHomeMethod, introspectorBeanMethods, introspectorInterfMethods
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jfox.ejb.EJBOperation
ejbCreate, getEJBHome, getEJBMetaData, getHomeHandle
 

Constructor Detail

StatefulSessionBucket

public StatefulSessionBucket(BucketMetaData meta)
Method Detail

invokeHome

public java.lang.Object invokeHome(Invocation invocation)
                            throws java.lang.Exception
来自 EJBHome 的方法

Parameters:
invocation -
Returns:
Throws:
java.lang.Exception

invokeBean

public java.lang.Object invokeBean(Invocation invocation)
                            throws java.lang.Exception
执行 Bean 的方法

Parameters:
invocation -
Returns:
Throws:
java.lang.Exception

remove

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

remove

public void remove(javax.ejb.Handle handle)
            throws java.rmi.RemoteException,
                   javax.ejb.RemoveException
Description copied from interface: EJBOperation
Remove an EJB object identified by its handle.

Throws:
java.rmi.RemoteException - Thrown when the method failed due to a system-level failure.
javax.ejb.RemoveException - Thrown if the enterprise Bean or the container does not allow the client to remove the object.

isIdentical

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

retrieveBean

public EJBPoolableObject retrieveBean(java.lang.Object key)
Specified by:
retrieveBean in class SessionBucket

restoreBean

public void restoreBean(java.lang.Object key,
                        EJBPoolableObject pobj)
Specified by:
restoreBean in class SessionBucket

createBean

public ObjectId createBean(Invocation invocation)
                    throws java.lang.Exception
Specified by:
createBean in class SessionBucket
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)