public final class MailingListDAO extends Object implements IMailingListDAO
Constructor and Description |
---|
MailingListDAO() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkFilter(MailingListUsersFilter filter,
int nId)
Check if the filter already exists or not in the mailing list
|
void |
delete(int nMailingListId)
Delete a record from the table
|
void |
deleteFilter(MailingListUsersFilter filter,
int nMailingListId)
Remove an users filter from the mailing list
|
void |
deleteFilters(int nMailingListUsersFilterId)
Delete a record from the table
|
void |
insert(MailingList mailingList)
Insert a new record in the table.
|
void |
insertFilter(MailingListUsersFilter mailingListUsersFilter,
int nMailingListId)
Insert a new record in the table.
|
MailingList |
load(int nId)
Load the data of the mailingList from the table
|
Collection<MailingList> |
selectAll()
Load the data of all the mailingLists and returns them in form of a collection
|
List<MailingList> |
selectByFilter(MailingListFilter filter)
Select by filter.
|
Collection<MailingList> |
selectByWorkgroup(String strWorkgroup)
Returns all mailing lists having a scope restricted to a given workgroup
|
void |
selectMailingListUsersFilters(MailingList mailinglist)
Load the data of all the mailingListUsersFilters and returns them in form of a collection
|
void |
store(MailingList mailingList)
Update the record in the table
|
public void insert(MailingList mailingList)
insert
in interface IMailingListDAO
mailingList
- instance of the MailingList object to insertpublic MailingList load(int nId)
load
in interface IMailingListDAO
nId
- The identifier of the mailingListpublic void delete(int nMailingListId)
delete
in interface IMailingListDAO
nMailingListId
- The identifier of the mailingListpublic void store(MailingList mailingList)
store
in interface IMailingListDAO
mailingList
- The reference of the mailingListpublic Collection<MailingList> selectAll()
selectAll
in interface IMailingListDAO
public Collection<MailingList> selectByWorkgroup(String strWorkgroup)
selectByWorkgroup
in interface IMailingListDAO
strWorkgroup
- The workgrouppublic void insertFilter(MailingListUsersFilter mailingListUsersFilter, int nMailingListId)
insertFilter
in interface IMailingListDAO
nMailingListId
- The mailing list IdmailingListUsersFilter
- instance of the MailingListUsersFilter object to insertpublic void deleteFilter(MailingListUsersFilter filter, int nMailingListId)
deleteFilter
in interface IMailingListDAO
nMailingListId
- The Id of the mailing listfilter
- the filter to removepublic void deleteFilters(int nMailingListUsersFilterId)
nMailingListUsersFilterId
- The identifier of the mailingListUsersFilterpublic void selectMailingListUsersFilters(MailingList mailinglist)
mailinglist
- The mailing listpublic boolean checkFilter(MailingListUsersFilter filter, int nId)
checkFilter
in interface IMailingListDAO
filter
- the filternId
- the id mailing listpublic List<MailingList> selectByFilter(MailingListFilter filter)
selectByFilter
in interface IMailingListDAO
filter
- the filterCopyright © 2020 City of Paris. All rights reserved.