fr.paris.lutece.plugins.mylutece.modules.notification.business
Class NotificationHome

java.lang.Object
  extended by fr.paris.lutece.plugins.mylutece.modules.notification.business.NotificationHome

public final class NotificationHome
extends java.lang.Object

NotificationHome


Method Summary
static int countNotificationsByFilter(NotificationFilter nFilter)
          Count the number of notificationsd by filter
static int create(Notification notification)
          Insert a new record in the table.
static java.util.List<Notification> findAll()
          Find all notifications
static java.util.List<Notification> findByFilter(NotificationFilter nFilter)
          Find all notification by filter
static Notification findByPrimaryKey(int nIdNotification)
          Load the data from the table
static int newPrimaryKey()
          Generates a new primary key
static void remove(int nIdNotification)
          Delete a record from the table
static void update(Notification notification)
          Update the record in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newPrimaryKey

public static int newPrimaryKey()
Generates a new primary key

Returns:
The new primary key

create

public static int create(Notification notification)
Insert a new record in the table.

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

update

public static void update(Notification notification)
Update the record in the table

Parameters:
notification - the reference of the Notification

remove

public static void remove(int nIdNotification)
Delete a record from the table

Parameters:
nIdNotification - int identifier of the notification to delete

findByPrimaryKey

public static Notification findByPrimaryKey(int nIdNotification)
Load the data from the table

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

findAll

public static java.util.List<Notification> findAll()
Find all notifications

Returns:
a list of Notification

findByFilter

public static java.util.List<Notification> findByFilter(NotificationFilter nFilter)
Find all notification by filter

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

countNotificationsByFilter

public static int countNotificationsByFilter(NotificationFilter nFilter)
Count the number of notificationsd by filter

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


Copyright © 2011 Mairie de Paris. All Rights Reserved.