public final class CampaignHome extends Object
| Modifier and Type | Method and Description |
|---|---|
static Campaign |
create(Campaign campaign)
Create an instance of the campaign class
|
static Campaign |
findByCampaignCode(String strCampaignCode)
Returns an instance of a campaign whose code is specified in parameter
|
static Campaign |
findByPrimaryKey(int nKey)
Returns an instance of a campaign whose identifier is specified in parameter
|
static List<Campaign> |
getCampaignsList()
Load the data of all the campaign objects and returns them as a list
|
static fr.paris.lutece.util.ReferenceList |
getCampaignsReferenceList()
Load the data of all the campaign objects and returns them as a referenceList
|
static List<Integer> |
getIdCampaignsList()
Load the id of all the campaign objects and returns them as a list
|
static void |
remove(int nKey)
Remove the campaign whose identifier is specified in parameter
|
static Campaign |
update(Campaign campaign)
Update of the campaign which is specified in parameter
|
public static Campaign create(Campaign campaign)
campaign - The instance of the Campaign which contains the informations to storepublic static Campaign update(Campaign campaign)
campaign - The instance of the Campaign which contains the data to storepublic static void remove(int nKey)
nKey - The campaign Idpublic static Campaign findByPrimaryKey(int nKey)
nKey - The campaign primary keypublic static Campaign findByCampaignCode(String strCampaignCode)
strCampaignCode - The campaign codepublic static List<Campaign> getCampaignsList()
public static List<Integer> getIdCampaignsList()
public static fr.paris.lutece.util.ReferenceList getCampaignsReferenceList()
Copyright © 2022 City of Paris. All rights reserved.