|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.redback.redbeans.RecordSet
This class is used to create a uQuery object. Once created, selects, next page, previous page, etc. can be requested from the instance. If requested, this instance will take care of a lookup automatically, displaying the contents in a lookup frame.
Constructor Summary | |
RecordSet(RedObject obj)
holds a RedObject for communication to RBO server |
Method Summary | |
int |
getAbsolutePage()
Gets the current page number |
int |
getAbsolutePosition()
Gets the current row position |
java.util.Vector |
getColumns()
returns vector of column names if in RPC Mode |
protected java.lang.String |
getHiddenField(java.lang.String fldName)
|
java.lang.String |
getHidFields()
Get non-null hidden-field values and return as a string in the format 'name=value&name=value ..etc' |
int |
getMaxPages()
|
java.util.Hashtable |
getMonitorData()
Gets the content of of the monitor property/value data repository. |
int |
getNumItems()
Gets the count of number of items selected. |
int |
getPageSize()
Gets the no of items per page . |
java.lang.String |
getProperty(java.lang.String propertyName)
Gets the field name for current row. |
java.util.Vector |
getPropertyNames()
Gets the property names. |
int |
getRelativePosition()
Gets the current row position relative to the current page |
java.lang.String |
getRow()
Gets the dada for the selected row. |
java.util.Vector |
getRPCRow()
|
boolean |
isBOF()
Returns boolean value depending on begining of the record set. |
boolean |
isEOF()
Returns boolean value depending on end of the record set. |
boolean |
isMonitorOn()
Gets current status of monitor flag. |
void |
move(int pos)
moves row number (cursor) to specified position. |
void |
moveFirst()
moves the current row position to 1 |
void |
moveLast()
moves the current row position to the last row |
void |
moveNext()
moves row number (cursor) forward 1. |
boolean |
moveNextPage()
Moves this RecordSet to the next page |
void |
movePrevious()
moves row number (cursor) back 1. |
boolean |
movePrevPage()
Moves this RecordSet to the previous page |
void |
refresh(java.lang.String objHandle)
Refreshes state from RBO Server and sets data to page one, you can then use the move(int pos)
method to set row number as required |
void |
setAbsolutePage(int pageNumber)
gets a specific page and also sets row number and relative row number |
void |
setAllPropertyNames()
Sets all the Property Names.by detting display fielads. |
void |
setAllRPCValues(java.lang.String serverReply)
Sets RPC values. |
void |
setHidFields(java.lang.String serverReply)
Set all Hidden-fields from server reply |
void |
setMonitorOn(boolean flag)
Sets the performance monitor. |
void |
setProperty(java.lang.String propertyName,
java.lang.String value)
Set current value for a given property name. |
java.lang.String |
URLDecode(java.lang.String str)
This method decodes the given urlencoded string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RecordSet(RedObject obj)
Method Detail |
public boolean isBOF()
public boolean isEOF()
public void moveFirst()
public void moveLast()
public void moveNext()
true
If another page is required will request that pagepublic void move(int pos)
true
,
if before row 1 will set BOF to true
If another page is required will request that pagepos
- the row number positionpublic java.util.Vector getColumns()
public void movePrevious()
true
If another page is required will request that pagepublic int getNumItems()
public int getAbsolutePosition()
public int getAbsolutePage()
public boolean moveNextPage()
public boolean movePrevPage()
public int getMaxPages()
public int getPageSize()
public java.util.Vector getPropertyNames()
public java.lang.String getProperty(java.lang.String propertyName)
propertyName
- the field name to return for the current rowpublic java.lang.String getHidFields()
public void setMonitorOn(boolean flag)
flag
- to specify whether or not the performance monitor should be switched on/offpublic boolean isMonitorOn()
public void setAbsolutePage(int pageNumber)
pageNumber
- the page number requiredpublic void setHidFields(java.lang.String serverReply)
serverReply
- the reply string from RBO serverpublic java.util.Hashtable getMonitorData()
protected java.lang.String getHiddenField(java.lang.String fldName)
fldName
- the name of the hidden fieldpublic java.lang.String URLDecode(java.lang.String str) throws RbException
str
- the url-encoded stringpublic java.lang.String getRow() throws RbException
rowNo
- the row number to return - starts from 1RbException
- thrown if at EOF or BOF or cannot decode resultant stringpublic java.util.Vector getRPCRow()
public int getRelativePosition()
public void refresh(java.lang.String objHandle)
move(int pos)
method to set row number as requiredobjHandle
- which would have been preserved from the RedObject RBOHandlepublic void setAllRPCValues(java.lang.String serverReply)
serverReply
- public void setAllPropertyNames()
public void setProperty(java.lang.String propertyName, java.lang.String value)
propertyName
- relates to a property defined in the RBOvalue
- the current value of the property
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |