org.camunda.bpm.engine.impl
Class TablePageQueryImpl

java.lang.Object
  extended by org.camunda.bpm.engine.impl.TablePageQueryImpl
All Implemented Interfaces:
Serializable, Command<TablePage>, TablePageQuery

public class TablePageQueryImpl
extends Object
implements TablePageQuery, Command<TablePage>, Serializable

Author:
Joram Barrez
See Also:
Serialized Form

Field Summary
protected  int firstResult
           
protected  int maxResults
           
protected  String order
           
protected  String tableName
           
 
Constructor Summary
TablePageQueryImpl()
           
TablePageQueryImpl(CommandExecutor commandExecutor)
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tableName

protected String tableName

order

protected String order

firstResult

protected int firstResult

maxResults

protected int maxResults
Constructor Detail

TablePageQueryImpl

public TablePageQueryImpl()

TablePageQueryImpl

public TablePageQueryImpl(CommandExecutor commandExecutor)
Method Detail

tableName

public TablePageQueryImpl tableName(String tableName)
Description copied from interface: TablePageQuery
The name of the table of which a page must be fetched.

Specified by:
tableName in interface TablePageQuery

orderAsc

public TablePageQueryImpl orderAsc(String column)
Description copied from interface: TablePageQuery
Orders the resulting table page rows by the given column in ascending order.

Specified by:
orderAsc in interface TablePageQuery

orderDesc

public TablePageQueryImpl orderDesc(String column)
Description copied from interface: TablePageQuery
Orders the resulting table page rows by the given column in descending order.

Specified by:
orderDesc in interface TablePageQuery

getTableName

public String getTableName()

addOrder

protected void addOrder(String column,
                        String sortOrder)

listPage

public TablePage listPage(int firstResult,
                          int maxResults)
Description copied from interface: TablePageQuery
Executes the query and returns the TablePage.

Specified by:
listPage in interface TablePageQuery

execute

public TablePage execute(CommandContext commandContext)
Specified by:
execute in interface Command<TablePage>

getOrder

public String getOrder()


Copyright © 2014 camunda services GmbH. All rights reserved.