org.openejb.test.entity.cmp
Class RmiIiopCmpBean

java.lang.Object
  extended by org.openejb.test.entity.cmp.RmiIiopCmpBean
All Implemented Interfaces:
java.io.Serializable, javax.ejb.EnterpriseBean, javax.ejb.EntityBean

public class RmiIiopCmpBean
extends java.lang.Object
implements javax.ejb.EntityBean

Author:
David Blevins, Richard Monson-Haefel
See Also:
Serialized Form

Field Summary
 javax.ejb.EntityContext ejbContext
           
 java.lang.String firstName
           
static int key
           
 java.lang.String lastName
           
 int primaryKey
           
 
Constructor Summary
RmiIiopCmpBean()
           
 
Method Summary
 void ejbActivate()
          A container invokes this method when the instance is taken out of the pool of available instances to become associated with a specific EJB object.
 java.lang.Integer ejbCreate(java.lang.String name)
          Maps to RmiIiopCmpHome.create
 void ejbLoad()
          A container invokes this method to instruct the instance to synchronize its state by loading it state from the underlying database.
 void ejbPassivate()
          A container invokes this method on an instance before the instance becomes disassociated with a specific EJB object.
 void ejbPostCreate(java.lang.String name)
           
 void ejbRemove()
          A container invokes this method before it removes the EJB object that is currently associated with the instance.
 void ejbStore()
          A container invokes this method to instruct the instance to synchronize its state by storing it to the underlying database.
 java.lang.Boolean returnBooleanObject(java.lang.Boolean data)
           
 java.lang.Boolean[] returnBooleanObjectArray(java.lang.Boolean[] data)
           
 boolean returnBooleanPrimitive(boolean data)
           
 boolean[] returnBooleanPrimitiveArray(boolean[] data)
           
 java.lang.Byte returnByteObject(java.lang.Byte data)
           
 java.lang.Byte[] returnByteObjectArray(java.lang.Byte[] data)
           
 byte returnBytePrimitive(byte data)
           
 byte[] returnBytePrimitiveArray(byte[] data)
           
 java.lang.Character returnCharacterObject(java.lang.Character data)
           
 java.lang.Character[] returnCharacterObjectArray(java.lang.Character[] data)
           
 char returnCharacterPrimitive(char data)
           
 char[] returnCharacterPrimitiveArray(char[] data)
           
 java.lang.Double returnDoubleObject(java.lang.Double data)
           
 java.lang.Double[] returnDoubleObjectArray(java.lang.Double[] data)
           
 double returnDoublePrimitive(double data)
           
 double[] returnDoublePrimitiveArray(double[] data)
           
 javax.ejb.EJBHome returnEJBHome()
           
 javax.ejb.EJBHome returnEJBHome(javax.ejb.EJBHome data)
           
 javax.ejb.EJBHome[] returnEJBHomeArray(javax.ejb.EJBHome[] data)
           
 javax.ejb.EJBMetaData returnEJBMetaData()
           
 javax.ejb.EJBMetaData returnEJBMetaData(javax.ejb.EJBMetaData data)
           
 javax.ejb.EJBMetaData[] returnEJBMetaDataArray(javax.ejb.EJBMetaData[] data)
           
 javax.ejb.EJBObject returnEJBObject()
           
 javax.ejb.EJBObject returnEJBObject(javax.ejb.EJBObject data)
           
 javax.ejb.EJBObject[] returnEJBObjectArray(javax.ejb.EJBObject[] data)
           
 java.lang.Float returnFloatObject(java.lang.Float data)
           
 java.lang.Float[] returnFloatObjectArray(java.lang.Float[] data)
           
 float returnFloatPrimitive(float data)
           
 float[] returnFloatPrimitiveArray(float[] data)
           
 javax.ejb.Handle returnHandle()
           
 javax.ejb.Handle returnHandle(javax.ejb.Handle data)
           
 javax.ejb.Handle[] returnHandleArray(javax.ejb.Handle[] data)
           
 java.lang.Integer returnIntegerObject(java.lang.Integer data)
           
 java.lang.Integer[] returnIntegerObjectArray(java.lang.Integer[] data)
           
 int returnIntegerPrimitive(int data)
           
 int[] returnIntegerPrimitiveArray(int[] data)
           
 java.lang.Long returnLongObject(java.lang.Long data)
           
 java.lang.Long[] returnLongObjectArray(java.lang.Long[] data)
           
 long returnLongPrimitive(long data)
           
 long[] returnLongPrimitiveArray(long[] data)
           
 ObjectGraph returnNestedEJBHome()
           
 ObjectGraph returnNestedEJBMetaData()
           
 ObjectGraph returnNestedEJBObject()
           
 ObjectGraph returnNestedHandle()
           
 ObjectGraph returnObjectGraph(ObjectGraph data)
           
 ObjectGraph[] returnObjectGraphArray(ObjectGraph[] data)
           
 java.lang.Short returnShortObject(java.lang.Short data)
           
 java.lang.Short[] returnShortObjectArray(java.lang.Short[] data)
           
 short returnShortPrimitive(short data)
           
 short[] returnShortPrimitiveArray(short[] data)
           
 java.lang.String returnStringObject(java.lang.String data)
           
 java.lang.String[] returnStringObjectArray(java.lang.String[] data)
           
 void setEntityContext(javax.ejb.EntityContext ctx)
          Set the associated entity context.
 void unsetEntityContext()
          Unset the associated entity context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key

