public final class NotificationHome extends Object
| Modifier and Type | Method and Description |
|---|---|
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 |
removeByIdDemand(int nIdDemand)
Delete all records from a given id demand
|
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 void removeByIdDemand(int nIdDemand)
nIdDemand - the id demandpublic static Notification findByPrimaryKey(int nIdNotification)
nIdNotification - The identifier of the notificationpublic static List<Notification> findAll()
Notificationpublic static List<Notification> findByFilter(NotificationFilter nFilter)
nFilter - the filterNotificationCopyright © 2015 City of Paris. All rights reserved.