org.dellroad.stuff.dao
Class AbstractDAO.DAOCriteriaUniqueCallback

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

protected abstract class AbstractDAO.DAOCriteriaUniqueCallback
extends CriteriaCallback<T,T>

Convenience subclass of CriteriaCallback for use by DAO subclasses when returning a single persistent instance.

Returns null if instance is not found.


Field Summary
 
Fields inherited from class org.dellroad.stuff.dao.CriteriaCallback
type
 
Constructor Summary
protected AbstractDAO.DAOCriteriaUniqueCallback()
           
 
Method Summary
protected  T executeQuery(TypedQuery<T> query)
          Execute the query.
 
Methods inherited from class org.dellroad.stuff.dao.CriteriaCallback
buildQuery, configureQuery
 
Methods inherited from class org.dellroad.stuff.dao.TypedQueryCallback
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.DAOCriteriaUniqueCallback

protected AbstractDAO.DAOCriteriaUniqueCallback()
Method Detail

executeQuery

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

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