org.activiti
Class TablePage

java.lang.Object
  extended by org.activiti.TablePage

public class TablePage
extends java.lang.Object

Data structure used for retrieving database table content.

Author:
Tom Baeyens, Joram Barrez

Field Summary
protected  SortOrder order
          The order on which the sortkey/column is sorted (asc/desc)
protected  java.util.List<java.util.Map<java.lang.String,java.lang.Object>> rowData
          The actual content of the database table, stored as a list of mappings of the form {colum name, value}.
protected  java.lang.String sort
          Indicates the key or column on which the data is sorted.
protected  long start
          Identifies the index of the first result stored in this TablePage.
protected  java.lang.String tableName
           
protected  long total
          The total number of rows in the table.
 
Constructor Summary
TablePage()
           
TablePage(java.lang.String tableName, long start, long total, java.util.List<java.util.Map<java.lang.String,java.lang.Object>> rowData)
           
 
Method Summary
 SortOrder getOrder()
           
 java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getRows()
           
 long getSize()
           
 java.lang.String getSort()
           
 long getStart()
           
 java.lang.String getTableName()
           
 long getTotal()
           
 void setOrder(SortOrder order)
           
 void setRows(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> rowData)
           
 void setSort(java.lang.String sort)
           
 void setStart(long start)
           
 void setTableName(java.lang.String tableName)
           
 void setTotal(long total)
           
 
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

total

protected long total
The total number of rows in the table.


start

protected long start
Identifies the index of the first result stored in this TablePage. For example in a paginated database table, this value identifies the record number of the result on the first row.


sort

protected java.lang.String sort
Indicates the key or column on which the data is sorted.


order

protected SortOrder order
The order on which the sortkey/column is sorted (asc/desc)


rowData

protected java.util.List<java.util.Map<java.lang.String,java.lang.Object>> rowData
The actual content of the database table, stored as a list of mappings of the form {colum name, value}. This means that every map object in the list corresponds with one row in the database table.

Constructor Detail

TablePage

public TablePage()

TablePage

public TablePage(java.lang.String tableName,
                 long start,
                 long total,
                 java.util.List<java.util.Map<java.lang.String,java.lang.Object>> rowData)
Method Detail

getTableName

public java.lang.String getTableName()

setTableName

public void setTableName(java.lang.String tableName)

getStart

public long getStart()
Returns:
the start index of this page (ie the index of the first element in the page)

setStart

public void setStart(long start)

setRows

public void setRows(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> rowData)

getRows

public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getRows()
Returns:
the actual table content.

setTotal

public void setTotal(long total)

getTotal

public long getTotal()
Returns:
the total rowcount of the table from which this page is only a subset.

getSize

public long getSize()
Returns:
the actual number of rows in this page.

getSort

public java.lang.String getSort()

setSort

public void setSort(java.lang.String sort)

getOrder

public SortOrder getOrder()

setOrder

public void setOrder(SortOrder order)


Copyright © 2010 Alfresco. All Rights Reserved.