it.geosolutions.geobatch.users.dao.hibernate
Class HibGBUserDAO
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
it.geosolutions.geobatch.users.dao.hibernate.DAOAbstractSpring<GBUser,java.lang.Long>
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
| Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
| 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 org.springframework.beans.factory.InitializingBean |
afterPropertiesSet |
HibGBUserDAO
public HibGBUserDAO()
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.