public abstract class BeanCollectionModel<E> extends java.util.AbstractCollection<E> implements PaginationCollectionModel<E>
| Modifier and Type | Field and Description | 
|---|---|
protected oracle.adf.share.logging.ADFLogger | 
_logger
Logger 
 | 
static int | 
DEFAULT_FETCH_SIZE
Default fetch size 
 | 
| Constructor and Description | 
|---|
BeanCollectionModel()  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
add(E e)  | 
void | 
add(int index,
   E e)  | 
boolean | 
addAll(java.util.Collection<? extends E> c)  | 
void | 
addCollection(java.util.Collection<E> data)
Add data to managed collection 
 | 
boolean | 
canHandle()  | 
void | 
clear()  | 
protected void | 
clearAll()
Clear data buffer and cache page 
 | 
void | 
firstPage()
Action method bound to the "|< First" link. 
 | 
java.util.Collection<E> | 
getCollection()
Returns a list of object that fit the given paging range. 
 | 
java.util.Collection<E> | 
getCollection(int start)
Return the page collection at startIndex 
 | 
java.lang.Object | 
getDataProvider()
Returns the data object for this collection represents. 
 | 
long | 
getEstimatedRowCount()
Return the total # of rows count for a query. 
 | 
int | 
getFetchedRowCount()  | 
int | 
getFetchSize()
Return the fetch size per page 
 | 
int | 
getFetchStart()
Return fetch start 
 | 
java.lang.String | 
getFullName()  | 
java.lang.String | 
getName()  | 
int | 
getPageCount()  | 
int | 
getPageIndex()  | 
long | 
getRowCount()
Return the total rows count 
 | 
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 this collection 
 | 
void | 
lastPage()
Action method bound to the "Last >|" link. 
 | 
void | 
nextPage()
Action method bound to the "Next >" link. 
 | 
void | 
notifyRefresh()  | 
void | 
previousPage()
Action method bound to the "< Previous" link. 
 | 
void | 
refresh()
Refresh the collection 
 | 
java.lang.Object | 
remove(int index)  | 
boolean | 
remove(java.lang.Object o)  | 
void | 
setFetchSize(int fetchSize)
Set fetch size 
 | 
void | 
setFetchStart(int fetchStart)
Set fetch start 
 | 
void | 
setPageSize(int pageSize)
Set page size 
 | 
void | 
setRowCount(long rowCount)
Set the total number row count for the collection 
 | 
int | 
size()  | 
boolean | 
supportsDefaultPaging()  | 
boolean | 
supportsRangePaging()  | 
contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitprotected oracle.adf.share.logging.ADFLogger _logger
public static final int DEFAULT_FETCH_SIZE
public void refresh()
public void notifyRefresh()
public boolean canHandle()
canHandle in interface PaginationCollectionModel<E>public boolean supportsRangePaging()
public boolean supportsDefaultPaging()
public boolean addAll(java.util.Collection<? extends E> c)
public boolean add(E e)
public void add(int index,
                E e)
public boolean remove(java.lang.Object o)
public java.lang.Object remove(int index)
public int size()
public void clear()
protected void clearAll()
public java.util.Iterator<E> iterator()
public long getEstimatedRowCount()
getEstimatedRowCount in interface PaginationCollectionModel<E>long the number of rows in the collection.public void addCollection(java.util.Collection<E> data)
addCollection in interface PaginationCollectionModel<E>data - Collection collection for pagepublic java.util.Collection<E> getCollection()
getCollection in interface PaginationCollectionModel<E>Collectionpublic java.util.Collection<E> getCollection(int start)
getCollection in interface PaginationCollectionModel<E>public java.lang.Object getDataProvider()
getDataProvider in interface PaginationCollectionModel<E>public java.lang.String getName()
getName in interface PaginationCollectionModel<E>public java.lang.String getFullName()
getFullName in interface PaginationCollectionModel<E>public void setPageSize(int pageSize)
setPageSize in interface Paginationpublic void setFetchSize(int fetchSize)
setFetchSize in interface Paginationpublic int getFetchSize()
PaginationgetFetchSize in interface Paginationpublic void setFetchStart(int fetchStart)
setFetchStart in interface PaginationfetchStart - int rangeStart.public int getFetchStart()
PaginationgetFetchStart in interface Paginationpublic int getPageIndex()
public int getPageCount()
public void setRowCount(long rowCount)
setRowCount in interface PaginationrowCount - public long getRowCount()
PaginationgetRowCount in interface Paginationpublic int getFetchedRowCount()
public void firstPage()
firstPage in interface Paginationpublic void lastPage()
lastPage in interface Paginationpublic void nextPage()
nextPage in interface Paginationpublic void previousPage()
previousPage in interface Paginationpublic boolean hasNextPage()
hasNextPage in interface Paginationpublic boolean hasPreviousPage()
hasPreviousPage in interface Pagination