public final class SendingNewsLetterDAO extends Object implements ISendingNewsLetterDAO
| Constructor and Description |
|---|
SendingNewsLetterDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int nSendingId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete the record in the database
|
List<SendingNewsLetter> |
findAllSendings(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns all the sendings in the database.
|
ArrayList<SendingNewsLetter> |
findSendingsByIds(ArrayList<Integer> listId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns all the sendings in the database.
|
void |
insert(SendingNewsLetter sending,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
SendingNewsLetter |
load(int nSendingId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Loads the data from the database
|
List<SendingNewsLetter> |
selectAllLastSendingForNewsletterId(int newsletterId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns all the last sending performed for the newsletter of given id
|
SendingNewsLetter |
selectLastSendingForNewsletterId(int newsletterId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the last sending performed for the newsletter of given id
|
void |
store(SendingNewsLetter sending,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
public void insert(SendingNewsLetter sending, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface ISendingNewsLetterDAOsending - the object to be insertedplugin - the Pluginpublic void delete(int nSendingId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface ISendingNewsLetterDAOnSendingId - the sending Identifierplugin - the Pluginpublic SendingNewsLetter load(int nSendingId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface ISendingNewsLetterDAOnSendingId - the sending identifierplugin - the Pluginpublic void store(SendingNewsLetter sending, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface ISendingNewsLetterDAOsending - an instance of the class SendingNewsLetterplugin - the Pluginpublic SendingNewsLetter selectLastSendingForNewsletterId(int newsletterId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectLastSendingForNewsletterId in interface ISendingNewsLetterDAOnewsletterId - the newsletter id for wich we need the last sendingplugin - the pluginpublic List<SendingNewsLetter> selectAllLastSendingForNewsletterId(int newsletterId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAllLastSendingForNewsletterId in interface ISendingNewsLetterDAOnewsletterId - the newsletter id for wich we need the last sendingplugin - the pluginpublic List<SendingNewsLetter> findAllSendings(fr.paris.lutece.portal.service.plugin.Plugin plugin)
findAllSendings in interface ISendingNewsLetterDAOplugin - the pluginpublic ArrayList<SendingNewsLetter> findSendingsByIds(ArrayList<Integer> listId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findSendingsByIds in interface ISendingNewsLetterDAOlistId - A list of newsletter idplugin - the pluginCopyright © 2019 City of Paris. All rights reserved.