Class NotificationDAO
java.lang.Object
fr.paris.lutece.plugins.crm.business.notification.NotificationDAO
- All Implemented Interfaces:
INotificationDAO
NotificationDAO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nIdNotification, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablevoiddeleteByIdDemand(int nIdDemand, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete all record from a given id demandintinsert(Notification notification, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the table.load(int nIdNotification, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableintnewPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin) Generates a new primary keyselectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin) Find all notificationselectNotificationsByFilter(NotificationFilter nFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find by filtervoidstore(Notification notification, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the record in the table
-
Constructor Details
-
NotificationDAO
public NotificationDAO()
-
-
Method Details
-
newPrimaryKey
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin) Generates a new primary key- Specified by:
newPrimaryKeyin interfaceINotificationDAO- Parameters:
plugin- The Plugin- Returns:
- The new primary key
-
insert
Insert a new record in the table.- Specified by:
insertin interfaceINotificationDAO- Parameters:
notification- instance of the Notification object to insertplugin- the Plugin- Returns:
- the key of the newly created notification
-
load
Load the data from the table- Specified by:
loadin interfaceINotificationDAO- Parameters:
nIdNotification- The identifier of the notificationplugin- the Plugin- Returns:
- The instance of the Notification
-
store
Update the record in the table- Specified by:
storein interfaceINotificationDAO- Parameters:
notification- the reference of the Notificationplugin- the Plugin
-
delete
public void delete(int nIdNotification, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Specified by:
deletein interfaceINotificationDAO- Parameters:
nIdNotification- int identifier of the notification to deleteplugin- 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:
deleteByIdDemandin interfaceINotificationDAO- Parameters:
nIdDemand- the id demandplugin- the Plugin
-
selectAll
Find all notification- Specified by:
selectAllin interfaceINotificationDAO- 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:
selectNotificationsByFilterin interfaceINotificationDAO- Parameters:
nFilter- the filterplugin-Plugin- Returns:
- a list of
Notification
-