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 |
findByPrimaryKey(int nKey)
Returns an instance of a campaign whose identifier is specified in parameter
|
static Collection<Campaign> |
getCampaignsList()
Load the data of all the campaign objects and returns them in form of a collection
|
static Collection<Integer> |
getIdCampaignsList()
Load the id of all the campaign objects and returns them in form of a collection
|
static Campaign |
getLastCampaign()
Returns an instance which represents the last campaign
|
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 getLastCampaign()
public static Collection<Campaign> getCampaignsList()
public static Collection<Integer> getIdCampaignsList()
Copyright © 2020 City of Paris. All rights reserved.