org.ikasan.console.module.dao
Class HibernateModuleDao

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by org.ikasan.console.module.dao.HibernateModuleDao
All Implemented Interfaces:
ModuleDao, org.springframework.beans.factory.InitializingBean

public class HibernateModuleDao
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements ModuleDao

Hibernate implementation of the ModuleDao

Author:
Ikasan Development Team

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
HibernateModuleDao()
           
 
Method Summary
 Set<Module> findAllModules()
          Get a Set of all Modules or an empty Set if none are found
 Set<Module> findModules(Set<Long> modulesIds)
          Get a list of all Modules matching the Set of ids passed in
 Module getModule(Long moduleId)
          Returns the Module for the given id (or returns null)
 
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateModuleDao

public HibernateModuleDao()
Method Detail

getModule

public Module getModule(Long moduleId)
Description copied from interface: ModuleDao
Returns the Module for the given id (or returns null)

Specified by:
getModule in interface ModuleDao
Parameters:
moduleId - Module id to search on
Returns:
the Module for the given id (or null)
See Also:
ModuleDao.getModule(Long)

findAllModules

public Set<Module> findAllModules()
Description copied from interface: ModuleDao
Get a Set of all Modules or an empty Set if none are found

Specified by:
findAllModules in interface ModuleDao
Returns:
A list of Modules or an empty Set if none are found
See Also:
ModuleDao.findAllModules()

findModules

public Set<Module> findModules(Set<Long> modulesIds)
Description copied from interface: ModuleDao
Get a list of all Modules matching the Set of ids passed in

Specified by:
findModules in interface ModuleDao
Parameters:
modulesIds - - Ids of the modules
Returns:
A list of Modules
See Also:
ModuleDao.findModules(Set)


Copyright © 2007-2014 Ikasan. All Rights Reserved.