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

E10653-04

oracle.adf.model.adapter.bean.jpa
Class JPQLBeanDataCollection

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
              extended by oracle.adf.model.adapter.bean.jpa.JPQLBeanDataCollection
All Implemented Interfaces:
java.lang.Iterable, java.util.Collection, Pagination

public class JPQLBeanDataCollection
extends BeanDataCollection

Since:
11.1.2

Field Summary
static java.lang.String JPQL_METHOD_QUERY
           
 
Fields inherited from class oracle.adf.model.adapter.bean.provider.BeanDataCollection
_beanInstance, _isAccessor, _methodName
 
Fields inherited from class oracle.adf.model.adapter.bean.pagination.PaginationCollectionModel
_logger, DEFAULT_FETCH_SIZE
 
Constructor Summary
JPQLBeanDataCollection(java.util.Map bindingContext, OperationBinding action, DataFilter filter)
           
JPQLBeanDataCollection(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
 int getFetchStart()
          Return fetch start
 java.lang.String getQueryStmt()
           
 java.lang.String getQueryStmtCount()
           
 long getRecordCount()
          Implement get total # of record count.
protected  void init()
          Initialize all the related operations
protected  void initOperations()
          Initialize all the related operations: getMethod(), getMethodCount, and getMethod(int, int)
 void setQueryStmt(java.lang.String jpqlStmt)
           
 void setQueryStmtCount(java.lang.String jpqlStmt)
           
 
Methods inherited from class oracle.adf.model.adapter.bean.provider.BeanDataCollection
getAssociatedBeanClassName, getCollection, getFetchSize, getMethodCountName, getMethodCountParamTypes, getMethodName, getMethodParamTypes, getProperty, getSearchAttributeNames, getSearchCriteria, getSortCriteria, invokeMethod, refresh, setMethodCountName, setMethodCountParamTypes, setMethodName, setMethodParamTypes, setProperty
 
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

JPQL_METHOD_QUERY

public static final java.lang.String JPQL_METHOD_QUERY
See Also:
Constant Field Values
Constructor Detail

JPQLBeanDataCollection

public JPQLBeanDataCollection(java.util.Map bindingContext,
                              OperationBinding action,
                              DataFilter filter)

JPQLBeanDataCollection

public JPQLBeanDataCollection(RowContext rowCtx,
                              java.lang.String name,
                              DataFilter filter)
Method Detail

setQueryStmt

public void setQueryStmt(java.lang.String jpqlStmt)

getQueryStmt

public java.lang.String getQueryStmt()

setQueryStmtCount

public void setQueryStmtCount(java.lang.String jpqlStmt)

getQueryStmtCount

public java.lang.String getQueryStmtCount()

init

protected void init()
Description copied from class: BeanDataCollection
Initialize all the related operations

Overrides:
init in class BeanDataCollection

initOperations

protected void initOperations()
Description copied from class: BeanDataCollection
Initialize all the related operations: getMethod(), getMethodCount, and getMethod(int, int)

Overrides:
initOperations in class BeanDataCollection

canHandle

public boolean canHandle()
Description copied from class: BeanDataCollection
Return whether or not can handle operations

Overrides:
canHandle in class BeanDataCollection

getRecordCount

public long getRecordCount()
Description copied from class: BeanDataCollection
Implement get total # of record count.

Specified by:
getRecordCount in interface Pagination
Overrides:
getRecordCount in class BeanDataCollection
Returns:
max count

buildCollectionModel

protected java.util.Collection buildCollectionModel()
Description copied from class: BeanDataCollection
Build the collection of rowData

Overrides:
buildCollectionModel in class BeanDataCollection
Returns:
collection of rows

getFetchStart

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

Specified by:
getFetchStart in interface Pagination
Overrides:
getFetchStart in class BeanDataCollection
Returns:
fetch start position

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

E10653-04

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