public abstract class AbstractPaginatibleInstanceRepository extends Object implements WorkflowInstanceRepository
Describe your class here
.| Modifier and Type | Field and Description |
|---|---|
protected int |
pageSize |
X_POINT_ID| Constructor and Description |
|---|
AbstractPaginatibleInstanceRepository() |
| Modifier and Type | Method and Description |
|---|---|
WorkflowInstancePage |
getFirstPage() |
WorkflowInstancePage |
getLastPage() |
WorkflowInstancePage |
getNextPage(WorkflowInstancePage currentPage) |
WorkflowInstancePage |
getPagedWorkflows(int pageNum)
|
WorkflowInstancePage |
getPagedWorkflows(int pageNum,
String status)
|
WorkflowInstancePage |
getPrevPage(WorkflowInstancePage currentPage) |
protected List |
paginateWorkflows(int pageNum) |
protected abstract List |
paginateWorkflows(int pageNum,
String status) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddWorkflowInstance, clearWorkflowInstances, getNumWorkflowInstances, getNumWorkflowInstancesByStatus, getWorkflowInstanceById, getWorkflowInstances, getWorkflowInstancesByStatus, removeWorkflowInstance, updateWorkflowInstancepublic AbstractPaginatibleInstanceRepository()
public WorkflowInstancePage getFirstPage()
getFirstPage in interface PaginationProductType.public WorkflowInstancePage getLastPage()
getLastPage in interface PaginationProductType.public WorkflowInstancePage getNextPage(WorkflowInstancePage currentPage)
getNextPage in interface PaginationcurrentPage - The current page that tells the function what the next page to
obtain is.public WorkflowInstancePage getPrevPage(WorkflowInstancePage currentPage)
getPrevPage in interface PaginationcurrentPage - The currentPage that tells the function what the previous page
to obtain is.public WorkflowInstancePage getPagedWorkflows(int pageNum) throws InstanceRepositoryException
PaginationgetPagedWorkflows in interface PaginationpageNum - The WorkflowInstancePage number to get.WorkflowInstancePage with the given status, and page
number.InstanceRepositoryException - If any error occurs.public WorkflowInstancePage getPagedWorkflows(int pageNum, String status) throws InstanceRepositoryException
PaginationgetPagedWorkflows in interface PaginationpageNum - The WorkflowInstancePage number to get.status - Identifies which WorkflowInstance set to paginate,
e.g., only WorkflowInstances with a given status.WorkflowInstancePage with the given status, and page
number.InstanceRepositoryException - If any error occurs.protected List paginateWorkflows(int pageNum) throws InstanceRepositoryException
pageNum - InstanceRepositoryExceptionprotected abstract List paginateWorkflows(int pageNum, String status) throws InstanceRepositoryException
pageNum - status - InstanceRepositoryExceptionCopyright © 1999–2017 Apache OODT. All rights reserved.