org.openwms.common.integration.jpa
Class LocationDaoImpl

java.lang.Object
  extended by org.openwms.core.integration.jpa.AbstractGenericJpaDao<Location,Long>
      extended by org.openwms.common.integration.jpa.LocationDaoImpl
All Implemented Interfaces:
LocationDao, GenericDao<Location,Long>

@Repository(value="locationDao")
public class LocationDaoImpl
extends AbstractGenericJpaDao<Location,Long>
implements LocationDao

A LocationDaoImpl.

Since:
0.1
Version:
$Revision: 1409 $
Author:
Heiko Scherrer
See Also:
AbstractGenericJpaDao, LocationDao

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
LocationDaoImpl()
           
 
Method Summary
 List<Location> getAllLocations()
          Retrieve all Locations in natural order.
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
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

LocationDaoImpl

public LocationDaoImpl()
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<Location,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<Location,Long>
Returns:
Name of the query
See Also:
AbstractGenericJpaDao.getFindByUniqueIdQuery()

getAllLocations

@Transactional(readOnly=true)
public List<Location> getAllLocations()
Description copied from interface: LocationDao
Retrieve all Locations in natural order.

Specified by:
getAllLocations in interface LocationDao
Returns:
A List of all Locations
See Also:
LocationDao.getAllLocations()


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