ch.tatool.app.service.impl
Class UserAccountDAO

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.UserAccountDAO
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean

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

Property access object for user account objects.

Author:
Michael Ruflin

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
UserAccountDAO()
           
 
Method Summary
 void deleteAccount(UserAccountImpl account)
          Deletes a user account.
 void loadAccount(UserAccountImpl userAccount)
          Loads an account object from the database, using the id specified in the account.
 void saveAccount(UserAccountImpl account)
          Stores a user account.
 void setAccountPassword(UserAccountImpl account, String password)
           
 void shutdown()
           
 
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

UserAccountDAO

public UserAccountDAO()
Method Detail

loadAccount

public void loadAccount(UserAccountImpl userAccount)
Loads an account object from the database, using the id specified in the account. If no account with given id exists, a new one is created.

Parameters:
module - the module to load

saveAccount

public void saveAccount(UserAccountImpl account)
Stores a user account.


deleteAccount

public void deleteAccount(UserAccountImpl account)
Deletes a user account.


setAccountPassword

public void setAccountPassword(UserAccountImpl account,
                               String password)

shutdown

public void shutdown()


Copyright © 2012. All Rights Reserved.