public static int key

primaryKey

public int primaryKey

firstName

public java.lang.String firstName

lastName

public java.lang.String lastName

ejbContext

public javax.ejb.EntityContext ejbContext
Constructor Detail

RmiIiopCmpBean

public RmiIiopCmpBean()
Method Detail

ejbCreate

public java.lang.Integer ejbCreate(java.lang.String name)
                            throws javax.ejb.CreateException
Maps to RmiIiopCmpHome.create

Parameters:
name -
Returns:
Throws:
javax.ejb.CreateException
See Also:
RmiIiopCmpHome.create

ejbPostCreate

public void ejbPostCreate(java.lang.String name)
                   throws javax.ejb.CreateException
Throws:
javax.ejb.CreateException

returnStringObject

public java.lang.String returnStringObject(java.lang.String data)

returnStringObjectArray

public java.lang.String[] returnStringObjectArray(java.lang.String[] data)

returnCharacterObject

public java.lang.Character returnCharacterObject(java.lang.Character data)

returnCharacterPrimitive

public char returnCharacterPrimitive(char data)

returnCharacterObjectArray

public java.lang.Character[] returnCharacterObjectArray(java.lang.Character[] data)

returnCharacterPrimitiveArray

public char[] returnCharacterPrimitiveArray(char[] data)

returnBooleanObject

public java.lang.Boolean returnBooleanObject(java.lang.Boolean data)

returnBooleanPrimitive

public boolean returnBooleanPrimitive(boolean data)

returnBooleanObjectArray

public java.lang.Boolean[] returnBooleanObjectArray(java.lang.Boolean[] data)

returnBooleanPrimitiveArray

public boolean[] returnBooleanPrimitiveArray(boolean[] data)

returnByteObject

public java.lang.Byte returnByteObject(java.lang.Byte data)

returnBytePrimitive

public byte returnBytePrimitive(byte data)

returnByteObjectArray

public java.lang.Byte[] returnByteObjectArray(java.lang.Byte[] data)

returnBytePrimitiveArray

public byte[] returnBytePrimitiveArray(byte[] data)

returnShortObject

public java.lang.Short returnShortObject(java.lang.Short data)

returnShortPrimitive

public short returnShortPrimitive(short data)

returnShortObjectArray

public java.lang.Short[] returnShortObjectArray(java.lang.Short[] data)

returnShortPrimitiveArray

public short[] returnShortPrimitiveArray(short[] data)

returnIntegerObject

public java.lang.Integer returnIntegerObject(java.lang.Integer data)

returnIntegerPrimitive

public int returnIntegerPrimitive(int data)

returnIntegerObjectArray

public java.lang.Integer[] returnIntegerObjectArray(java.lang.Integer[] data)

returnIntegerPrimitiveArray

public int[] returnIntegerPrimitiveArray(int[] data)

returnLongObject

public java.lang.Long returnLongObject(java.lang.Long data)

returnLongPrimitive

public long returnLongPrimitive(long data)

returnLongObjectArray

public java.lang.Long[] returnLongObjectArray(java.lang.Long[] data)

returnLongPrimitiveArray

public long[] returnLongPrimitiveArray(long[] data)

returnFloatObject

public java.lang.Float returnFloatObject(java.lang.Float data)

returnFloatPrimitive

public float returnFloatPrimitive(float data)

returnFloatObjectArray

public java.lang.Float[] returnFloatObjectArray(java.lang.Float[] data)

returnFloatPrimitiveArray

public float[] returnFloatPrimitiveArray(float[] data)

returnDoubleObject

public java.lang.Double returnDoubleObject(java.lang.Double data)

returnDoublePrimitive

public double returnDoublePrimitive(double data)

returnDoubleObjectArray

public java.lang.Double[] returnDoubleObjectArray(java.lang.Double[] data)

returnDoublePrimitiveArray

public double[] returnDoublePrimitiveArray(double[] data)

returnEJBHome

public javax.ejb.EJBHome returnEJBHome(javax.ejb.EJBHome data)

returnEJBHome

public javax.ejb.EJBHome returnEJBHome()
                                throws javax.ejb.EJBException
Throws:
javax.ejb.EJBException

returnNestedEJBHome

public ObjectGraph returnNestedEJBHome()
                                throws javax.ejb.EJBException
Throws:
javax.ejb.EJBException

