2013-10-07 14:20:20 -04:00
|
|
|
package com.uncc.gameday.alerts;
|
|
|
|
|
2013-10-14 13:35:21 -04:00
|
|
|
import java.util.Date;
|
2013-10-07 14:20:20 -04:00
|
|
|
import java.util.List;
|
|
|
|
|
2013-11-20 11:55:39 -05:00
|
|
|
// TODO: Auto-generated Javadoc
|
2013-10-14 13:35:21 -04:00
|
|
|
/* Responsible for handling persistence/fetching of alerts */
|
2013-10-07 14:20:20 -04:00
|
|
|
|
2013-11-20 11:55:39 -05:00
|
|
|
/**
|
|
|
|
* The Class AlertDB.
|
|
|
|
*/
|
2013-10-07 14:20:20 -04:00
|
|
|
public class AlertDB {
|
2013-10-14 13:35:21 -04:00
|
|
|
|
2013-11-20 11:55:39 -05:00
|
|
|
/**
|
|
|
|
* Persist.
|
|
|
|
*
|
|
|
|
* @param a the a
|
|
|
|
*/
|
2013-10-14 13:35:21 -04:00
|
|
|
public void persist(Alert a) {
|
|
|
|
|
2013-10-07 14:20:20 -04:00
|
|
|
}
|
|
|
|
|
2013-11-20 11:55:39 -05:00
|
|
|
/**
|
|
|
|
* Persist multiple.
|
|
|
|
*
|
|
|
|
* @param alerts the alerts
|
|
|
|
*/
|
2013-10-14 13:35:21 -04:00
|
|
|
public void persistMultiple(List<Alert> alerts) {
|
|
|
|
|
2013-10-07 14:20:20 -04:00
|
|
|
}
|
|
|
|
|
2013-11-20 11:55:39 -05:00
|
|
|
/**
|
|
|
|
* Fetch.
|
|
|
|
*
|
|
|
|
* @param d the d
|
|
|
|
* @return the alert
|
|
|
|
*/
|
2013-10-14 13:35:21 -04:00
|
|
|
public Alert fetch(Date d) {
|
|
|
|
|
|
|
|
return null;
|
2013-10-07 14:20:20 -04:00
|
|
|
}
|
|
|
|
|
2013-11-20 11:55:39 -05:00
|
|
|
/**
|
|
|
|
* Fetch multiple.
|
|
|
|
*
|
|
|
|
* @param dates the dates
|
|
|
|
* @return the list
|
|
|
|
*/
|
2013-10-14 13:35:21 -04:00
|
|
|
public List<Alert> fetchMultiple(List<Date> dates) {
|
|
|
|
|
|
|
|
return null;
|
2013-10-09 19:39:20 -04:00
|
|
|
}
|
2013-10-09 20:20:04 -04:00
|
|
|
|
2013-11-20 11:55:39 -05:00
|
|
|
/**
|
|
|
|
* Fetch all.
|
|
|
|
*
|
|
|
|
* @return the list
|
|
|
|
*/
|
2013-10-14 13:35:21 -04:00
|
|
|
public List<Alert> fetchAll() {
|
|
|
|
|
2013-10-09 20:20:04 -04:00
|
|
|
return null;
|
|
|
|
}
|
2013-10-16 14:14:20 -04:00
|
|
|
|
2013-11-20 11:55:39 -05:00
|
|
|
/**
|
|
|
|
* Fetch unread.
|
|
|
|
*
|
|
|
|
* @return the list
|
|
|
|
*/
|
2013-10-16 14:14:20 -04:00
|
|
|
public List<Alert> fetchUnread() {
|
|
|
|
return null;
|
|
|
|
}
|
2013-10-07 14:20:20 -04:00
|
|
|
}
|