public interface ISendingNewsLetterDAO
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 the sendings corresponding to a list of ids.
|
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
|
void insert(SendingNewsLetter sending, fr.paris.lutece.portal.service.plugin.Plugin plugin)
sending
- the object to be insertedplugin
- the Pluginvoid delete(int nSendingId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nSendingId
- the sending Identifierplugin
- the PluginSendingNewsLetter load(int nSendingId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nSendingId
- the sending identifierplugin
- the Pluginvoid store(SendingNewsLetter sending, fr.paris.lutece.portal.service.plugin.Plugin plugin)
sending
- an instance of the class SendingNewsLetterplugin
- the PluginSendingNewsLetter selectLastSendingForNewsletterId(int newsletterId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
newsletterId
- the newsletter id for wich we need the last sendingplugin
- the pluginList<SendingNewsLetter> findAllSendings(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- the pluginArrayList<SendingNewsLetter> findSendingsByIds(ArrayList<Integer> listId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
listId
- A list of id corresponding to sent newslettersplugin
- the pluginList<SendingNewsLetter> selectAllLastSendingForNewsletterId(int newsletterId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
newsletterId
- the newsletter id for wich we need the last sendingplugin
- the pluginCopyright © 2019 City of Paris. All rights reserved.