Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.4.0)

E10653-05

oracle.adf.model.adapter.bean.pagination
Class PaginationCollectionModel<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by oracle.adf.model.adapter.bean.pagination.PaginationCollectionModel<E>
All Implemented Interfaces:
java.lang.Iterable<E>, java.util.Collection<E>, Pagination<E>
Direct Known Subclasses:
BeanDataCollection

public abstract class PaginationCollectionModel<E>
extends java.util.AbstractCollection<E>
implements Pagination<E>

Since:
11.1.2

Field Summary
protected  oracle.adf.share.logging.ADFLogger _logger
          Logger
static int DEFAULT_FETCH_SIZE
          Default fetch size
 
Constructor Summary
PaginationCollectionModel()
           
 
Method Summary
 boolean add(E e)
           
 void add(int index, E e)
           
 boolean addAll(java.util.Collection<? extends E> c)
           
 void clear()
           
 void clearAll()
           
 void firstPage()
          Action method bound to the "|< First" link.
 java.util.Collection getCollection()
          Returns a list of object that fit the given paging range.
 int getFetchSize()
          Return the fetch size per page
 int getFetchStart()
          Return fetch start
 int getPageCount()
           
 int getPageIndex()
           
 long getRecordCount()
          Return the total # of record count for a query.
 java.util.Collection gotoPage(int pageIndex)
          Return the page collection at pageIndex
 boolean hasNextPage()
          Method queried by the "Next" link to determine its enabled state.
 boolean hasPreviousPage()
          Method queried by the "Previous" link to determine its enabled state.
 java.util.Iterator<E> iterator()
          Return an iterator of the rangeSize of this collection
 void lastPage()
          Action method bound to the "Last >|" link.
 void nextPage()
          Action method bound to the "Next >" link.
 void previousPage()
          Action method bound to the "< Previous" link.
 java.lang.Object remove(int index)
           
 boolean remove(java.lang.Object o)
           
 void setCollection(java.util.Collection<E> data)
          Set collection model
 void setFetchSize(int fetchSize)
          Set page size
 void setFetchStart(int rangeStart)
          Set fetch start
 void setRecordCount(long recordCount)
          Set the record count
 int size()
           
 
Methods inherited from class java.util.AbstractCollection
contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Field Detail

_logger

protected oracle.adf.share.logging.ADFLogger _logger
Logger


DEFAULT_FETCH_SIZE

public static final int DEFAULT_FETCH_SIZE
Default fetch size

See Also:
Constant Field Values
Constructor Detail

PaginationCollectionModel

public PaginationCollectionModel()
Method Detail

clearAll

public void clearAll()

setFetchStart

public void setFetchStart(int rangeStart)
Set fetch start

Specified by:
setFetchStart in interface Pagination<E>
Parameters:
rangeStart - int rangeStart.

getFetchStart

public int getFetchStart()
Description copied from interface: Pagination
Return fetch start

Specified by:
getFetchStart in interface Pagination<E>
Returns:
fetch start position

addAll

public boolean addAll(java.util.Collection<? extends E> c)
Specified by:
addAll in interface java.util.Collection<E>
Overrides:
addAll in class java.util.AbstractCollection<E>

add

public boolean add(E e)
Specified by:
add in interface java.util.Collection<E>
Overrides:
add in class java.util.AbstractCollection<E>

add

public void add(int index,
                E e)

remove

public boolean remove(java.lang.Object o)
Specified by:
remove in interface java.util.Collection<E>
Overrides:
remove in class java.util.AbstractCollection<E>

remove

public java.lang.Object remove(int index)

size

public int size()
Specified by:
size in interface java.util.Collection<E>
Specified by:
size in class java.util.AbstractCollection<E>

clear

public void clear()
Specified by:
clear in interface java.util.Collection<E>
Overrides:
clear in class java.util.AbstractCollection<E>

iterator

public java.util.Iterator<E> iterator()
Return an iterator of the rangeSize of this collection

Specified by:
iterator in interface java.lang.Iterable<E>
Specified by:
iterator in interface java.util.Collection<E>
Specified by:
iterator in class java.util.AbstractCollection<E>

setCollection

public void setCollection(java.util.Collection<E> data)
Set collection model

Specified by:
setCollection in interface Pagination<E>

setFetchSize

public void setFetchSize(int fetchSize)
Set page size

Specified by:
setFetchSize in interface Pagination<E>

getFetchSize

public int getFetchSize()
Description copied from interface: Pagination
Return the fetch size per page

Specified by:
getFetchSize in interface Pagination<E>

getCollection

public java.util.Collection getCollection()
Returns a list of object that fit the given paging range.

Specified by:
getCollection in interface Pagination<E>

getPageIndex

public int getPageIndex()

getPageCount

public int getPageCount()

setRecordCount

public void setRecordCount(long recordCount)
Description copied from interface: Pagination
Set the record count

Specified by:
setRecordCount in interface Pagination<E>

getRecordCount

public long getRecordCount()
Return the total # of record count for a query.

Specified by:
getRecordCount in interface Pagination<E>

firstPage

public void firstPage()
Action method bound to the "|< First" link. The _fromRange row

Specified by:
firstPage in interface Pagination<E>

lastPage

public void lastPage()
Action method bound to the "Last >|" link. Increment to the row.

Specified by:
lastPage in interface Pagination<E>

nextPage

public void nextPage()
Action method bound to the "Next >" link. Increment the row cursor by the increment size.

Specified by:
nextPage in interface Pagination<E>

previousPage

public void previousPage()
Action method bound to the "< Previous" link. Decrements the row cursor by the increment size.

Specified by:
previousPage in interface Pagination<E>

hasNextPage

public boolean hasNextPage()
Method queried by the "Next" link to determine its enabled state. Returns true if another _page exists.

Specified by:
hasNextPage in interface Pagination<E>

hasPreviousPage

public boolean hasPreviousPage()
Method queried by the "Previous" link to determine its enabled state. Returns true if a previous _page exists.

Specified by:
hasPreviousPage in interface Pagination<E>

gotoPage

public java.util.Collection gotoPage(int pageIndex)
Return the page collection at pageIndex

Specified by:
gotoPage in interface Pagination<E>

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1.4.0)

E10653-05

Copyright © 1997, 2011, Oracle. All rights reserved.