public final class DbNotificationDAO extends Object implements IDbNotificationDAO
| Constructor and Description |
|---|
DbNotificationDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
insert(DbNotification notification,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
DbNotification |
load(int nKey,
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<DbNotification> |
selectByDemand(int nDemandId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select all notification for a given demand
|
List<Integer> |
selectIdNotificationsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the notification objects and returns them as a collection
|
List<DbNotification> |
selectNotificationsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the notification objects and returns them as a collection
|
void |
store(DbNotification notification,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The Pluginpublic void insert(DbNotification notification, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IDbNotificationDAOnotification - instance of the DbNotification object to insertplugin - the Pluginpublic DbNotification load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IDbNotificationDAOnKey - The identifier of the notificationplugin - the Pluginpublic void delete(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IDbNotificationDAOnKey - The identifier of the DbNotification to deleteplugin - the Pluginpublic void store(DbNotification notification, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IDbNotificationDAOnotification - the reference of the DbNotificationplugin - the Pluginpublic List<DbNotification> selectNotificationsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectNotificationsList in interface IDbNotificationDAOplugin - the Pluginpublic List<Integer> selectIdNotificationsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectIdNotificationsList in interface IDbNotificationDAOplugin - the Pluginpublic List<DbNotification> selectByDemand(int nDemandId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectByDemand in interface IDbNotificationDAOnDemandId - The demand IDplugin - the PluginCopyright © 2016 City of Paris. All rights reserved.