returnEJBHomeArray

public javax.ejb.EJBHome[] returnEJBHomeArray(javax.ejb.EJBHome[] data)

returnEJBObject

public javax.ejb.EJBObject returnEJBObject(javax.ejb.EJBObject data)

returnEJBObject

public javax.ejb.EJBObject returnEJBObject()
                                    throws javax.ejb.EJBException
Throws:
javax.ejb.EJBException

returnNestedEJBObject

public ObjectGraph returnNestedEJBObject()
                                  throws javax.ejb.EJBException
Throws:
javax.ejb.EJBException

returnEJBObjectArray

public javax.ejb.EJBObject[] returnEJBObjectArray(javax.ejb.EJBObject[] data)

returnEJBMetaData

public javax.ejb.EJBMetaData returnEJBMetaData(javax.ejb.EJBMetaData data)

returnEJBMetaData

public javax.ejb.EJBMetaData returnEJBMetaData()
                                        throws javax.ejb.EJBException
Throws:
javax.ejb.EJBException

returnNestedEJBMetaData

public ObjectGraph returnNestedEJBMetaData()
                                    throws javax.ejb.EJBException
Throws:
javax.ejb.EJBException

returnEJBMetaDataArray

public javax.ejb.EJBMetaData[] returnEJBMetaDataArray(javax.ejb.EJBMetaData[] data)

returnHandle

public javax.ejb.Handle returnHandle(javax.ejb.Handle data)

returnHandle

public javax.ejb.Handle returnHandle()
                              throws javax.ejb.EJBException
Throws:
javax.ejb.EJBException

returnNestedHandle

public ObjectGraph returnNestedHandle()
                               throws javax.ejb.EJBException
Throws:
javax.ejb.EJBException

returnHandleArray

public javax.ejb.Handle[] returnHandleArray(javax.ejb.Handle[] data)

returnObjectGraph

public ObjectGraph returnObjectGraph(ObjectGraph data)

returnObjectGraphArray

public ObjectGraph[] returnObjectGraphArray(ObjectGraph[] data)

ejbLoad

public void ejbLoad()
             throws javax.ejb.EJBException,
                    java.rmi.RemoteException
A container invokes this method to instruct the instance to synchronize its state by loading it state from the underlying database.

Specified by:
ejbLoad in interface javax.ejb.EntityBean
Throws:
javax.ejb.EJBException
java.rmi.RemoteException

setEntityContext

public void setEntityContext(javax.ejb.EntityContext ctx)
                      throws javax.ejb.EJBException,
                             java.rmi.RemoteException
Set the associated entity context. The container invokes this method on an instance after the instance has been created.

Specified by:
setEntityContext in interface javax.ejb.EntityBean
Throws:
javax.ejb.EJBException
java.rmi.RemoteException

unsetEntityContext

public void unsetEntityContext()
                        throws javax.ejb.EJBException,
                               java.rmi.RemoteException
Unset the associated entity context. The container calls this method before removing the instance.

Specified by:
unsetEntityContext in interface javax.ejb.EntityBean
Throws:
javax.ejb.EJBException
java.rmi.RemoteException

ejbStore

public void ejbStore()
              throws javax.ejb.EJBException,
                     java.rmi.RemoteException
A container invokes this method to instruct the instance to synchronize its state by storing it to the underlying database.

Specified by:
ejbStore in interface javax.ejb.EntityBean
Throws:
javax.ejb.EJBException
java.rmi.RemoteException

ejbRemove

public void ejbRemove()
               throws javax.ejb.RemoveException,
                      javax.ejb.EJBException,
                      java.rmi.RemoteException
A container invokes this method before it removes the EJB object that is currently associated with the instance. This method is invoked when a client invokes a remove operation on the enterprise Bean's home interface or the EJB object's remote interface. This method transitions the instance from the ready state to the pool of available instances.

Specified by:
ejbRemove in interface javax.ejb.EntityBean
Throws:
javax.ejb.RemoveException
javax.ejb.EJBException
java.rmi.RemoteException

ejbActivate

public void ejbActivate()
                 throws javax.ejb.EJBException,
                        java.rmi.RemoteException
A container invokes this method when the instance is taken out of the pool of available instances to become associated with a specific EJB object. This method transitions the instance to the ready state.

Specified by:
ejbActivate in interface javax.ejb.EntityBean
Throws:
javax.ejb.EJBException
java.rmi.RemoteException

ejbPassivate

public void ejbPassivate()
                  throws javax.ejb.EJBException,
                         java.rmi.RemoteException
A container invokes this method on an instance before the instance becomes disassociated with a specific EJB object. After this method completes, the container will place the instance into the pool of available instances.

Specified by:
ejbPassivate in interface javax.ejb.EntityBean
Throws:
javax.ejb.EJBException
java.rmi.RemoteException


Copyright © 1999-2011 OpenEJB. All Rights Reserved.