org.apache.tapestry.contrib.table.model.sql
Class SqlTableModel

java.lang.Object
  |
  +--org.apache.tapestry.contrib.table.model.sql.SqlTableModel
All Implemented Interfaces:
ITableModel, Serializable

public class SqlTableModel
extends Object
implements ITableModel, Serializable

Version:
$Id: SqlTableModel.java,v 1.1 2003/03/05 23:03:20 hlship Exp $
Author:
mindbridge
See Also:
Serialized Form

Constructor Summary
SqlTableModel(ISqlTableDataSource objDataSource, SqlTableColumnModel objColumnModel)
           
SqlTableModel(ISqlTableDataSource objDataSource, SqlTableColumnModel objColumnModel, SimpleTableState objState)
           
 
Method Summary
 ITableColumnModel getColumnModel()
          Method getColumnModel.
 Iterator getCurrentPageRows()
          Method getCurrentPageRows.
 int getPageCount()
          Method getPageCount.
 ITablePagingState getPagingState()
          Method getPagingState.
 ITableSortingState getSortingState()
          Method getSortingState.
 SqlTableColumnModel getSqlColumnModel()
           
 ISqlTableDataSource getSqlDataSource()
          Returns the dataSource.
 SimpleTableState getState()
          Returns the tableState.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SqlTableModel

public SqlTableModel(ISqlTableDataSource objDataSource,
                     SqlTableColumnModel objColumnModel)

SqlTableModel

public SqlTableModel(ISqlTableDataSource objDataSource,
                     SqlTableColumnModel objColumnModel,
                     SimpleTableState objState)
Method Detail

getColumnModel

public ITableColumnModel getColumnModel()
Description copied from interface: ITableModel
Method getColumnModel.
Specified by:
getColumnModel in interface ITableModel
See Also:
ITableModel.getColumnModel()

getSqlColumnModel

public SqlTableColumnModel getSqlColumnModel()

getCurrentPageRows

public Iterator getCurrentPageRows()
Description copied from interface: ITableModel
Method getCurrentPageRows.
Specified by:
getCurrentPageRows in interface ITableModel
See Also:
ITableModel.getCurrentPageRows()

getPageCount

public int getPageCount()
Description copied from interface: ITableModel
Method getPageCount.
Specified by:
getPageCount in interface ITableModel
See Also:
ITableModel.getPageCount()

getPagingState

public ITablePagingState getPagingState()
Description copied from interface: ITableModel
Method getPagingState.
Specified by:
getPagingState in interface ITableModel
See Also:
ITableModel.getPagingState()

getSortingState

public ITableSortingState getSortingState()
Description copied from interface: ITableModel
Method getSortingState.
Specified by:
getSortingState in interface ITableModel
See Also:
ITableModel.getSortingState()

getState

public SimpleTableState getState()
Returns the tableState.
Returns:
SimpleTableState

getSqlDataSource

public ISqlTableDataSource getSqlDataSource()
Returns the dataSource.
Returns:
ISqlTableDataSource