it.geosolutions.geobatch.ftpserver.dao.hibernate
Class DAOAbstractSpring<T,ID extends java.io.Serializable>

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by it.geosolutions.geobatch.ftpserver.dao.hibernate.DAOAbstractSpring<T,ID>
All Implemented Interfaces:
GenericDAO<T,ID>, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
HibFtpPropsDAO, HibFtpServerConfigDAO

public abstract class DAOAbstractSpring<T,ID extends java.io.Serializable>
extends org.springframework.orm.hibernate3.support.HibernateDaoSupport
implements GenericDAO<T,ID>

Author:
giuseppe

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
DAOAbstractSpring(java.lang.Class<T> persistentClass)
           
 
Method Summary
 java.util.List<T> findAll()
           
 java.util.List<T> findAll(int offset, int limite)
           
 java.util.List<T> findByCriteria(org.hibernate.criterion.Criterion... criterion)
           
 java.util.List<T> findByCriteria(int offset, int limite, org.hibernate.criterion.Criterion... criterion)
           
 T findById(ID id, boolean lock)
           
protected  java.lang.Class<T> getPersistentClass()
           
 void lock(T entity)
           
 T makePersistent(T entity)
           
 void makeTransient(T entity)
           
 
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

DAOAbstractSpring

public DAOAbstractSpring(java.lang.Class<T> persistentClass)
Method Detail

getPersistentClass

protected java.lang.Class<T> getPersistentClass()

findAll

public java.util.List<T> findAll()
                          throws DAOException
Throws:
DAOException

findAll

public java.util.List<T> findAll(int offset,
                                 int limite)
                          throws DAOException
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.