org.openwms.common.integration.jpa
Class LocationGroupDaoImpl

java.lang.Object
  extended by org.openwms.core.integration.jpa.AbstractGenericJpaDao<LocationGroup,Long>
      extended by org.openwms.common.integration.jpa.LocationGroupDaoImpl
All Implemented Interfaces:
LocationGroupDao, GenericDao<LocationGroup,Long>

@Repository(value="locationGroupDao")
public class LocationGroupDaoImpl
extends AbstractGenericJpaDao<LocationGroup,Long>
implements LocationGroupDao

A LocationGroupDaoImpl.

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

Field Summary
 
Fields inherited from class org.openwms.core.integration.jpa.AbstractGenericJpaDao
logger
 
Fields inherited from interface org.openwms.common.integration.LocationGroupDao
NQ_FIND_ALL, NQ_FIND_BY_NAME
 
Fields inherited from interface org.openwms.core.integration.GenericDao
FIND_ALL, FIND_BY_ID
 
Constructor Summary
LocationGroupDaoImpl()
           
 
Method Summary
protected  void beforeUpdate(LocationGroup entity)
          Update the date of last change before update.
protected  String getFindAllQuery()
          Returns the name of the NamedQuery to find all Entity classes.
protected  String getFindByUniqueIdQuery()
          Returns the name of the NamedQuery to find an Entity by the business key.
 
Methods inherited from class org.openwms.core.integration.jpa.AbstractGenericJpaDao
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

LocationGroupDaoImpl

public LocationGroupDaoImpl()
Method Detail

getFindAllQuery

protected String getFindAllQuery()
Description copied from class: AbstractGenericJpaDao
Returns the name of the NamedQuery to find all Entity classes.

Specified by:
getFindAllQuery in class AbstractGenericJpaDao<LocationGroup,Long>
Returns:
Name of the query
See Also:
AbstractGenericJpaDao.getFindAllQuery()

getFindByUniqueIdQuery

protected String getFindByUniqueIdQuery()
Description copied from class: AbstractGenericJpaDao
Returns the name of the NamedQuery to find an Entity by the business key.

Specified by:
getFindByUniqueIdQuery in class AbstractGenericJpaDao<LocationGroup,Long>
Returns:
Name of the query
See Also:
AbstractGenericJpaDao.getFindByUniqueIdQuery()

beforeUpdate

protected void beforeUpdate(LocationGroup entity)
Update the date of last change before update.

Overrides:
beforeUpdate in class AbstractGenericJpaDao<LocationGroup,Long>
Parameters:
entity - LocationGroup to be updated


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