public final class CountryHome extends Object
| Modifier and Type | Method and Description |
|---|---|
static Country |
create(Country country)
Create an instance of the country class
|
static Optional<Country> |
findByCode(String strCode)
Returns an instance of a country whose identifier is specified in parameter
|
static Optional<Country> |
findByPrimaryKey(int nKey)
Returns an instance of a country whose identifier is specified in parameter
|
static List<Country> |
getCountriesList()
Load the data of all the country objects and returns them as a list
|
static List<Country> |
getCountriesListByIds(List<Integer> listIds)
Load the data of all the avant objects and returns them as a list
|
static List<Country> |
getCountriesListByName(String strSearch)
Load the data of all the country objects and returns them as a list
|
static fr.paris.lutece.util.ReferenceList |
getCountriesReferenceList()
Load the data of all the country objects and returns them as a referenceList
|
static List<Integer> |
getIdCountriesList()
Load the id of all the country objects and returns them as a list
|
static void |
remove(int nKey)
Remove the country whose identifier is specified in parameter
|
static Country |
update(Country country)
Update of the country which is specified in parameter
|
public static Country create(Country country)
country - The instance of the Country which contains the informations to storepublic static Country update(Country country)
country - The instance of the Country which contains the data to storepublic static void remove(int nKey)
nKey - The country Idpublic static Optional<Country> findByPrimaryKey(int nKey)
nKey - The country primary keypublic static Optional<Country> findByCode(String strCode)
nKey - The country primary keypublic static List<Country> getCountriesList()
public static List<Country> getCountriesListByName(String strSearch)
public static List<Integer> getIdCountriesList()
public static fr.paris.lutece.util.ReferenceList getCountriesReferenceList()
Copyright © 2023 City of Paris. All rights reserved.