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

public class JPQLBeanDataCollection<E>
extends BeanDataCollection<E>

Since:
11.1.2

Field Summary
static java.lang.String METHOD_MERGE_ENTITY
           
static java.lang.String METHOD_PERSIST_ENTITY
           
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.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  boolean appliedCriteria()
           
 java.lang.String getQueryStmt()
           
 java.lang.String getQueryStmtCount()
           
 void init()
          Initialize the jpql paging collection
protected  void initOperations()
          Initialize all the related operations: getMethod(), getMethodCount, and getMethod(int, int)
 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
canHandle, canHandleMethodHandler, canHandleMethodHandlerSize, getAssociatedBeanClassName, getCollection, getDataFilter, getDataProvider, getDCDataVO, getDCRowContext, getEstimatedRowCount, getFetchSize, getFetchStart, getFullName, getMethodCountParamTypes, getMethodHandlerName, getMethodHandlerParamTypes, getMethodHandlerSizeName, getName, getProperty, getSearchAttributeNames, getSearchCriteria, getSortCriteria, hasSearchCriteria, hasSortCriteria, invokeMethod, refresh, setAccessMode, setDataFilter, setMethodCountParamTypes, setMethodHandlerName, setMethodHandlerParamTypes, setMethodHandlerSizeName, setProperty, supportsRangePaging, supportsSorting, supportsSorting
 
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

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

METHOD_PERSIST_ENTITY

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

METHOD_MERGE_ENTITY

public static final java.lang.String METHOD_MERGE_ENTITY
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()

appliedCriteria

protected boolean appliedCriteria()
Overrides:
appliedCriteria in class BeanDataCollection<E>
Returns:
true if criteria has applied. Sorting will be applied on next time when this collection is re-initialized.

init

public void init()
Initialize the jpql paging collection

Overrides:
init in class BeanDataCollection<E>

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>

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

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.