public class EventDAODbFacadeImpl extends BaseDAODbFacade implements EventDAO
EventSubscriberDAODbFacadeImpl
provides an implementation of EventSubscriberDAO
that uses the
refactored DbFacade
code.dbFacade, dialect, jdbcTemplate, RETURN_VALUE_PARAMETER
Constructor and Description |
---|
EventDAODbFacadeImpl() |
Modifier and Type | Method and Description |
---|---|
List<event_subscriber> |
getAll()
Returns all event subscribers.
|
List<event_map> |
getAllEventMaps() |
List<event_notification_methods> |
getAllEventNotificationMethods()
Retrieves the list of all event notification methods.
|
List<event_subscriber> |
getAllForSubscriber(Guid id)
Retrieves all event subscriptions for the given subscriber id.
|
List<event_map> |
getEventMapByName(String event_up_name) |
List<event_notification_methods> |
getEventNotificationMethodsById(int method_id) |
List<event_notification_methods> |
getEventNotificationMethodsByType(String method_type) |
void |
subscribe(event_subscriber subscriber)
Saves the provided subscriber.
|
void |
unsubscribe(event_subscriber subscriber)
Removes the specified subscriber.
|
void |
update(event_subscriber subscriber,
int oldMethodId)
Updates the provided subscriber.
|
getCallsHandler, getCustomMapSqlParameterSource, setDbFacade, setDialect, setTemplate
public List<event_subscriber> getAll()
EventDAO
public List<event_subscriber> getAllForSubscriber(Guid id)
EventDAO
getAllForSubscriber
in interface EventDAO
id
- the subscriber idpublic List<event_notification_methods> getAllEventNotificationMethods()
EventDAO
getAllEventNotificationMethods
in interface EventDAO
public List<event_notification_methods> getEventNotificationMethodsById(int method_id)
getEventNotificationMethodsById
in interface EventDAO
public List<event_notification_methods> getEventNotificationMethodsByType(String method_type)
getEventNotificationMethodsByType
in interface EventDAO
public void subscribe(event_subscriber subscriber)
EventDAO
public void update(event_subscriber subscriber, int oldMethodId)
EventDAO
public void unsubscribe(event_subscriber subscriber)
EventDAO
unsubscribe
in interface EventDAO
subscriber
- the subscriberpublic List<event_map> getAllEventMaps()
getAllEventMaps
in interface EventDAO
public List<event_map> getEventMapByName(String event_up_name)
getEventMapByName
in interface EventDAO
Copyright © 2012. All Rights Reserved.