org.promotego.dao.hibernate
Class HibernateRadiusSearchDaoSupport<T>

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<T>
All Implemented Interfaces:
Dao<T>, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
HibernateLocationDao, HibernateOfferedGameDao, HibernateScheduledGameDao

public abstract class HibernateRadiusSearchDaoSupport<T>
extends HibernateDaoSupport<T>


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
protected HibernateRadiusSearchDaoSupport(DistanceTool<T> distanceTool)
           
 
Method Summary
protected  java.util.List<T> findInRange(org.promotego.api.geocoder.beans.Geolocation geolocation, double radius)
           
 java.util.List<T> findNear(org.promotego.api.geocoder.beans.Geolocation theTee, double radius)
          Find all locations within the radius in miles specified of the given location.
 
Methods inherited from class org.promotego.dao.hibernate.HibernateDaoSupport
create, create, delete, deleteAll, findAll, getById, getCount, getCountQuery, getFindAllQuery, getIdQuery, 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
 

Constructor Detail

HibernateRadiusSearchDaoSupport

protected HibernateRadiusSearchDaoSupport(DistanceTool<T> distanceTool)
Method Detail

findNear

public java.util.List<T> findNear(org.promotego.api.geocoder.beans.Geolocation theTee,
                                  double radius)
Find all locations within the radius in miles specified of the given location.


findInRange

protected java.util.List<T> findInRange(org.promotego.api.geocoder.beans.Geolocation geolocation,
                                        double radius)


Copyright © 2007. All Rights Reserved.