Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.0.0)

E17483-01

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.provider.BeanCollectionModel<E>
          extended by oracle.adf.model.adapter.bean.provider.BeanDataCollection<E>
All Implemented Interfaces:
java.lang.Iterable<E>, java.util.Collection<E>, Pagination, PaginationCollectionModel<E>
Direct Known Subclasses:
JPQLBeanDataCollection

public class BeanDataCollection<E>
extends BeanCollectionModel<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.provider.BeanCollectionModel
_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
 boolean canHandle()
          Return whether or not can handle operations
 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.
protected  DataFilter getDataFilter()
           
protected  DCDataVO getDCDataVO()
           
protected  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.Class[] getMethodCountParamTypes()
           
 java.lang.String getMethodHandlerName()
           
 java.lang.Class[] getMethodHandlerParamTypes()
           
 java.lang.String getMethodHandlerSizeName()
           
 void getPageSize()
           
 java.lang.Object getProperty(java.lang.String name)
          Gets a property value.
 java.util.List<java.lang.String> getSearchAttributeNames()
           
 SearchCriteria getSearchCriteria()
           
 SortCriteria getSortCriteria()
           
protected  void init()
          Initialize all the related operations
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 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.
 
Methods inherited from class oracle.adf.model.adapter.bean.provider.BeanCollectionModel
add, add, addAll, addCollection, clear, firstPage, getCollection, getPageCount, getPageIndex, getRowCount, hasNextPage, hasPreviousPage, iterator, lastPage, nextPage, previousPage, remove, remove, setFetchSize, setFetchStart, setPageBlock, setPageSize, setRowCount, 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

_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

protected void init()
Initialize all the related operations


initOperations

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


canHandle

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


canHandleMethodHandler

public boolean canHandleMethodHandler()

canHandleMethodHandlerSize

public boolean canHandleMethodHandlerSize()

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.

Specified by:
getEstimatedRowCount in interface PaginationCollectionModel<E>
Overrides:
getEstimatedRowCount in class BeanCollectionModel<E>
Returns:
max rows count

getFetchStart

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

Specified by:
getFetchStart in interface Pagination
Overrides:
getFetchStart in class BeanCollectionModel<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
Overrides:
getFetchSize in class BeanCollectionModel<E>

getPageSize

public void getPageSize()

getCollection

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

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

refresh

public void refresh()
Refresh the colleciton

Overrides:
refresh in class BeanCollectionModel<E>

getDataFilter

protected DataFilter getDataFilter()
Returns:
DataFilter DataFilter criteria

getDCRowContext

protected DCRowContext getDCRowContext()
Returns:
DCRowContext RowContext

getDCDataVO

protected DCDataVO getDCDataVO()
Returns:
DCDataVO

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 2 (11.1.2.0.0)

E17483-01

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