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

E10653-08

oracle.adf.model.adapter.bean.provider
Class BeanDataCollection<E>

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

public class BeanDataCollection<E>
extends PaginationCollectionModel<E>

Since:
11.1.2

Field Summary
protected  java.lang.Object _beanInstance
          Bean Instance
protected  boolean _isAccessor
           
protected  java.lang.String _methodName
          method Name
 
Fields inherited from class oracle.adf.model.adapter.bean.pagination.PaginationCollectionModel
_logger, DEFAULT_FETCH_SIZE
 
Constructor Summary
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
 
Method Summary
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 all the related 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)
           
 
Methods inherited from class oracle.adf.model.adapter.bean.pagination.PaginationCollectionModel
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, supportsDefaultPaging
 
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

_beanInstance

protected java.lang.Object _beanInstance
Bean Instance


_methodName

protected java.lang.String _methodName
method Name


_isAccessor

protected boolean _isAccessor
Constructor Detail

BeanDataCollection

public BeanDataCollection(RowContext rowCtx,
                          java.lang.String name,
                          DataFilter filter)
Constructor for accessor operation

Parameters:
rowCtx -
name -
filter -

BeanDataCollection

public BeanDataCollection(java.util.Map bindingContext,
                          OperationBinding action,
                          DataFilter filter)
Constructor for method operation

Parameters:
bindingContext -
action -
filter -
Method Detail

init

public void init()
Initialize the paging collection


initOperations

protected void initOperations()
Initialize all the related operations: getMethod(), getMethodCount, and getMethod(int, int)


getName

public java.lang.String getName()
Returns:
name of the data object

getFullName

public java.lang.String getFullName()
Returns:
the full name of the data object in the form of accessor.className.

canHandle

public boolean canHandle()
Return whether or not can handle operation

Overrides:
canHandle in class PaginationCollectionModel<E>

canHandleMethodHandler

public boolean canHandleMethodHandler()

canHandleMethodHandlerSize

public boolean canHandleMethodHandlerSize()

setAccessMode

public void setAccessMode(byte mode)

supportsRangePaging

public boolean supportsRangePaging()
Overrides:
supportsRangePaging in class PaginationCollectionModel<E>

supportsSorting

public boolean supportsSorting()

supportsSorting

public void supportsSorting(boolean bool)

setProperty

public final void setProperty(java.lang.String name,
                              java.lang.Object val)
Stores a property value.


getProperty

public final java.lang.Object getProperty(java.lang.String name)
Gets a property value.


getAssociatedBeanClassName

public java.lang.String getAssociatedBeanClassName()
Return the associate beanClass name


setMethodHandlerName

public void setMethodHandlerName(java.lang.String name)

getMethodHandlerName

public java.lang.String getMethodHandlerName()

setMethodHandlerParamTypes

public void setMethodHandlerParamTypes(java.lang.Class[] paramTypes)

getMethodHandlerParamTypes

public java.lang.Class[] getMethodHandlerParamTypes()

setMethodHandlerSizeName

public void setMethodHandlerSizeName(java.lang.String name)

getMethodHandlerSizeName

public java.lang.String getMethodHandlerSizeName()

setMethodCountParamTypes

public void setMethodCountParamTypes(java.lang.Class[] paramTypes)

getMethodCountParamTypes

public java.lang.Class[] getMethodCountParamTypes()

getSearchCriteria

public SearchCriteria getSearchCriteria()

getSortCriteria

public SortCriteria getSortCriteria()

getSearchAttributeNames

public java.util.List<java.lang.String> getSearchAttributeNames()

invokeMethodHandler

public java.util.Collection<E> invokeMethodHandler(int fetchStart,
                                                   int fetchSize)
Method Handler

Parameters:
fetchStart - int firstResult
fetchSize - int maxResults
Returns:
collection

invokeMethodHandlerSize

public java.lang.Object invokeMethodHandlerSize()
Returns:
The size of of method handler

invokeMethod

public 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

Parameters:
instance -
methodName -
paramTypes - - A Class[]
params -
Returns:
result

getEstimatedRowCount

public long getEstimatedRowCount()
Get the total # of rows count.

Overrides:
getEstimatedRowCount in class PaginationCollectionModel<E>
Returns:
max rows count

getFetchStart

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

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

getFetchSize

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

Specified by:
getFetchSize in interface Pagination<E>
Overrides:
getFetchSize in class PaginationCollectionModel<E>

getCollection

public java.util.Collection<E> getCollection()
Description copied from class: PaginationCollectionModel
Returns a list of object that fit the given paging range.

Overrides:
getCollection in class PaginationCollectionModel<E>
Returns:
The collection Collection for this paginated collection.

getDataProvider

public java.lang.Object getDataProvider()
Returns the data object for this collection represents.

Overrides:
getDataProvider in class PaginationCollectionModel<E>

refresh

public void refresh()
Refresh the colleciton

Overrides:
refresh in class PaginationCollectionModel<E>

appliedCriteria

protected boolean appliedCriteria()
Returns:
true if criteria has applied. Sorting will be applied on next time when this collection is re-initialized.

hasSortCriteria

protected boolean hasSortCriteria()
Returns:
true if dataFilter has sortCriteria

hasSearchCriteria

protected boolean hasSearchCriteria()
Returns:
true if dataFilter has searchCriteria

setDataFilter

public void setDataFilter(DataFilter filter)

getDataFilter

public DataFilter getDataFilter()
Returns:
DataFilter DataFilter criteria

getDCRowContext

public DCRowContext getDCRowContext()
Returns:
DCRowContext RowContext

getDCDataVO

public DCDataVO getDCDataVO()
Returns:
DCDataVO

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

E10653-08

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