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

public class JPQLBeanDataCollection<E>
extends BeanDataCollection<E>

Since:
11.1.2

Field Summary
static java.lang.String METHOD_QUERY_COUNT_NAME
           
static java.lang.String METHOD_QUERY_NAME
           
 
Fields inherited from class oracle.adf.model.adapter.bean.provider.BeanDataCollection
_beanInstance, _isAccessor, _methodName
 
Fields inherited from class oracle.adf.model.adapter.bean.provider.BeanCollectionModel
_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
 boolean canHandle()
          Return whether or not can handle operations
 boolean canHandleMethodHandler()
           
 boolean canHandleMethodHandlerSize()
           
 java.lang.String getQueryStmt()
           
 java.lang.String getQueryStmtCount()
           
protected  void init()
          Initialize all the related operations
protected  void initOperations()
          Initialize all the related operations: getMethod(), getMethodCount, and getMethod(int, int)
protected  void initPageBlock()
          Initialize pages per pageblock
 java.util.Collection<E> invokeMethodHandler(int fetchStart, int fetchSize)
          Method handler
 java.lang.Object invokeMethodHandlerSize()
           
 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, getDataFilter, getDCDataVO, getDCRowContext, getEstimatedRowCount, getFetchSize, getFetchStart, getMethodCountParamTypes, getMethodHandlerName, getMethodHandlerParamTypes, getMethodHandlerSizeName, getPageSize, getProperty, getSearchAttributeNames, getSearchCriteria, getSortCriteria, invokeMethod, refresh, setMethodCountParamTypes, setMethodHandlerName, setMethodHandlerParamTypes, setMethodHandlerSizeName, setProperty
 
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

METHOD_QUERY_NAME

public static final java.lang.String METHOD_QUERY_NAME
See Also:
Constant Field Values

METHOD_QUERY_COUNT_NAME

public static final java.lang.String METHOD_QUERY_COUNT_NAME
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<E>

initPageBlock

protected void initPageBlock()
Initialize pages per pageblock


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<E>

canHandle

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

Overrides:
canHandle in class BeanDataCollection<E>

invokeMethodHandler

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

Overrides:
invokeMethodHandler in class BeanDataCollection<E>
Parameters:
fetchStart - int firstResult
fetchSize - int maxResults
Returns:
collection

invokeMethodHandlerSize

public java.lang.Object invokeMethodHandlerSize()
Overrides:
invokeMethodHandlerSize in class BeanDataCollection<E>
Returns:
The result of the query count

canHandleMethodHandler

public boolean canHandleMethodHandler()
Overrides:
canHandleMethodHandler in class BeanDataCollection<E>

canHandleMethodHandlerSize

public boolean canHandleMethodHandlerSize()
Overrides:
canHandleMethodHandlerSize in class BeanDataCollection<E>

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.