org.omnaest.utils.structure.table.datasource
Class TableDataSourceResultSet<E>

java.lang.Object
  extended by org.omnaest.utils.structure.table.datasource.TableDataSourceResultSet<E>
Type Parameters:
E -
All Implemented Interfaces:
TableDataSource<E>

public class TableDataSourceResultSet<E>
extends Object
implements TableDataSource<E>

TableDataSource for a given ResultSet

Author:
Omnaest

Field Summary
protected  ResultSet resultSet
           
 
Constructor Summary
TableDataSourceResultSet(ResultSet resultSet)
           
 
Method Summary
 List<Object> getColumnTitleValueList()
          Returns a new List with all the Table.Stripe.getTitleValue() for the TableDataSource.
 List<Object> getRowTitleValueList()
          Returns a new List with all the Table.Stripe.getTitleValue() for the TableDataSource.
 Object getTableName()
          Returns the name for the whole TableDataSource.
 Iterable<? extends Iterable<? extends Table.CellImmutable<E>>> rows()
          Iterable of an Iterable for the Tables Table.Rows and the Table.Rows Table.CellImmutables.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resultSet

protected ResultSet resultSet
Constructor Detail

TableDataSourceResultSet

public TableDataSourceResultSet(ResultSet resultSet)
Parameters:
resultSet -
Method Detail

rows

public Iterable<? extends Iterable<? extends Table.CellImmutable<E>>> rows()
Description copied from interface: TableDataSource
Iterable of an Iterable for the Tables Table.Rows and the Table.Rows Table.CellImmutables.

Specified by:
rows in interface TableDataSource<E>
Returns:

getColumnTitleValueList

public List<Object> getColumnTitleValueList()
Description copied from interface: TableDataSource
Returns a new List with all the Table.Stripe.getTitleValue() for the TableDataSource.

Specified by:
getColumnTitleValueList in interface TableDataSource<E>
Returns:

getRowTitleValueList

public List<Object> getRowTitleValueList()
Description copied from interface: TableDataSource
Returns a new List with all the Table.Stripe.getTitleValue() for the TableDataSource.

Specified by:
getRowTitleValueList in interface TableDataSource<E>
Returns:

getTableName

public Object getTableName()
Description copied from interface: TableDataSource
Returns the name for the whole TableDataSource.

Specified by:
getTableName in interface TableDataSource<E>
Returns:


Copyright © 2011. All Rights Reserved.