|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.redback.redbeansejb.RedBeansEJB | +--com.ibm.redback.redbeansejb.RBEntityEJB
Class that provides main behavior for entity beans.
Field Summary | |
javax.ejb.EntityContext |
ec
|
java.lang.String |
objName
|
RBState |
ourState
|
protected java.util.Vector |
rbNames
|
protected RecordSet |
rs
|
java.lang.String |
sessionId
|
java.lang.String |
URL
|
Fields inherited from class com.ibm.redback.redbeansejb.RedBeansEJB |
sc |
Constructor Summary | |
RBEntityEJB()
|
Method Summary | |
void |
callMethod(java.lang.String methodName)
Calls an RBO method on the RBO Server. |
void |
createObj()
Called when the client wants to create the RBO instance. |
void |
ejbActivate()
ejbActivate - method required for Entity Beans. |
void |
ejbLoad()
ejbLoad - method required for Entity Beans. |
void |
ejbPassivate()
ejbPassivate - method required for Entity Beans. |
void |
ejbRemove()
ejbRemove - method required for Entity Beans. |
void |
ejbStore()
ejbStore - method required for Entity Beans. |
javax.ejb.EntityContext |
getEntityContext()
Returns Entity Contect. |
java.lang.String[] |
getFirstRowMatch(java.lang.String propName,
java.lang.String propVal)
This method gets one row from the already retrieved record set depending on the property name and property value passed. |
boolean |
getIsFirstTime()
Returns boolean value depending on selected RBO is already been created . |
java.lang.String[][] |
getMatchRowDetails(java.lang.String propName,
java.lang.String propVal)
This method gets all the rows matching to the selected criteria from already retrieved record set depending on the property name and property value passed. |
boolean |
getNotFound()
Get the boolean depending on serch result in record set. |
java.lang.String |
getProperty(java.lang.String name)
Gets the property value from the current state. |
RecordSet |
getRecordSet()
Gets the record set current state. |
java.lang.String |
getRsProperty(java.lang.String prop)
Gets the property value from the record set depending on property name selected. |
boolean |
isBOF()
Returns the boolean value depending upon the end of the retrived record set end. |
boolean |
isEOF()
Returns the boolean value depending upon the end of the retrived record set end. |
void |
move(int pos)
This method takes the pointer to the spesific row number in the record set. |
void |
moveFirst()
This method takes the pointer to the first row in the record set. |
void |
moveLast()
This method takes the pointer to the last row in the record set. |
void |
moveNext()
This method takes the pointer to the next row in the record set. |
void |
movePrevious()
This method takes the pointer to the previous row in the record set. |
void |
Refresh()
This method calls select method and gets latest data from the RBO server. |
void |
Select()
Calls method callLookupMethod by passing method name and retrieves the record set. |
void |
setDebugOn(boolean flag)
Sets the debug flag on or off |
void |
setEntityContext(javax.ejb.EntityContext ctx)
Standard EJB method, invoked when the EJB Container instantiates the Entity bean |
void |
setIsFirstTime(boolean isFirstTime)
This method is called when RBO is created for the first time and boolean value is set to false. |
void |
setNotFound(boolean notfound)
This method sets boolean value to true if serch for the property value in the record set fails. |
void |
setProperty(java.lang.String name,
java.lang.String value)
Sets a property with a given value for the current state. |
void |
setRecordSet(RecordSet rs)
Updates current state by setting record set in the current state. |
void |
unsetEntityContext()
Unsets the Entity context by assigning it to null. |
Methods inherited from class com.ibm.redback.redbeansejb.RedBeansEJB |
callMethod, createObj, createObj, getProperty, getRecordSet, getSessionContext, setProperty, setRecordSet, setSessionContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public javax.ejb.EntityContext ec
public java.lang.String objName
public java.lang.String sessionId
public java.lang.String URL
public RBState ourState
protected RecordSet rs
protected java.util.Vector rbNames
Constructor Detail |
public RBEntityEJB()
Method Detail |
public void callMethod(java.lang.String methodName) throws RbException
methodName
- the RBO method to callRbException
- thrown if the RedObject returns an exception or if the client state is not validpublic void createObj() throws RbException
public void ejbActivate()
ejbActivate
in class RedBeansEJB
public void ejbLoad()
public void ejbPassivate()
ejbPassivate
in class RedBeansEJB
public void ejbRemove()
ejbRemove
in class RedBeansEJB
public void ejbStore()
public javax.ejb.EntityContext getEntityContext()
public boolean getIsFirstTime()
public boolean getNotFound()
public java.lang.String getProperty(java.lang.String name) throws RbException
name
- the property nameRbException
- thrown if the property name cannot be foundpublic RecordSet getRecordSet()
name
- the property nameRbException
- thrown if the property name cannot be foundpublic java.lang.String getRsProperty(java.lang.String prop)
name
- the property nameRbException
- thrown if the property name cannot be foundpublic boolean isEOF()
thrown
- error in getting end status.public boolean isBOF()
thrown
- error in getting end status.public void moveNext()
thrown
- if error in moving to the next line in the record set.public void movePrevious()
thrown
- if error in moving to the next line in the record set.public void moveFirst()
thrown
- if error in moving to the next line in the record set.public void moveLast()
thrown
- if error in moving to the next line in the record set.public void move(int pos)
thrown
- if error in moving to the next line in the record set.public void Refresh()
public void Select()
RbException
- thrown if error in getting data.public void setEntityContext(javax.ejb.EntityContext ctx) throws java.rmi.RemoteException
public void setIsFirstTime(boolean isFirstTime)
public void setNotFound(boolean notfound)
public void setProperty(java.lang.String name, java.lang.String value) throws RbException
name
- the property namevalue
- the value to setRbException
- thrown if the property name cannot be foundpublic void setRecordSet(RecordSet rs)
record
- set to be set.public void unsetEntityContext() throws java.rmi.RemoteException
throws
- remote exception.public void setDebugOn(boolean flag)
flag,
- true
will switch on logging, false
will switch it offpublic java.lang.String[] getFirstRowMatch(java.lang.String propName, java.lang.String propVal)
thrown
- if error getting the data.public java.lang.String[][] getMatchRowDetails(java.lang.String propName, java.lang.String propVal)
thrown
- if error getting the data.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |