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
|
int |
newPrimaryKey()
Generates a new primary key
|
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 int newPrimaryKey()
public void insert(MailingList mailingList)
insert in interface IMailingListDAOmailingList - instance of the MailingList object to insertpublic MailingList load(int nId)
load in interface IMailingListDAOnId - The identifier of the mailingListpublic void delete(int nMailingListId)
delete in interface IMailingListDAOnMailingListId - The identifier of the mailingListpublic void store(MailingList mailingList)
store in interface IMailingListDAOmailingList - The reference of the mailingListpublic Collection<MailingList> selectAll()
selectAll in interface IMailingListDAOpublic Collection<MailingList> selectByWorkgroup(String strWorkgroup)
selectByWorkgroup in interface IMailingListDAOstrWorkgroup - The workgrouppublic void insertFilter(MailingListUsersFilter mailingListUsersFilter, int nMailingListId)
insertFilter in interface IMailingListDAOnMailingListId - The mailing list IdmailingListUsersFilter - instance of the MailingListUsersFilter object to insertpublic void deleteFilter(MailingListUsersFilter filter, int nMailingListId)
deleteFilter in interface IMailingListDAOnMailingListId - 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 IMailingListDAOfilter - the filternId - the id mailing listpublic List<MailingList> selectByFilter(MailingListFilter filter)
selectByFilter in interface IMailingListDAOfilter - the filterCopyright © 2016 City of Paris. All rights reserved.