Class TablePage
java.lang.Object
org.camunda.bpm.engine.management.TablePage
Data structure used for retrieving database table content.
- Author:
- Tom Baeyens, Joram Barrez
-
Field Summary
Modifier and TypeFieldDescriptionprotected long
Identifies the index of the first result stored in this TablePage.The actual content of the database table, stored as a list of mappings of the form {colum name, value}.protected String
protected long
The total number of rows in the table. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getRows()
long
getSize()
long
getTotal()
void
setFirstResult
(long firstResult) void
void
setTableName
(String tableName) void
setTotal
(long total)
-
Field Details
-
tableName
-
total
protected long totalThe total number of rows in the table. -
firstResult
protected long firstResultIdentifies 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. -
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 Details
-
TablePage
public TablePage()
-
-
Method Details
-
getTableName
-
setTableName
-
getFirstResult
public long getFirstResult()- Returns:
- the start index of this page (ie the index of the first element in the page)
-
setFirstResult
public void setFirstResult(long firstResult) -
setRows
-
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.
-