Interface ISendingNewsLetterDAO
- All Known Implementing Classes:
SendingNewsLetterDAO
public interface ISendingNewsLetterDAO
The skeleton data access methods for SendingNewsletter
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nSendingId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete the record in the databasefindAllSendings(fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns all the sendings in the database.findSendingsByIds(ArrayList<Integer> listId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns the sendings corresponding to a list of ids.voidinsert(SendingNewsLetter sending, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the table.load(int nSendingId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Loads the data from the databaseselectAllLastSendingForNewsletterId(int newsletterId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns all the last sending performed for the newsletter of given idselectLastSendingForNewsletterId(int newsletterId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns the last sending performed for the newsletter of given idvoidstore(SendingNewsLetter sending, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the record in the table
-
Method Details
-
insert
Insert a new record in the table.- Parameters:
sending- the object to be insertedplugin- the Plugin
-
delete
void delete(int nSendingId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete the record in the database- Parameters:
nSendingId- the sending Identifierplugin- the Plugin
-
load
Loads the data from the database- Parameters:
nSendingId- the sending identifierplugin- the Plugin- Returns:
- an object SendingNewsLetter
-
store
Update the record in the table- Parameters:
sending- an instance of the class SendingNewsLetterplugin- the Plugin
-
selectLastSendingForNewsletterId
SendingNewsLetter selectLastSendingForNewsletterId(int newsletterId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns the last sending performed for the newsletter of given id- Parameters:
newsletterId- the newsletter id for wich we need the last sendingplugin- the plugin- Returns:
- the last sending for the given newsletter id - null if no sending found
-
findAllSendings
Returns all the sendings in the database.- Parameters:
plugin- the plugin- Returns:
- a list of SendingNewsLetter objects.
-
findSendingsByIds
ArrayList<SendingNewsLetter> findSendingsByIds(ArrayList<Integer> listId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns the sendings corresponding to a list of ids.- Parameters:
listId- A list of id corresponding to sent newslettersplugin- the plugin- Returns:
- a list of SendingNewsLetter objects.
-
selectAllLastSendingForNewsletterId
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- Parameters:
newsletterId- the newsletter id for wich we need the last sendingplugin- the plugin- Returns:
- the last sending for the given newsletter id - null if no sending found
-