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, wait
addWorkflowInstance, clearWorkflowInstances, getNumWorkflowInstances, getNumWorkflowInstancesByStatus, getWorkflowInstanceById, getWorkflowInstances, getWorkflowInstancesByStatus, removeWorkflowInstance, updateWorkflowInstance
public AbstractPaginatibleInstanceRepository()
public WorkflowInstancePage getFirstPage()
getFirstPage
in interface Pagination
ProductType
.public WorkflowInstancePage getLastPage()
getLastPage
in interface Pagination
ProductType
.public WorkflowInstancePage getNextPage(WorkflowInstancePage currentPage)
getNextPage
in interface Pagination
currentPage
- The current page that tells the function what the next page to
obtain is.public WorkflowInstancePage getPrevPage(WorkflowInstancePage currentPage)
getPrevPage
in interface Pagination
currentPage
- The currentPage that tells the function what the previous page
to obtain is.public WorkflowInstancePage getPagedWorkflows(int pageNum) throws InstanceRepositoryException
Pagination
getPagedWorkflows
in interface Pagination
pageNum
- 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
Pagination
getPagedWorkflows
in interface Pagination
pageNum
- The WorkflowInstancePage
number to get.status
- Identifies which WorkflowInstance
set to paginate,
e.g., only WorkflowInstance
s 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
- InstanceRepositoryException
protected abstract List paginateWorkflows(int pageNum, String status) throws InstanceRepositoryException
pageNum
- status
- InstanceRepositoryException
Copyright © 1999–2017 Apache OODT. All rights reserved.