public class NotificationModel extends Object
Constructor and Description |
---|
NotificationModel() |
Modifier and Type | Method and Description |
---|---|
void |
acknowledged(String name,
int noticeId)
This method updates the table when the user acknowledges the pager
information.
|
Notification[] |
allNotifications()
allNotifications
|
Notification[] |
allNotifications(String order)
Return all notifications, both outstanding and acknowledged.
|
Notification |
getNoticeInfo(int id)
getNoticeInfo
|
int |
getOutstandingNoticeCount()
This method returns notices not yet acknowledged.
|
int |
getOutstandingNoticeCount(String username)
This method returns notices not yet acknowledged.
|
Notification[] |
getOutstandingNotices()
This method returns the count of all outstanding notices.
|
Notification[] |
getOutstandingNotices(String name)
This method returns notices not yet acknowledged.
|
void |
insert(Notification nbean)
This method helps insert into the database.
|
protected Notification[] |
rs2NotifyBean(Connection conn,
ResultSet rs)
Returns the data from the result set as an array of
Notification objects.
|
public Notification getNoticeInfo(int id) throws SQLException
getNoticeInfo
id
- a int.Notification
object.SQLException
- if any.public Notification[] allNotifications() throws SQLException
allNotifications
Notification
objects.SQLException
- if any.public Notification[] allNotifications(String order) throws SQLException
order
- a String
object.Notification
objects.SQLException
- if any.protected Notification[] rs2NotifyBean(Connection conn, ResultSet rs) throws SQLException
conn
- a Connection
object.rs
- a ResultSet
object.Notification
objects.SQLException
- if any.public Notification[] getOutstandingNotices() throws SQLException
Notification
objects.SQLException
- if any.public int getOutstandingNoticeCount() throws SQLException
SQLException
- if any.public int getOutstandingNoticeCount(String username) throws SQLException
username
- a String
object.SQLException
- if any.public Notification[] getOutstandingNotices(String name) throws SQLException
name
- a String
object.Notification
objects.SQLException
- if any.public void acknowledged(String name, int noticeId) throws SQLException
name
- a String
object.noticeId
- a int.SQLException
- if any.public void insert(Notification nbean) throws SQLException
nbean
- a Notification
object.SQLException
- if any.Copyright © 2015. All rights reserved.