|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.portal.business.mailinglist.MailingListDAO
public final class MailingListDAO
This class provides Data Access methods for MailingList objects
| Constructor Summary | |
|---|---|
MailingListDAO()
|
|
| Method Summary | |
|---|---|
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 |
java.util.Collection<MailingList> |
selectAll()
Load the data of all the mailingLists and returns them in form of a collection |
java.util.Collection |
selectByWorkgroup(java.lang.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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MailingListDAO()
| Method Detail |
|---|
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 mailingList
public 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 java.util.Collection<MailingList> selectAll()
selectAll in interface IMailingListDAOpublic java.util.Collection selectByWorkgroup(java.lang.String strWorkgroup)
selectByWorkgroup in interface IMailingListDAOstrWorkgroup - The workgroup
public void insertFilter(MailingListUsersFilter mailingListUsersFilter,
int nMailingListId)
insertFilter in interface IMailingListDAOnMailingListId - The mailing list IdmailingListUsersFilter - instance of the MailingListUsersFilter object to insert
public 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 list
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||