public class BeanDataCollection<E> extends BeanCollectionModel<E>
_logger, DEFAULT_FETCH_SIZE| Constructor and Description | 
|---|
BeanDataCollection(java.util.Map bindingContext,
                  OperationBinding action,
                  DataFilter filter)
Constructor for method operation 
 | 
BeanDataCollection(RowContext rowCtx,
                  java.lang.String name,
                  DataFilter filter)
Constructor for accessor operation 
 | 
| Modifier and Type | Method and Description | 
|---|---|
protected boolean | 
appliedCriteria()  | 
boolean | 
canHandle()
Return whether or not can handle operation 
 | 
boolean | 
canHandleMethodHandler()  | 
boolean | 
canHandleMethodHandlerSize()  | 
java.lang.String | 
getAssociatedBeanClassName()
Return the associate beanClass name 
 | 
java.util.Collection<E> | 
getCollection()
Returns a list of object that fit the given paging range. 
 | 
DataFilter | 
getDataFilter()  | 
java.lang.Object | 
getDataProvider()
Returns the data object for this collection represents. 
 | 
DCDataVO | 
getDCDataVO()  | 
DCRowContext | 
getDCRowContext()  | 
long | 
getEstimatedRowCount()
Get the total # of rows count. 
 | 
int | 
getFetchSize()
Return the fetch size per page 
 | 
int | 
getFetchStart()
Return fetch start 
 | 
java.lang.String | 
getFullName()  | 
java.lang.Class[] | 
getMethodCountParamTypes()  | 
java.lang.String | 
getMethodHandlerName()  | 
java.lang.Class[] | 
getMethodHandlerParamTypes()  | 
java.lang.String | 
getMethodHandlerSizeName()  | 
java.lang.String | 
getName()  | 
java.lang.Object | 
getProperty(java.lang.String name)
Gets a property value. 
 | 
java.util.List<java.lang.String> | 
getSearchAttributeNames()  | 
SearchCriteria | 
getSearchCriteria()  | 
SortCriteria | 
getSortCriteria()  | 
protected boolean | 
hasSearchCriteria()  | 
protected boolean | 
hasSortCriteria()  | 
void | 
init()
Initialize the paging collection 
 | 
protected void | 
initOperations()
Initialize the paging operations:
 getMethod(), getMethodCount, and getMethod(int, int) 
 | 
java.lang.Object | 
invokeMethod(java.lang.Object instance,
            java.lang.String methodName,
            java.lang.Class[] paramTypes,
            java.lang.Object[] params)
Invoke method by name, parameters, values 
 | 
java.util.Collection<E> | 
invokeMethodHandler(int fetchStart,
                   int fetchSize)
Method Handler 
 | 
java.lang.Object | 
invokeMethodHandlerSize()  | 
void | 
refresh()
Refresh the colleciton 
 | 
void | 
setAccessMode(byte mode)  | 
void | 
setDataFilter(DataFilter filter)  | 
void | 
setMethodCountParamTypes(java.lang.Class[] paramTypes)  | 
void | 
setMethodHandlerName(java.lang.String name)  | 
void | 
setMethodHandlerParamTypes(java.lang.Class[] paramTypes)  | 
void | 
setMethodHandlerSizeName(java.lang.String name)  | 
void | 
setProperty(java.lang.String name,
           java.lang.Object val)
Stores a property value. 
 | 
boolean | 
supportsRangePaging()  | 
boolean | 
supportsSorting()  | 
void | 
supportsSorting(boolean bool)  | 
add, add, addAll, addCollection, clear, clearAll, firstPage, getCollection, getFetchedRowCount, getPageCount, getPageIndex, getRowCount, hasNextPage, hasPreviousPage, iterator, lastPage, nextPage, notifyRefresh, previousPage, remove, remove, setFetchSize, setFetchStart, setPageSize, setRowCount, size, supportsDefaultPagingcontains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic BeanDataCollection(RowContext rowCtx, java.lang.String name, DataFilter filter)
rowCtx - name - filter - public BeanDataCollection(java.util.Map bindingContext,
                          OperationBinding action,
                          DataFilter filter)
bindingContext - action - filter - public void init()
protected void initOperations()
public java.lang.String getName()
getName in interface PaginationCollectionModel<E>getName in class BeanCollectionModel<E>public java.lang.String getFullName()
getFullName in interface PaginationCollectionModel<E>getFullName in class BeanCollectionModel<E>public boolean canHandle()
canHandle in interface PaginationCollectionModel<E>canHandle in class BeanCollectionModel<E>public boolean canHandleMethodHandler()
public boolean canHandleMethodHandlerSize()
public void setAccessMode(byte mode)
public boolean supportsRangePaging()
supportsRangePaging in class BeanCollectionModel<E>public boolean supportsSorting()
public void supportsSorting(boolean bool)
public final void setProperty(java.lang.String name,
                              java.lang.Object val)
public final java.lang.Object getProperty(java.lang.String name)
public java.lang.String getAssociatedBeanClassName()
public void setMethodHandlerName(java.lang.String name)
public java.lang.String getMethodHandlerName()
public void setMethodHandlerParamTypes(java.lang.Class[] paramTypes)
public java.lang.Class[] getMethodHandlerParamTypes()
public void setMethodHandlerSizeName(java.lang.String name)
public java.lang.String getMethodHandlerSizeName()
public void setMethodCountParamTypes(java.lang.Class[] paramTypes)
public java.lang.Class[] getMethodCountParamTypes()
public SearchCriteria getSearchCriteria()
public SortCriteria getSortCriteria()
public java.util.List<java.lang.String> getSearchAttributeNames()
public java.util.Collection<E> invokeMethodHandler(int fetchStart, int fetchSize)
fetchStart - int firstResultfetchSize - int maxResultspublic java.lang.Object invokeMethodHandlerSize()
public java.lang.Object invokeMethod(java.lang.Object instance,
                                     java.lang.String methodName,
                                     java.lang.Class[] paramTypes,
                                     java.lang.Object[] params)
instance - methodName - paramTypes - - A Class[]params - public long getEstimatedRowCount()
getEstimatedRowCount in interface PaginationCollectionModel<E>getEstimatedRowCount in class BeanCollectionModel<E>public int getFetchStart()
PaginationgetFetchStart in interface PaginationgetFetchStart in class BeanCollectionModel<E>public int getFetchSize()
PaginationgetFetchSize in interface PaginationgetFetchSize in class BeanCollectionModel<E>public java.util.Collection<E> getCollection()
BeanCollectionModelgetCollection in interface PaginationCollectionModel<E>getCollection in class BeanCollectionModel<E>Collection for this paginated collection.public java.lang.Object getDataProvider()
getDataProvider in interface PaginationCollectionModel<E>getDataProvider in class BeanCollectionModel<E>public void refresh()
refresh in class BeanCollectionModel<E>protected boolean appliedCriteria()
true if criteria has applied. 
 Sorting will be applied on next time when this collection is re-initialized.protected boolean hasSortCriteria()
true if dataFilter has sortCriteriaprotected boolean hasSearchCriteria()
true if dataFilter has searchCriteriapublic void setDataFilter(DataFilter filter)
public DataFilter getDataFilter()
DataFilter criteriapublic DCRowContext getDCRowContext()
RowContextpublic DCDataVO getDCDataVO()