org.openwms.core.integration.jpa
Class GenericJpaDaoImpl<T extends AbstractEntity,ID extends Serializable>

java.lang.Object
  extended by org.openwms.core.integration.jpa.AbstractGenericJpaDao<T,ID>
      extended by org.openwms.core.integration.jpa.GenericJpaDaoImpl<T,ID>
Type Parameters:
T - Any serializable type, mostly an Entity class type.
ID - The type of the Entity class' unique id
All Implemented Interfaces:
GenericDao<T,ID>

public class GenericJpaDaoImpl<T extends AbstractEntity,ID extends Serializable>
extends AbstractGenericJpaDao<T,ID>
implements GenericDao<T,ID>

A GenericJpaDaoImpl - Adds generic finder methods to query Entity classes.

Since:
0.1
Version:
$Revision: 1583 $
Author:
Heiko Scherrer
See Also:
AbstractGenericJpaDao, GenericDao

Field Summary
 
Fields inherited from class org.openwms.core.integration.jpa.AbstractGenericJpaDao
logger
 
Fields inherited from interface org.openwms.core.integration.GenericDao
FIND_ALL, FIND_BY_ID
 
Constructor Summary
GenericJpaDaoImpl()
           
 
Method Summary
protected  String getFindAllQuery()
          Concatenates the simple class name of the persistent class with the default prefix GenericDao.FIND_ALL.
protected  String getFindByUniqueIdQuery()
          Concatenates the simple class name of the persistent class with the default prefix GenericDao.FIND_BY_ID.
 
Methods inherited from class org.openwms.core.integration.jpa.AbstractGenericJpaDao
beforeUpdate, findAll, findById, findByNamedParameters, findByPositionalParameters, findByUniqueId, getEm, getPersistentClass, persist, remove, save, setPersistentClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openwms.core.integration.GenericDao
findAll, findById, findByNamedParameters, findByPositionalParameters, findByUniqueId, persist, remove, save, setPersistentClass
 

Constructor Detail

GenericJpaDaoImpl

public GenericJpaDaoImpl()
Method Detail

getFindAllQuery

protected String getFindAllQuery()
Concatenates the simple class name of the persistent class with the default prefix GenericDao.FIND_ALL.

Specified by:
getFindAllQuery in class AbstractGenericJpaDao<T extends AbstractEntity,ID extends Serializable>
Returns:
Name of the query
See Also:
AbstractGenericJpaDao.getFindAllQuery()

getFindByUniqueIdQuery

protected String getFindByUniqueIdQuery()
Concatenates the simple class name of the persistent class with the default prefix GenericDao.FIND_BY_ID.

Specified by:
getFindByUniqueIdQuery in class AbstractGenericJpaDao<T extends AbstractEntity,ID extends Serializable>
Returns:
Name of the query
See Also:
AbstractGenericJpaDao.getFindByUniqueIdQuery()


Copyright © 2005-2011 openwms.org. All Rights Reserved.