public final class NotificationHome extends Object
| Modifier and Type | Method and Description |
|---|---|
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 List<Notification> |
findAll()
Find all notifications
|
static 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
|
public static int newPrimaryKey()
public static int create(Notification notification)
notification - instance of the Notification object to insertpublic static void update(Notification notification)
notification - the reference of the Notificationpublic static void remove(int nIdNotification)
nIdNotification - int identifier of the notification to deletepublic static Notification findByPrimaryKey(int nIdNotification)
nIdNotification - The identifier of the notificationpublic static List<Notification> findAll()
Notificationpublic static List<Notification> findByFilter(NotificationFilter nFilter)
nFilter - the filterNotificationpublic static int countNotificationsByFilter(NotificationFilter nFilter)
nFilter - the filterCopyright © 2017 City of Paris. All rights reserved.