gov.ornl.csed.csiir.idr.kdd.dataservice.server.models
Class ResultSetResponse.ListSet.ListSetRow

java.lang.Object
  extended by gov.ornl.csed.csiir.idr.kdd.dataservice.server.models.ResultSetResponse.ListSet.ListSetRow
All Implemented Interfaces:
java.lang.Iterable<ResultSetResponse.ListSet.ListSetCell>
Enclosing class:
ResultSetResponse.ListSet

public static class ResultSetResponse.ListSet.ListSetRow
extends java.lang.Object
implements java.lang.Iterable<ResultSetResponse.ListSet.ListSetCell>

The ListSetRow class represents a row in the ListSet and allows iteration over the cell values in the row.


Method Summary
 java.util.Date getDate(int columnIndex)
          Retrieve the Java Date representation of the cell value for a supplied column index.
 java.lang.Double getDouble(int columnIndex)
          Retrieve the Java Double representation of the cell value for a supplied column index.
 java.lang.Float getFloat(int columnIndex)
          Retrieve the Java Float representation of the cell value for a supplied column index.
 java.lang.Integer getInteger(int columnIndex)
          Retrieve the Java Integer representation of the cell value for a supplied column index.
 java.lang.Long getLong(int columnIndex)
          Retrieve the Java Long representation of the cell value for a supplied column index.
 java.lang.Object getObject(int columnIndex)
          Retrieve the Java Object representation of the cell value for a supplied column index.
 java.lang.String getString(int columnIndex)
          Retrieve the Java String representation of the cell value for a supplied column index.
 java.util.Iterator<ResultSetResponse.ListSet.ListSetCell> iterator()
          Retrieve an iterator over the cell values.
 int size()
          Retrieve the size of the row.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

size

public int size()
Retrieve the size of the row.

Returns:
the size of the row

getObject

public java.lang.Object getObject(int columnIndex)
                           throws java.lang.IndexOutOfBoundsException
Retrieve the Java Object representation of the cell value for a supplied column index.

Parameters:
columnIndex - the column index
Returns:
the Java Object representation of the cell value
Throws:
java.lang.IndexOutOfBoundsException

getString

public java.lang.String getString(int columnIndex)
                           throws java.lang.IndexOutOfBoundsException
Retrieve the Java String representation of the cell value for a supplied column index.

Parameters:
columnIndex - the column index
Returns:
the Java Object representation of the cell value
Throws:
java.lang.IndexOutOfBoundsException

getInteger

public java.lang.Integer getInteger(int columnIndex)
                             throws java.lang.IndexOutOfBoundsException
Retrieve the Java Integer representation of the cell value for a supplied column index.

Parameters:
columnIndex - the column index
Returns:
the Java Integer representation of the cell value
Throws:
java.lang.IndexOutOfBoundsException

getLong

public java.lang.Long getLong(int columnIndex)
                       throws java.lang.IndexOutOfBoundsException
Retrieve the Java Long representation of the cell value for a supplied column index.

Parameters:
columnIndex - the column index
Returns:
the Java Long representation of the cell value
Throws:
java.lang.IndexOutOfBoundsException

getFloat

public java.lang.Float getFloat(int columnIndex)
                         throws java.lang.IndexOutOfBoundsException
Retrieve the Java Float representation of the cell value for a supplied column index.

Parameters:
columnIndex - the column index
Returns:
the Java Float representation of the cell value
Throws:
java.lang.IndexOutOfBoundsException

getDouble

public java.lang.Double getDouble(int columnIndex)
                           throws java.lang.IndexOutOfBoundsException
Retrieve the Java Double representation of the cell value for a supplied column index.

Parameters:
columnIndex - the column index
Returns:
the Java Double representation of the cell value
Throws:
java.lang.IndexOutOfBoundsException

getDate

public java.util.Date getDate(int columnIndex)
                       throws java.lang.IndexOutOfBoundsException,
                              java.text.ParseException
Retrieve the Java Date representation of the cell value for a supplied column index.

Parameters:
columnIndex - the column index
Returns:
the Java Date representation of the cell value
Throws:
java.lang.IndexOutOfBoundsException
java.text.ParseException

iterator

public java.util.Iterator<ResultSetResponse.ListSet.ListSetCell> iterator()
Retrieve an iterator over the cell values.

Specified by:
iterator in interface java.lang.Iterable<ResultSetResponse.ListSet.ListSetCell>
See Also:
Iterable.iterator()