dvrun
Class rtList

java.lang.Object
  extended by dvrun.rtList

public class rtList
extends java.lang.Object

Calls the list runtime via JNI. For the most part the methods correspond to the list_xxxx() functions in TRIMpl where xxxx is the method name. The exceptions (because of typing) are list_curr() and list_read(). They are now called currTYPE and readTYPE where currently TYPE can be Int or String.


Constructor Summary
rtList(rtDV rt)
          Allocate and initialize.
 
Method Summary
 void close()
          Close the list.
 java.lang.String colnam(int column)
          Return column name.
 int cols()
          Return number of columns.
 int colwid(int column)
          Return column width.
 int currInt(int column)
          Return data from current item (row).
 java.lang.Object currObj(int column)
          Return data from current item (row).
 java.lang.Object[] currRow()
          Return a row of data from current item (row).
 java.lang.String currString(int column)
          Return data from current item (row).
 void dup()
          Duplicate the current item (row).
 int eos()
          Return End-Of-Scan status.
protected  void finalize()
           
 void mod(int action, java.lang.Object[] valueArray)
          Modify (insert/update/delete) current row.
 void modcol(int column, java.lang.Object value)
          Modify a column.
 void more(int maxRows, int resetFirst)
          Load more data.
 int next()
          Advance one position.
 void open(java.lang.String openString, int maxRows)
          Open a list.
 int pos()
          Return current position.
 int prev()
          Backup one position.
 int readInt(int column)
          Return data from current item (row) and advance.
 java.lang.Object readObj(int column)
          Return data from current item (row) and advance.
 java.lang.Object[] readRow()
          Return a row of data from current item (row) and advance.
 java.lang.String readString(int column)
          Return data from current item (row) and advance.
 int rows()
          Return number of rows.
 void seek(int row)
          Seek to a new position.
 java.lang.String toString()
          Returns a string with some basic list information.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

rtList

public rtList(rtDV rt)
       throws rtException
Allocate and initialize.

Throws:
rtException
Method Detail

open

public void open(java.lang.String openString,
                 int maxRows)
          throws rtException
Open a list.

Throws:
rtException

close

public void close()
Close the list.


rows

public int rows()
         throws rtException
Return number of rows.

Throws:
rtException

cols

public int cols()
         throws rtException
Return number of columns.

Throws:
rtException

pos

public int pos()
        throws rtException
Return current position.

Throws:
rtException

eos

public int eos()
        throws rtException
Return End-Of-Scan status.

Throws:
rtException

next

public int next()
         throws rtException
Advance one position.

Throws:
rtException

prev

public int prev()
         throws rtException
Backup one position.

Throws:
rtException

colnam

public java.lang.String colnam(int column)
                        throws rtException
Return column name.

Throws:
rtException

colwid

public int colwid(int column)
           throws rtException
Return column width.

Throws:
rtException

currObj

public java.lang.Object currObj(int column)
                         throws rtException
Return data from current item (row).

Throws:
rtException

currInt

public int currInt(int column)
            throws rtException
Return data from current item (row).

Throws:
rtException

currString

public java.lang.String currString(int column)
                            throws rtException
Return data from current item (row).

Throws:
rtException

currRow

public java.lang.Object[] currRow()
                           throws rtException
Return a row of data from current item (row).

Throws:
rtException

readObj

public java.lang.Object readObj(int column)
                         throws rtException
Return data from current item (row) and advance.

Throws:
rtException

readInt

public int readInt(int column)
            throws rtException
Return data from current item (row) and advance.

Throws:
rtException

readString

public java.lang.String readString(int column)
                            throws rtException
Return data from current item (row) and advance.

Throws:
rtException

readRow

public java.lang.Object[] readRow()
                           throws rtException
Return a row of data from current item (row) and advance.

Throws:
rtException

more

public void more(int maxRows,
                 int resetFirst)
          throws rtException
Load more data.

Throws:
rtException

seek

public void seek(int row)
          throws rtException
Seek to a new position.

Throws:
rtException

mod

public void mod(int action,
                java.lang.Object[] valueArray)
         throws rtException
Modify (insert/update/delete) current row.

Throws:
rtException

modcol

public void modcol(int column,
                   java.lang.Object value)
            throws rtException
Modify a column.

Throws:
rtException

dup

public void dup()
         throws rtException
Duplicate the current item (row).

Throws:
rtException

toString

public java.lang.String toString()
Returns a string with some basic list information.

Overrides:
toString in class java.lang.Object

finalize

protected void finalize()
Overrides:
finalize in class java.lang.Object