Class NotificationHome
java.lang.Object
fr.paris.lutece.plugins.crm.business.notification.NotificationHome
NotificationHome
-
Method Summary
Modifier and TypeMethodDescriptionstatic intcreate(Notification notification) Insert a new record in the table.static List<Notification>findAll()Find all notificationsstatic List<Notification>findByFilter(NotificationFilter nFilter) Find all notification by filterstatic NotificationfindByPrimaryKey(int nIdNotification) Load the data from the tablestatic intGenerates a new primary keystatic voidremove(int nIdNotification) Delete a record from the tablestatic voidremoveByIdDemand(int nIdDemand) Delete all records from a given id demandstatic voidupdate(Notification notification) Update the record in the table
-
Method Details
-
newPrimaryKey
public static int newPrimaryKey()Generates a new primary key- Returns:
- The new primary key
-
create
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
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
-
removeByIdDemand
public static void removeByIdDemand(int nIdDemand) Delete all records from a given id demand- Parameters:
nIdDemand- the id demand
-
findByPrimaryKey
Load the data from the table- Parameters:
nIdNotification- The identifier of the notification- Returns:
- The instance of the Notification
-
findAll
Find all notifications- Returns:
- a list of
Notification
-
findByFilter
Find all notification by filter- Parameters:
nFilter- the filter- Returns:
- a list of
Notification
-