public class TablePageQueryImpl extends Object implements TablePageQuery, Command<TablePage>, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected int |
firstResult |
protected int |
maxResults |
protected String |
order |
protected String |
tableName |
| Constructor and Description |
|---|
TablePageQueryImpl() |
TablePageQueryImpl(CommandExecutor commandExecutor) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addOrder(String column,
String sortOrder) |
TablePage |
execute(CommandContext commandContext) |
String |
getOrder() |
String |
getTableName() |
TablePage |
listPage(int firstResult,
int maxResults)
Executes the query and returns the
TablePage. |
TablePageQueryImpl |
orderAsc(String column)
Orders the resulting table page rows by the given column in ascending order.
|
TablePageQueryImpl |
orderDesc(String column)
Orders the resulting table page rows by the given column in descending order.
|
TablePageQueryImpl |
tableName(String tableName)
The name of the table of which a page must be fetched.
|
protected String tableName
protected String order
protected int firstResult
protected int maxResults
public TablePageQueryImpl()
public TablePageQueryImpl(CommandExecutor commandExecutor)
public TablePageQueryImpl tableName(String tableName)
TablePageQuerytableName in interface TablePageQuerypublic TablePageQueryImpl orderAsc(String column)
TablePageQueryorderAsc in interface TablePageQuerypublic TablePageQueryImpl orderDesc(String column)
TablePageQueryorderDesc in interface TablePageQuerypublic String getTableName()
public TablePage listPage(int firstResult, int maxResults)
TablePageQueryTablePage.listPage in interface TablePageQuerypublic TablePage execute(CommandContext commandContext)
public String getOrder()
Copyright © 2019. All rights reserved.