org.promotego.dao.hibernate
Class HibernateOfferedGameDao

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by org.promotego.dao.hibernate.HibernateDaoSupport<T>
              extended by org.promotego.dao.hibernate.HibernateRadiusSearchDaoSupport<OfferedGame>
                  extended by org.promotego.dao.hibernate.HibernateOfferedGameDao
All Implemented Interfaces:
Dao<OfferedGame>, OfferedGameDao, RadiusSearchDao<OfferedGame>, org.springframework.beans.factory.InitializingBean

public class HibernateOfferedGameDao
extends HibernateRadiusSearchDaoSupport<OfferedGame>
implements OfferedGameDao


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
protected HibernateOfferedGameDao()
           
 
Method Summary
 java.util.List<OfferedGame> findExpired(java.util.Date currentTime)
          Find all games that have expired as of the time provided.
 java.lang.String getCountQuery()
           
protected  java.lang.String getFindAllQuery()
           
protected  java.lang.String getIdQuery()
           
 
Methods inherited from class org.promotego.dao.hibernate.HibernateRadiusSearchDaoSupport
findInRange, findNear
 
Methods inherited from class org.promotego.dao.hibernate.HibernateDaoSupport
create, create, delete, deleteAll, findAll, getById, getCount, reattach, saveOrUpdate, update
 
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
 
Methods inherited from interface org.promotego.dao.interfaces.RadiusSearchDao
findNear
 
Methods inherited from interface org.promotego.dao.interfaces.Dao
create, create, delete, deleteAll, findAll, getById, getCount, reattach, saveOrUpdate, update
 

Constructor Detail

HibernateOfferedGameDao

protected HibernateOfferedGameDao()
Method Detail

getFindAllQuery

protected java.lang.String getFindAllQuery()
Specified by:
getFindAllQuery in class HibernateDaoSupport<OfferedGame>

getIdQuery

protected java.lang.String getIdQuery()
Specified by:
getIdQuery in class HibernateDaoSupport<OfferedGame>

getCountQuery

public java.lang.String getCountQuery()
Specified by:
getCountQuery in class HibernateDaoSupport<OfferedGame>

findExpired

public java.util.List<OfferedGame> findExpired(java.util.Date currentTime)
Description copied from interface: OfferedGameDao
Find all games that have expired as of the time provided.

Specified by:
findExpired in interface OfferedGameDao
Parameters:
currentTime - All games offered at or before this time are considered expired.
Returns:
The list of game offers which have expired.


Copyright © 2007. All Rights Reserved.