Class PaginatedDataList
java.lang.Object
com.ibatis.sqlmap.engine.mapping.statement.PaginatedDataList
- All Implemented Interfaces:
PaginatedList,Iterable,Collection,List
Deprecated.
All paginated list features have been deprecated
The Class PaginatedDataList.
-
Constructor Summary
ConstructorsConstructorDescriptionPaginatedDataList(SqlMapExecutor sqlMapExecutor, String statementName, Object parameterObject, int pageSize) Deprecated.Instantiates a new paginated data list. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.booleanDeprecated.booleanaddAll(int index, Collection c) Deprecated.booleanaddAll(Collection c) Deprecated.voidclear()Deprecated.booleanDeprecated.booleanDeprecated.get(int index) Deprecated.intDeprecated.Returns the current page index, which is a zero based integer.intDeprecated.Returns the maximum number of items per page.voidgotoPage(int pageNumber) Deprecated.Moves to a specified page.intDeprecated.booleanisEmpty()Deprecated.booleanDeprecated.Is the current page the first page?.booleanDeprecated.Is the current page the last page?.booleanDeprecated.Is the current page a middle page (ie not first or last)?.booleanDeprecated.Is a page available after the current page?.booleanDeprecated.Is a page available before the current page?.iterator()Deprecated.intDeprecated.Deprecated.listIterator(int index) Deprecated.booleannextPage()Deprecated.Moves to the next page after the current page.voidpageTo(int idx) Deprecated.Page to.booleanDeprecated.Moves to the page before the current page.remove(int index) Deprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.Deprecated.intsize()Deprecated.subList(int fromIndex, int toIndex) Deprecated.Object[]toArray()Deprecated.Object[]Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
Constructor Details
-
PaginatedDataList
public PaginatedDataList(SqlMapExecutor sqlMapExecutor, String statementName, Object parameterObject, int pageSize) throws SQLException Deprecated.Instantiates a new paginated data list.- Parameters:
sqlMapExecutor- the sql map executorstatementName- the statement nameparameterObject- the parameter objectpageSize- the page size- Throws:
SQLException- the SQL exception
-
-
Method Details
-
pageTo
Deprecated.Page to.- Parameters:
idx- the idx- Throws:
SQLException- the SQL exception
-
nextPage
public boolean nextPage()Deprecated.Description copied from interface:PaginatedListMoves to the next page after the current page. If the current page is the last page, wrap to the first page.- Specified by:
nextPagein interfacePaginatedList- Returns:
- True if the page changed
-
previousPage
public boolean previousPage()Deprecated.Description copied from interface:PaginatedListMoves to the page before the current page. If the current page is the first page, wrap to the last page.- Specified by:
previousPagein interfacePaginatedList- Returns:
- True if the page changed
-
gotoPage
public void gotoPage(int pageNumber) Deprecated.Description copied from interface:PaginatedListMoves to a specified page. If the specified page is beyond the last page, wrap to the first page. If the specified page is before the first page, wrap to the last page.- Specified by:
gotoPagein interfacePaginatedList- Parameters:
pageNumber- The page to go to
-
getPageSize
public int getPageSize()Deprecated.Description copied from interface:PaginatedListReturns the maximum number of items per page.- Specified by:
getPageSizein interfacePaginatedList- Returns:
- The maximum number of items per page.
-
isFirstPage
public boolean isFirstPage()Deprecated.Description copied from interface:PaginatedListIs the current page the first page?.- Specified by:
isFirstPagein interfacePaginatedList- Returns:
- True if the current page is the first page or if only a single page exists.
-
isMiddlePage
public boolean isMiddlePage()Deprecated.Description copied from interface:PaginatedListIs the current page a middle page (ie not first or last)?.- Specified by:
isMiddlePagein interfacePaginatedList- Returns:
- True if the current page is not the first or last page, and more than one page exists (always returns false if only a single page exists).
-
isLastPage
public boolean isLastPage()Deprecated.Description copied from interface:PaginatedListIs the current page the last page?.- Specified by:
isLastPagein interfacePaginatedList- Returns:
- True if the current page is the last page or if only a single page exists.
-
isNextPageAvailable
public boolean isNextPageAvailable()Deprecated.Description copied from interface:PaginatedListIs a page available after the current page?.- Specified by:
isNextPageAvailablein interfacePaginatedList- Returns:
- True if the next page is available
-
isPreviousPageAvailable
public boolean isPreviousPageAvailable()Deprecated.Description copied from interface:PaginatedListIs a page available before the current page?.- Specified by:
isPreviousPageAvailablein interfacePaginatedList- Returns:
- True if the previous page is available
-
size
public int size()Deprecated.- Specified by:
sizein interfaceCollection- Specified by:
sizein interfaceList
-
isEmpty
public boolean isEmpty()Deprecated.- Specified by:
isEmptyin interfaceCollection- Specified by:
isEmptyin interfaceList
-
contains
Deprecated.- Specified by:
containsin interfaceCollection- Specified by:
containsin interfaceList
-
iterator
Deprecated. -
toArray
Deprecated.- Specified by:
toArrayin interfaceCollection- Specified by:
toArrayin interfaceList
-
toArray
Deprecated.- Specified by:
toArrayin interfaceCollection- Specified by:
toArrayin interfaceList
-
containsAll
Deprecated.- Specified by:
containsAllin interfaceCollection- Specified by:
containsAllin interfaceList
-
get
Deprecated. -
indexOf
Deprecated. -
lastIndexOf
Deprecated.- Specified by:
lastIndexOfin interfaceList
-
listIterator
Deprecated.- Specified by:
listIteratorin interfaceList
-
listIterator
Deprecated.- Specified by:
listIteratorin interfaceList
-
subList
Deprecated. -
add
Deprecated.- Specified by:
addin interfaceCollection- Specified by:
addin interfaceList
-
remove
Deprecated.- Specified by:
removein interfaceCollection- Specified by:
removein interfaceList
-
addAll
Deprecated.- Specified by:
addAllin interfaceCollection- Specified by:
addAllin interfaceList
-
addAll
Deprecated. -
removeAll
Deprecated.- Specified by:
removeAllin interfaceCollection- Specified by:
removeAllin interfaceList
-
retainAll
Deprecated.- Specified by:
retainAllin interfaceCollection- Specified by:
retainAllin interfaceList
-
clear
public void clear()Deprecated.- Specified by:
clearin interfaceCollection- Specified by:
clearin interfaceList
-
set
Deprecated. -
add
Deprecated. -
remove
Deprecated. -
getPageIndex
public int getPageIndex()Deprecated.Description copied from interface:PaginatedListReturns the current page index, which is a zero based integer. All paginated list implementations should know what index they are on, even if they don't know the ultimate boundaries (min/max).- Specified by:
getPageIndexin interfacePaginatedList- Returns:
- The current page
-