org.openwms.core.integration.jpa
Class GenericJpaDaoImpl<T extends AbstractEntity,ID extends Serializable>
java.lang.Object
org.openwms.core.integration.jpa.AbstractGenericJpaDao<T,ID>
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
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 |
GenericJpaDaoImpl
public GenericJpaDaoImpl()
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.