org.promotego.dao.interfaces
Interface ScheduledGameDao

All Superinterfaces:
Dao<ScheduledGame>, RadiusSearchDao<ScheduledGame>
All Known Implementing Classes:
HibernateScheduledGameDao

public interface ScheduledGameDao
extends RadiusSearchDao<ScheduledGame>


Method Summary
 java.util.List<ScheduledGame> getByUser(User theUser)
           
 java.util.List<ScheduledGame> getGamesNeedingReminder(java.util.Date currentTime, long reminderWindow)
          Return the list of games coming up in the specified reminder window from the current time, which have not had reminders sent already.
 
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
 

Method Detail

getByUser

java.util.List<ScheduledGame> getByUser(User theUser)

getGamesNeedingReminder

java.util.List<ScheduledGame> getGamesNeedingReminder(java.util.Date currentTime,
                                                      long reminderWindow)
Return the list of games coming up in the specified reminder window from the current time, which have not had reminders sent already.

Parameters:
currentTime - The beginning of the search period for upcoming games.
reminderWindow - The length of the search period for upcoming games.
Returns:
The list of games in the specified interval which still need reminders sent.


Copyright © 2007. All Rights Reserved.