Interface IMailingListDAO
-
- All Known Implementing Classes:
MailingListDAO
public interface IMailingListDAOIMailingListDAO Interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancheckFilter(MailingListUsersFilter filter, int nId)Check if the filter already exists or not in the mailing listvoiddelete(int nIdMailingList)Delete a record from the tablevoiddeleteFilter(MailingListUsersFilter filter, int nId)Remove an users filter from the mailing listvoidinsert(MailingList mailingList)Insert a new record in the table.voidinsertFilter(MailingListUsersFilter filter, int nId)Add an users filter to the mailing listMailingListload(int nKey)load the data of the right from the tableCollection<MailingList>selectAll()Loads the data of all the mailingLists and returns them in form of a collectionList<MailingList>selectByFilter(MailingListFilter filter)Select by filter.Collection<MailingList>selectByWorkgroup(String strWorkgroup)Returns all mailing lists having a scope restricted to a given workgroupvoidstore(MailingList mailingList)Update the record in the table
-
-
-
Method Detail
-
insert
void insert(MailingList mailingList)
Insert a new record in the table.- Parameters:
mailingList- instance of the MailingList object to inssert
-
store
void store(MailingList mailingList)
Update the record in the table- Parameters:
mailingList- the reference of the MailingList
-
delete
void delete(int nIdMailingList)
Delete a record from the table- Parameters:
nIdMailingList- int identifier of the MailingList to delete
-
load
MailingList load(int nKey)
load the data of the right from the table- Parameters:
nKey- The identifier of the mailingList- Returns:
- The instance of the mailingList
-
selectAll
Collection<MailingList> selectAll()
Loads the data of all the mailingLists and returns them in form of a collection- Returns:
- the collection which contains the data of all the mailingLists
-
selectByWorkgroup
Collection<MailingList> selectByWorkgroup(String strWorkgroup)
Returns all mailing lists having a scope restricted to a given workgroup- Parameters:
strWorkgroup- The workgroup- Returns:
- the collection which contains the data of all the mailingLists
-
insertFilter
void insertFilter(MailingListUsersFilter filter, int nId)
Add an users filter to the mailing list- Parameters:
filter- the filter to addnId- The Id of the mailing list
-
deleteFilter
void deleteFilter(MailingListUsersFilter filter, int nId)
Remove an users filter from the mailing list- Parameters:
filter- the filter to removenId- The Id of the mailing list
-
checkFilter
boolean checkFilter(MailingListUsersFilter filter, int nId)
Check if the filter already exists or not in the mailing list- Parameters:
filter- the filternId- the id mailing list- Returns:
- true if it already exists, false otherwise
-
selectByFilter
List<MailingList> selectByFilter(MailingListFilter filter)
Select by filter.- Parameters:
filter- the filter- Returns:
- the list
-
-