com.ibm.redback.redbeans
Class RedSet

java.lang.Object
  |
  +--com.ibm.redback.redbeans.RedSet

public class RedSet
extends java.lang.Object

This class is used to create a storage object to save state on the java client. It does not communicate to the RBO Server It is passed an initial list of fields and from then on can add/set values for these fields


Constructor Summary
RedSet()
           
 
Method Summary
 void addNew()
          Adds new row to the redset without setting any values.
 void addNew(java.lang.String[] fieldList, java.lang.String[] values)
          Adds values passed to corresponding field names.
 void close()
          will close the storage arrays and set all values to null
 void delete()
          Deletes the current row
 int getAbsolutePosition()
           
 int getFieldPos(java.lang.String field)
           
 int getNumItems()
           
 java.lang.String getProperty(java.lang.String fieldName)
           
 boolean isBOF()
           
 boolean isEOF()
           
 void move(int pos)
           
 void moveFirst()
          moves the row cursor to the first position in this RedSet
 void moveLast()
          moves the row cursor to the last position in this RedSet
 void moveNext()
           
 void movePrevious()
           
 void open(java.lang.String fieldList)
          Initialises data stores in RedSet.
 void setProperty(java.lang.String field, java.lang.String value)
          set the field to the specified value for the current row
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RedSet

public RedSet()
Method Detail

open

public void open(java.lang.String fieldList)
Initialises data stores in RedSet. Allocates a storoage array for each field name passed.
Parameters:
fieldList - a comma delimitied array of field names

addNew

public void addNew()
Adds new row to the redset without setting any values. Positions the rowno ready for setProperty calls

close

public void close()
will close the storage arrays and set all values to null

addNew

public void addNew(java.lang.String[] fieldList,
                   java.lang.String[] values)
Adds values passed to corresponding field names. The field name(s) must be one the field names passed in the open method call
Parameters:
fieldList - name(s) of field to update with passed value
values - the value to update

setProperty

public void setProperty(java.lang.String field,
                        java.lang.String value)
set the field to the specified value for the current row
Parameters:
field - the field name to set
value - the value to set it to

getFieldPos

public int getFieldPos(java.lang.String field)
Parameters:
field - the specified field name

moveFirst

public void moveFirst()
moves the row cursor to the first position in this RedSet

moveLast

public void moveLast()
moves the row cursor to the last position in this RedSet

isBOF

public boolean isBOF()

isEOF

public boolean isEOF()

getNumItems

public int getNumItems()

getProperty

public java.lang.String getProperty(java.lang.String fieldName)
Parameters:
propertyName - the field name to return for the current row

delete

public void delete()
Deletes the current row

getAbsolutePosition

public int getAbsolutePosition()

moveNext

public void moveNext()

move

public void move(int pos)

movePrevious

public void movePrevious()