ch.tatool.app.service.impl
Class ModuleDAO

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by ch.tatool.app.service.impl.ModuleDAO
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

public class ModuleDAO
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport

Property access object for module objects.

Author:
Michael Ruflin

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
ModuleDAO()
           
 
Method Summary
 void addModuleProperties(ModuleImpl impl, Map<String,String> properties)
           
 void deleteModule(Module module)
          Deletes a module object.
 void deleteModule(ModuleInfoImpl moduleInfo)
          Deletes a module
 Set<Module.Info> getModules(UserAccountImpl account)
          Get info objects of all available module instances for an account.
 ModuleImpl loadModule(ModuleInfoImpl moduleInfo)
          Loads a module object from the database, using the id specified in the module.
 void saveModule(ModuleImpl module)
          Stores the module object.
 
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

ModuleDAO

public ModuleDAO()
Method Detail

getModules

public Set<Module.Info> getModules(UserAccountImpl account)
Get info objects of all available module instances for an account.

Parameters:
account -
Returns:

loadModule

public ModuleImpl loadModule(ModuleInfoImpl moduleInfo)
Loads a module object from the database, using the id specified in the module. If no module with given id exists in the database, a new one is created

Parameters:
moduleInfo - the module to load

deleteModule

public void deleteModule(ModuleInfoImpl moduleInfo)
Deletes a module

Parameters:
module - the module to load

addModuleProperties

public void addModuleProperties(ModuleImpl impl,
                                Map<String,String> properties)

saveModule

public void saveModule(ModuleImpl module)
Stores the module object.


deleteModule

public void deleteModule(Module module)
Deletes a module object.



Copyright © 2012. All Rights Reserved.