fr.paris.lutece.plugins.crm.business.notification
Class NotificationDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.crm.business.notification.NotificationDAO
All Implemented Interfaces:
INotificationDAO

public class NotificationDAO
extends Object
implements INotificationDAO

NotificationDAO


Constructor Summary
NotificationDAO()
           
 
Method Summary
 void delete(int nIdNotification, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void deleteByIdDemand(int nIdDemand, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete all record from a given id demand
 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
 List<Notification> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find all notification
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationDAO

public NotificationDAO()
Method Detail

newPrimaryKey

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

Specified by:
newPrimaryKey in interface INotificationDAO
Parameters:
plugin - The Plugin
Returns:
The new primary key

insert

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

Specified by:
insert in interface INotificationDAO
Parameters:
notification - instance of the Notification object to insert
plugin - the Plugin
Returns:
the key of the newly created notification

load

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

Specified by:
load in interface INotificationDAO
Parameters:
nIdNotification - The identifier of the notification
plugin - the Plugin
Returns:
The instance of the Notification

store

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

Specified by:
store in interface INotificationDAO
Parameters:
notification - the reference of the Notification
plugin - the Plugin

delete

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

Specified by:
delete in interface INotificationDAO
Parameters:
nIdNotification - int identifier of the notification to delete
plugin - the Plugin

deleteByIdDemand

public void deleteByIdDemand(int nIdDemand,
                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete all record from a given id demand

Specified by:
deleteByIdDemand in interface INotificationDAO
Parameters:
nIdDemand - the id demand
plugin - the Plugin

selectAll

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

Specified by:
selectAll in interface INotificationDAO
Parameters:
plugin - Plugin
Returns:
a list of Notification

selectNotificationsByFilter

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

Specified by:
selectNotificationsByFilter in interface INotificationDAO
Parameters:
nFilter - the filter
plugin - Plugin
Returns:
a list of Notification


Copyright © 2013 Mairie de Paris. All Rights Reserved.