org.apache.manifoldcf.core.database
Class RRow

java.lang.Object
  extended by org.apache.manifoldcf.core.database.RRow
All Implemented Interfaces:
IResultRow

public class RRow
extends java.lang.Object
implements IResultRow

This class represents a result row.


Field Summary
static java.lang.String _rcsid
           
protected  java.util.Map rowData
           
 
Constructor Summary
RRow()
           
 
Method Summary
 int getColumnCount()
          Obtain the number of columns in the row.
 java.util.Iterator getColumns()
          Obtain the set of columns for a row.
 java.lang.Object getValue(java.lang.String columnName)
          Get the row value for a column.
 void put(java.lang.String name, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_rcsid

public static final java.lang.String _rcsid
See Also:
Constant Field Values

rowData

protected java.util.Map rowData
Constructor Detail

RRow

public RRow()
Method Detail

put

public void put(java.lang.String name,
                java.lang.Object value)

getColumnCount

public int getColumnCount()
Obtain the number of columns in the row.

Specified by:
getColumnCount in interface IResultRow
Returns:
the number of columns that row contains.

getColumns

public java.util.Iterator getColumns()
Obtain the set of columns for a row.

Specified by:
getColumns in interface IResultRow
Returns:
an iterator that will list all the (String) column names stored in that row.

getValue

public java.lang.Object getValue(java.lang.String columnName)
Get the row value for a column.

Specified by:
getValue in interface IResultRow
Parameters:
columnName - is the name of the column.
Returns:
the value, or null if not present.