it.geosolutions.geobatch.users.dao.hibernate
Class HibGBUserDAO

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by it.geosolutions.geobatch.users.dao.hibernate.DAOAbstractSpring<GBUser,java.lang.Long>
              extended by it.geosolutions.geobatch.users.dao.hibernate.HibGBUserDAO
All Implemented Interfaces:
GBUserDAO, GenericDAO<GBUser,java.lang.Long>, org.springframework.beans.factory.InitializingBean

public class HibGBUserDAO
extends DAOAbstractSpring<GBUser,java.lang.Long>
implements GBUserDAO, org.springframework.beans.factory.InitializingBean


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
HibGBUserDAO()
           
 
Method Summary
 void delete(GBUser ftpUser)
           
 void delete(java.lang.Long id)
           
 boolean existsAdmin()
           
 GBUser findByUserId(java.lang.Long userId)
           
 GBUser findByUserName(java.lang.String userName)
           
protected  void initDao()
          Creates the default admin if no admin user is found.
 GBUser save(GBUser ftpUser)
           
 
Methods inherited from class it.geosolutions.geobatch.users.dao.hibernate.DAOAbstractSpring
findAll, findAll, findByCriteria, findByCriteria, findById, getPersistentClass, lock, makePersistent, makeTransient
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface it.geosolutions.geobatch.users.dao.GenericDAO
findAll, findAll, findById, lock, makePersistent, makeTransient
 
Methods inherited from interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
 

Constructor Detail

HibGBUserDAO

public HibGBUserDAO()
Method Detail

initDao

protected void initDao()
                throws java.lang.Exception
Creates the default admin if no admin user is found.

Overrides:
initDao in class org.springframework.dao.support.DaoSupport
Throws:
java.lang.Exception

findByUserId

@Transactional(propagation=SUPPORTS)
public GBUser findByUserId(java.lang.Long userId)
                    throws DAOException
Specified by:
findByUserId in interface GBUserDAO
Throws:
DAOException

findByUserName

@Transactional(propagation=SUPPORTS)
public GBUser findByUserName(java.lang.String userName)
                      throws DAOException
Specified by:
findByUserName in interface GBUserDAO
Throws:
DAOException

existsAdmin

public boolean existsAdmin()
                    throws DAOException
Throws:
DAOException

delete

@Transactional(propagation=REQUIRED)
public void delete(java.lang.Long id)
            throws DAOException
Specified by:
delete in interface GBUserDAO
Throws:
DAOException

delete

@Transactional(propagation=REQUIRED)
public void delete(GBUser ftpUser)
            throws DAOException
Specified by:
delete in interface GBUserDAO
Throws:
DAOException

save

@Transactional(propagation=REQUIRED)
public GBUser save(GBUser ftpUser)
            throws DAOException
Specified by:
save in interface GBUserDAO
Throws:
DAOException


Copyright © 2008-2012 GeoSolutions. All Rights Reserved.