public final class CampaignDAO extends Object implements ICampaignDAO
| Constructor and Description |
|---|
CampaignDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
insert(Campaign campaign,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
Campaign |
load(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
Campaign |
loadByCampaignCode(String campaignCode,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
List<Campaign> |
selectCampaignsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the campaign objects and returns them as a list
|
fr.paris.lutece.util.ReferenceList |
selectCampaignsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the campaign objects and returns them as a referenceList
|
List<Integer> |
selectIdCampaignsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the campaign objects and returns them as a list
|
void |
store(Campaign campaign,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
public void insert(Campaign campaign, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface ICampaignDAOcampaign - instance of the Campaign object to insertplugin - the Pluginpublic Campaign load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface ICampaignDAOnKey - The identifier of the campaignplugin - the Pluginpublic Campaign loadByCampaignCode(String campaignCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadByCampaignCode in interface ICampaignDAOcampaignCode - The code of the campaignplugin - the Pluginpublic void delete(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface ICampaignDAOnKey - The identifier of the Campaign to deleteplugin - the Pluginpublic void store(Campaign campaign, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface ICampaignDAOcampaign - the reference of the Campaignplugin - the Pluginpublic List<Campaign> selectCampaignsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectCampaignsList in interface ICampaignDAOplugin - the Pluginpublic List<Integer> selectIdCampaignsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectIdCampaignsList in interface ICampaignDAOplugin - the Pluginpublic fr.paris.lutece.util.ReferenceList selectCampaignsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectCampaignsReferenceList in interface ICampaignDAOplugin - the PluginCopyright © 2021 City of Paris. All rights reserved.