fr.paris.lutece.plugins.mylutece.modules.notification.business
Interface INotificationDAO

All Known Implementing Classes:
NotificationDAO

public interface INotificationDAO

INotificationDAO


Method Summary
 int countNotificationsByFilter(NotificationFilter nFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Count the number of notificationsd by filter
 void delete(int nIdNotification, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 int insert(Notification notification, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 Notification load(int nIdNotification, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data from the table
 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Generates a new primary key
 java.util.List<Notification> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find all notification
 java.util.List<Notification> selectNotificationsByFilter(NotificationFilter nFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find by filter
 void store(Notification notification, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 

Method Detail

newPrimaryKey

int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key

Parameters:
plugin - The Plugin
Returns:
The new primary key

insert

int insert(Notification notification,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Parameters:
notification - instance of the Notification object to insert
plugin - the Plugin
Returns:
the key of the newly created notification

store

void store(Notification notification,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Parameters:
notification - the reference of the Notification
plugin - the Plugin

delete

void delete(int nIdNotification,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Parameters:
nIdNotification - int identifier of the notification to delete
plugin - the Plugin

load

Notification load(int nIdNotification,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table

Parameters:
nIdNotification - The identifier of the notification
plugin - the Plugin
Returns:
The instance of the Notification

selectAll

java.util.List<Notification> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find all notification

Parameters:
plugin - Plugin
Returns:
a list of Notification

selectNotificationsByFilter

java.util.List<Notification> selectNotificationsByFilter(NotificationFilter nFilter,
                                                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find by filter

Parameters:
nFilter - the filter
plugin - Plugin
Returns:
a list of Notification

countNotificationsByFilter

int countNotificationsByFilter(NotificationFilter nFilter,
                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
Count the number of notificationsd by filter

Parameters:
nFilter - the filter
plugin - Plugin
Returns:
the number of notifications


Copyright © 2011 Mairie de Paris. All Rights Reserved.