org.dellroad.stuff.dao
Class AbstractDAO.DAOQueryListCallback

java.lang.Object
  extended by org.dellroad.stuff.dao.QueryCallback<R>
      extended by org.dellroad.stuff.dao.TypedQueryCallback<T,List<T>>
          extended by org.dellroad.stuff.dao.AbstractDAO.DAOQueryListCallback
All Implemented Interfaces:
JpaCallback<List<T>>
Enclosing class:
AbstractDAO<T>

protected abstract class AbstractDAO.DAOQueryListCallback
extends TypedQueryCallback<T,List<T>>

Convenience subclass of QueryCallback for use by DAO subclasses when returning lists of persistent instances.


Constructor Summary
protected AbstractDAO.DAOQueryListCallback()
           
 
Method Summary
protected  List<T> executeQuery(TypedQuery<T> query)
          Execute the query.
 
Methods inherited from class org.dellroad.stuff.dao.TypedQueryCallback
buildQuery, executeQuery
 
Methods inherited from class org.dellroad.stuff.dao.QueryCallback
doInJpa
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDAO.DAOQueryListCallback

protected AbstractDAO.DAOQueryListCallback()
Method Detail

executeQuery

protected final List<T> executeQuery(TypedQuery<T> query)
Description copied from class: TypedQueryCallback
Execute the query.

Specified by:
executeQuery in class TypedQueryCallback<T,List<T>>