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