it.geosolutions.geobatch.users.dao.hibernate
Class DAOAbstractSpring<T,ID extends java.io.Serializable>
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
it.geosolutions.geobatch.users.dao.hibernate.DAOAbstractSpring<T,ID>
- All Implemented Interfaces:
- GenericDAO<T,ID>, org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
- HibGBUserDAO, HibUserFlowAccessDAO
public abstract class DAOAbstractSpring<T,ID extends java.io.Serializable>
- extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
- implements GenericDAO<T,ID>
- Author:
- giuseppe
| 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, initDao |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DAOAbstractSpring
public DAOAbstractSpring(java.lang.Class<T> persistentClass)
getPersistentClass
protected java.lang.Class<T> getPersistentClass()
findAll
public java.util.List<T> findAll()
throws DAOException
- Specified by:
findAll in interface GenericDAO<T,ID extends java.io.Serializable>
- Throws:
DAOException
findAll
public java.util.List<T> findAll(int offset,
int limite)
throws DAOException
- Specified by:
findAll in interface GenericDAO<T,ID extends java.io.Serializable>
- Throws:
DAOException
findByCriteria
public java.util.List<T> findByCriteria(org.hibernate.criterion.Criterion... criterion)
throws DAOException
- Throws:
DAOException
findByCriteria
public java.util.List<T> findByCriteria(int offset,
int limite,
org.hibernate.criterion.Criterion... criterion)
throws DAOException
- Throws:
DAOException
findById
public T findById(ID id,
boolean lock)
throws DAOException
- Specified by:
findById in interface GenericDAO<T,ID extends java.io.Serializable>
- Throws:
DAOException
lock
public void lock(T entity)
throws DAOException
- Specified by:
lock in interface GenericDAO<T,ID extends java.io.Serializable>
- Throws:
DAOException
makePersistent
public T makePersistent(T entity)
throws DAOException
- Specified by:
makePersistent in interface GenericDAO<T,ID extends java.io.Serializable>
- Throws:
DAOException
makeTransient
public void makeTransient(T entity)
throws DAOException
- Specified by:
makeTransient in interface GenericDAO<T,ID extends java.io.Serializable>
- Throws:
DAOException
Copyright © 2008-2012 GeoSolutions. All Rights Reserved.