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)
TablePageQuery
tableName
in interface TablePageQuery
public TablePageQueryImpl orderAsc(String column)
TablePageQuery
orderAsc
in interface TablePageQuery
public TablePageQueryImpl orderDesc(String column)
TablePageQuery
orderDesc
in interface TablePageQuery
public String getTableName()
public TablePage listPage(int firstResult, int maxResults)
TablePageQuery
TablePage
.listPage
in interface TablePageQuery
public TablePage execute(CommandContext commandContext)
public String getOrder()
Copyright © 2020. All rights reserved.