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 ISendingNewsLetterDAO
sending
- the object to be insertedplugin
- the Pluginpublic void delete(int nSendingId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface ISendingNewsLetterDAO
nSendingId
- the sending Identifierplugin
- the Pluginpublic SendingNewsLetter load(int nSendingId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface ISendingNewsLetterDAO
nSendingId
- the sending identifierplugin
- the Pluginpublic void store(SendingNewsLetter sending, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface ISendingNewsLetterDAO
sending
- an instance of the class SendingNewsLetterplugin
- the Pluginpublic SendingNewsLetter selectLastSendingForNewsletterId(int newsletterId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectLastSendingForNewsletterId
in interface ISendingNewsLetterDAO
newsletterId
- 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 ISendingNewsLetterDAO
newsletterId
- 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 ISendingNewsLetterDAO
plugin
- the pluginpublic ArrayList<SendingNewsLetter> findSendingsByIds(ArrayList<Integer> listId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findSendingsByIds
in interface ISendingNewsLetterDAO
listId
- A list of newsletter idplugin
- the pluginCopyright © 2019 City of Paris. All rights reserved.