Class CityHome
java.lang.Object
fr.paris.lutece.plugins.geocodes.business.CityHome
This class provides instances management methods (create, find, ...) for City objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic CityaddCityChanges(City city, String autor, String applied) static CityCreate an instance of the city classfindByCode(String strCode) Returns an instance of a city whose identifier is specified in parameterfindByDateAndCode(Date dateCity, String strCode) Returns an instance of a city whose identifier is specified in parameterfindByPrimaryKey(int nKey) Returns an instance of a city whose identifier is specified in parametergetAllCitiesWithChanges(String cityLabel, String cityCode, String placeCode, boolean approximateSearch, String status) static booleangetChangesExistence(City city) static List<CityChanges>getChangesListByCode(String code) getCitiesCodesListByDate(Date dateCity) Load the data of all the city codes and returns them as a listLoad the data of all the city objects and returns them as a listgetCitiesListByCode(String code) Load the data of all the avant objects and returns them as a listgetCitiesListByIds(List<Integer> listIds) Load the data of all the avant objects and returns them as a listLoad the data of all the city objects by last date update and returns them as a listgetCitiesListByName(String strVal) Load the data of all the city objects and returns them as a listgetCitiesListByNameAndDate(String strVal, Date dateCity) Load the data of all the city objects and returns them as a listgetCitiesListByNameAndDateLike(String strVal, Date dateCity) Load the data of all the city objects and returns them as a listgetCitiesListByNameLike(String strVal) Load the data of all the city objects and returns them as a liststatic fr.paris.lutece.util.ReferenceListLoad the data of all the city objects and returns them as a referenceListstatic CitygetCityByCodeAndDate(String code, Date date) static CityChangesgetCityChangesByCodeAndDate(String code, Date date) getIdCitiesList(String cityLabel, String cityCode, String placeCode, boolean approximateSearch) Load the id of all the city objects and returns them as a liststatic voidremove(int nKey) Remove the city whose identifier is specified in parameterstatic CityUpdate of the city which is specified in parameterstatic voidupdateChanges(CityChanges history)
-
Method Details
-
create
Create an instance of the city class- Parameters:
city- The instance of the City which contains the informations to store- Returns:
- The instance of city which has been created with its primary key.
-
update
Update of the city which is specified in parameter- Parameters:
city- The instance of the City which contains the data to store- Returns:
- The instance of the city which has been updated
-
addCityChanges
-
getAllCitiesWithChanges
-
getCityChangesByCodeAndDate
-
getChangesListByCode
-
updateChanges
-
remove
public static void remove(int nKey) Remove the city whose identifier is specified in parameter- Parameters:
nKey- The city Id
-
findByPrimaryKey
Returns an instance of a city whose identifier is specified in parameter- Parameters:
nKey- The city primary key- Returns:
- an instance of City
-
findByCode
Returns an instance of a city whose identifier is specified in parameter- Parameters:
nKey- The city primary key- Returns:
- an instance of City
-
getCitiesList
Load the data of all the city objects and returns them as a list- Returns:
- the list which contains the data of all the city objects
-
getCitiesListByName
Load the data of all the city objects and returns them as a list- Returns:
- the list which contains the data of all the city objects
-
getCitiesListByNameLike
Load the data of all the city objects and returns them as a list- Returns:
- the list which contains the data of all the city objects
-
getIdCitiesList
public static List<Integer> getIdCitiesList(String cityLabel, String cityCode, String placeCode, boolean approximateSearch) Load the id of all the city objects and returns them as a list- Returns:
- the list which contains the id of all the city objects
-
getCitiesReferenceList
public static fr.paris.lutece.util.ReferenceList getCitiesReferenceList()Load the data of all the city objects and returns them as a referenceList- Returns:
- the referenceList which contains the data of all the city objects
-
getCitiesListByIds
Load the data of all the avant objects and returns them as a list- Parameters:
listIds- liste of ids- Returns:
- the list which contains the data of all the avant objects
-
getCitiesListByCode
Load the data of all the avant objects and returns them as a list- Parameters:
listIds- liste of ids- Returns:
- the list which contains the data of all the avant objects
-
findByDateAndCode
Returns an instance of a city whose identifier is specified in parameter- Parameters:
strCode- The city primary keydateCity- date of city- Returns:
- an instance of City
-
getCitiesCodesListByDate
Load the data of all the city codes and returns them as a list- Parameters:
dateCity- date of city- Returns:
- the list which contains the data of all the city objects
-
getCitiesListByNameAndDate
Load the data of all the city objects and returns them as a list- Parameters:
strVal- The city namedateCity- date of city- Returns:
- the list which contains the data of all the city objects
-
getCitiesListByNameAndDateLike
Load the data of all the city objects and returns them as a list- Parameters:
strVal- The city namedateCity- date of city- Returns:
- the list which contains the data of all the city objects
-
getCitiesListByLastDate
Load the data of all the city objects by last date update and returns them as a list- Returns:
- the list which contains the data of all the city objects by last date update
-
getChangesExistence
-
getCityByCodeAndDate
-