com.scooterframework.builtin.databrowser
Class TableSqlPageListSource

java.lang.Object
  extended by com.scooterframework.orm.misc.PageListSource
      extended by com.scooterframework.orm.misc.SqlPageListSourceImpl
          extended by com.scooterframework.builtin.databrowser.TableSqlPageListSource

public class TableSqlPageListSource
extends SqlPageListSourceImpl

TableSqlPageListSource class retrieves paged record list for a specific table. Finder SQL query is derived from the table.

Finder SQL query example:

                SELECT * FROM employees
 


Field Summary
protected  java.lang.String tableName
           
 
Fields inherited from class com.scooterframework.orm.misc.SqlPageListSourceImpl
connName, finderSql
 
Fields inherited from class com.scooterframework.orm.misc.PageListSource
inputOptions, limit, log, offset, recordList, recount, totalCount
 
Constructor Summary
TableSqlPageListSource(java.lang.String connName, java.lang.String tableName)
          Constructs a TableSqlPageListSource object.
 
Method Summary
protected  java.util.List<RowData> retrieveList()
          Retrieves list of records.
 
Methods inherited from class com.scooterframework.orm.misc.SqlPageListSourceImpl
countTotalRecords
 
Methods inherited from class com.scooterframework.orm.misc.PageListSource
checkOffset, execute, getLimitX, getOffset, getRecordList, getTotalCount, setInputs, setLimit, setOffset, setRecount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tableName

protected java.lang.String tableName
Constructor Detail

TableSqlPageListSource

public TableSqlPageListSource(java.lang.String connName,
                              java.lang.String tableName)
Constructs a TableSqlPageListSource object. If database connection name connName is empty, default connection as defined in database properties file is used.

Parameters:
connName - database connection name.
tableName - table name.
Method Detail

retrieveList

protected java.util.List<RowData> retrieveList()
Description copied from class: PageListSource
Retrieves list of records.

Overrides:
retrieveList in class SqlPageListSourceImpl
Returns:
list of records