org.openwms.core.integration.jpa
Class ModuleDaoImpl

java.lang.Object
  extended by org.openwms.core.integration.jpa.AbstractGenericJpaDao<Module,Long>
      extended by org.openwms.core.integration.jpa.ModuleDaoImpl
All Implemented Interfaces:
GenericDao<Module,Long>, ModuleDao

@Transactional(propagation=MANDATORY)
@Repository(value="moduleDao")
public class ModuleDaoImpl
extends AbstractGenericJpaDao<Module,Long>
implements ModuleDao

A ModuleDao is an extension of a AbstractGenericJpaDao about functionality regarding Modules. The stereotype annotation Repository marks this class as a DAO in the architecture and enables exception translation and component scanning. It can be injected by name "moduleDao".

All methods have to be invoked within an active transaction context.

Since:
0.1
Version:
$Revision: 1541 $
Author:
Heiko Scherrer
See Also:
AbstractGenericJpaDao, ModuleDao

Field Summary
static String COMPONENT_NAME
          Springs component name.
 
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
ModuleDaoImpl()
           
 
Method Summary
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
 

Field Detail

COMPONENT_NAME

public static final String COMPONENT_NAME
Springs component name.

See Also:
Constant Field Values
Constructor Detail

ModuleDaoImpl

public ModuleDaoImpl()
Method Detail

getFindAllQuery

protected String getFindAllQuery()
Returns the name of the NamedQuery to find all Entity classes.

Specified by:
getFindAllQuery in class AbstractGenericJpaDao<Module,Long>
Returns:
Name of the query

getFindByUniqueIdQuery

protected String getFindByUniqueIdQuery()
Returns the name of the NamedQuery to find an Entity by the business key.

Specified by:
getFindByUniqueIdQuery in class AbstractGenericJpaDao<Module,Long>
Returns:
Name of the query


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