edu.nrao.sss.dao.user
Class HibernateUserDao

java.lang.Object
  extended by edu.nrao.sss.dao.HibernateDao
      extended by edu.nrao.sss.dao.user.HibernateUserDao

public class HibernateUserDao
extends HibernateDao

A Hibernate data access object for Users.

CVS Info:

$Revision: 265 $
$Date: 2007-01-17 09:29:10 -0700 (Wed, 17 Jan 2007) $
$Author: btruitt $

Since:
2006-06-29

Field Summary
 
Fields inherited from class edu.nrao.sss.dao.HibernateDao
factories
 
Constructor Summary
HibernateUserDao()
          empty no-arg constructor
HibernateUserDao(String cfg, org.hibernate.Interceptor i)
           
 
Method Summary
 void delete(int id)
           
 void delete(User user)
           
 List<User> findUser(String entity, String user)
           
 List<User> findUser(String entity, String user, String band)
           
 User findUserByAccountName(String accountName)
           
 User findUserByAccountNameAndPassword(String accountName, String password)
           
 User findUserById(int id)
           
 List<User> findUserByLastName(String lastName)
           
 List<User> getUsers()
           
 List<User> getUsers(UserFilter filter)
           
 void save(Set<User> users)
           
 void save(User user)
           
 
Methods inherited from class edu.nrao.sss.dao.HibernateDao
addDaoListener, beginTransaction, closeSession, commitTransaction, destroyAllFactories, destroyFactory, fireRollbackEvent, getConfigurationFileName, getInterceptor, getSession, getSessionFactory, removeDaoListeners, rollbackTransaction, setConfigurationFileName, setInterceptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateUserDao

public HibernateUserDao()
empty no-arg constructor

See Also:
HibernateDao

HibernateUserDao

public HibernateUserDao(String cfg,
                        org.hibernate.Interceptor i)
See Also:
HibernateDao
Method Detail

delete

public void delete(int id)
            throws RepositoryException
Throws:
RepositoryException

delete

public void delete(User user)
            throws RepositoryException
Throws:
RepositoryException

findUser

public List<User> findUser(String entity,
                           String user)
                    throws RepositoryException
Throws:
RepositoryException

findUser

public List<User> findUser(String entity,
                           String user,
                           String band)
                    throws RepositoryException
Throws:
RepositoryException

findUserById

public User findUserById(int id)
                  throws RepositoryException
Throws:
RepositoryException

findUserByAccountName

public User findUserByAccountName(String accountName)
                           throws RepositoryException
Throws:
RepositoryException

findUserByAccountNameAndPassword

public User findUserByAccountNameAndPassword(String accountName,
                                             String password)
                                      throws RepositoryException,
                                             NoSuchObjectException
Throws:
RepositoryException
NoSuchObjectException

findUserByLastName

public List<User> findUserByLastName(String lastName)
                              throws RepositoryException
Throws:
RepositoryException

getUsers

public List<User> getUsers()
                    throws RepositoryException
Throws:
RepositoryException

getUsers

public List<User> getUsers(UserFilter filter)
                    throws RepositoryException
Throws:
RepositoryException

save

public void save(Set<User> users)
          throws RepositoryException
Throws:
RepositoryException

save

public void save(User user)
          throws RepositoryException
Throws:
RepositoryException


Copyright © 2009. All Rights Reserved.