|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.redback.redbeansejb.RedBeansEJB
Class that provides main behaviour for stateless and stateful session beans. Note that stateful classes should extend RedBeansSFEJB
Field Summary | |
javax.ejb.SessionContext |
sc
|
Constructor Summary | |
RedBeansEJB()
|
Method Summary | |
RBState |
callMethod(RBState ourState,
java.lang.String methodName)
Calls an RBO method on the RBO Server. |
RBState |
createObj(java.lang.String objName,
java.lang.String URL)
Called when the client wants to create the RBO instance. |
RBState |
createObj(java.lang.String objName,
java.lang.String URL,
java.lang.String sessionId)
|
void |
ejbActivate()
Required but not used with Session Beans |
void |
ejbPassivate()
Required but not used with Session Beans |
void |
ejbRemove()
Standard EJB method, invoked when the EJB Container removes the Session Bean |
java.lang.String |
getProperty(RBState ourState,
java.lang.String name)
This method returns the current value for the property name passed. |
RecordSet |
getRecordSet(RBState ourState)
This method returns the record set from current state. |
javax.ejb.SessionContext |
getSessionContext()
|
RBState |
setProperty(RBState ourState,
java.lang.String name,
java.lang.String value)
Sets a property with a given value for the passed client state. |
RBState |
setRecordSet(RBState ourState,
RecordSet rs)
This method returns the record set from the current rbo state. |
void |
setSessionContext(javax.ejb.SessionContext sc)
Standard EJB method, invoked when the EJB Container instantiates the Session Bean |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public javax.ejb.SessionContext sc
Constructor Detail |
public RedBeansEJB()
Method Detail |
public RBState callMethod(RBState ourState, java.lang.String methodName) throws RbException
ourRbSession
- current client statemethodName
- the RBO method to callRbException
- thrown if the RedObject returns an exception or if the client state
is not validpublic RBState createObj(java.lang.String objName, java.lang.String URL) throws RbException
objName
- the name of the RBO, module:objectnameURL
- the URL for the RedBack account, either the full URL or RedBack account name if
using JRGWRbException
- thrown if open failspublic RBState createObj(java.lang.String objName, java.lang.String URL, java.lang.String sessionId) throws RbException
public void ejbActivate()
public void ejbPassivate()
public void ejbRemove()
public RBState setRecordSet(RBState ourState, RecordSet rs)
ourState
- the current staters
- the current recordSetpublic RecordSet getRecordSet(RBState ourState)
current
- state is passed to the method.public java.lang.String getProperty(RBState ourState, java.lang.String name) throws RbException
ourState
- the current RBO state for this instancename
- the property nameRbException
- thrown if the property name cannot be foundpublic javax.ejb.SessionContext getSessionContext()
public RBState setProperty(RBState ourState, java.lang.String name, java.lang.String value) throws RbException
ourState
- current client statename
- the property namevalue
- the value to setRbException
- thrown if the property name cannot be foundpublic void setSessionContext(javax.ejb.SessionContext sc)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |