Skip navigation links

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

E10653-03


oracle.adf.model.adapter.bean.provider
Class BeanDataCollection

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by oracle.adf.model.adapter.bean.pagination.PaginationCollectionModel
          extended by oracle.adf.model.adapter.bean.provider.BeanDataCollection

All Implemented Interfaces:
java.lang.Iterable, java.util.Collection, Pagination
Direct Known Subclasses:
JPQLBeanDataCollection

public class BeanDataCollection
extends PaginationCollectionModel
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)
           
BeanDataCollection(RowContext rowCtx, java.lang.String name, DataFilter filter)
           

 

Method Summary
protected  java.util.Collection buildCollectionModel()
          Build the collection of rowData
 boolean canHandle()
          Return whether or not can handle operations
 java.lang.String getAssociatedBeanClassName()
          Return the associate beanClass name
 java.util.Collection getCollection()
          Get data collection
 int getFetchSize()
          Return the fetch size per page
 int getFetchStart()
          Return fetch start
 java.lang.String getMethodCountName()
           
 java.lang.Class[] getMethodCountParamTypes()
           
 java.lang.String getMethodName()
           
 java.lang.Class[] getMethodParamTypes()
           
 java.lang.Object getProperty(java.lang.String name)
          Gets a property value.
 long getRecordCount()
          Implement get total # of record count.
 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)
protected  java.lang.Object invokeMethod(java.lang.Object instance, java.lang.String methodName, java.lang.Class[] paramTypes, java.lang.Object[] params)
          Invoke the query method
 void refresh()
          Refresh the colleciton
 void setMethodCountName(java.lang.String name)
           
 void setMethodCountParamTypes(java.lang.Class[] paramTypes)
           
 void setMethodName(java.lang.String name)
           
 void setMethodParamTypes(java.lang.Class[] paramTypes)
           
 void setProperty(java.lang.String name, java.lang.Object val)
          Stores a property value.

 

Methods inherited from class oracle.adf.model.adapter.bean.pagination.PaginationCollectionModel
add, add, addAll, clear, clearAll, firstPage, getPageCount, getPageIndex, gotoPage, hasNextPage, hasPreviousPage, iterator, lastPage, nextPage, previousPage, remove, remove, setCollection, setFetchSize, setFetchStart, setRecordCount, 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)

BeanDataCollection

public BeanDataCollection(java.util.Map bindingContext,
                          OperationBinding action,
                          DataFilter 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

getAssociatedBeanClassName

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

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.

setMethodName

public void setMethodName(java.lang.String name)

getMethodName

public java.lang.String getMethodName()

setMethodParamTypes

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

getMethodParamTypes

public java.lang.Class[] getMethodParamTypes()

setMethodCountName

public void setMethodCountName(java.lang.String name)

getMethodCountName

public java.lang.String getMethodCountName()

setMethodCountParamTypes

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

getMethodCountParamTypes

public java.lang.Class[] getMethodCountParamTypes()

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 PaginationCollectionModel

getFetchStart

public int getFetchStart()
Description copied from interface: Pagination
Return fetch start
Specified by:
getFetchStart in interface Pagination
Overrides:
getFetchStart in class PaginationCollectionModel
Returns:
fetch start position

getSearchCriteria

public SearchCriteria getSearchCriteria()

getSortCriteria

public SortCriteria getSortCriteria()

getSearchAttributeNames

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

getCollection

public java.util.Collection getCollection()
Get data collection
Specified by:
getCollection in interface Pagination
Overrides:
getCollection in class PaginationCollectionModel

getRecordCount

public long getRecordCount()
Implement get total # of record count.
Specified by:
getRecordCount in interface Pagination
Overrides:
getRecordCount in class PaginationCollectionModel
Returns:
max count

refresh

public void refresh()
Refresh the colleciton

invokeMethod

protected java.lang.Object invokeMethod(java.lang.Object instance,
                                        java.lang.String methodName,
                                        java.lang.Class[] paramTypes,
                                        java.lang.Object[] params)
Invoke the query method
Parameters:
instance -
methodName -
paramTypes - - A Class[]
params -
Returns:
result

buildCollectionModel

protected java.util.Collection buildCollectionModel()
Build the collection of rowData
Returns:
collection of rows

Skip navigation links

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

E10653-03


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