Interface ICityDAO
- All Known Implementing Classes:
CityDAO
public interface ICityDAO
ICityDAO Interface
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddCityChanges(City city, String author, String applied, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the history table.voiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablebooleangetChangesExistence(City city, fr.paris.lutece.portal.service.plugin.Plugin plugin) getCitiesListByCode(fr.paris.lutece.portal.service.plugin.Plugin _plugin, String code) Load the data of all the avant objects and returns them as a listInsert a new record in the table.load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableloadByCode(String strCode, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableloadByDateAndCode(Date dateCode, String strCode, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the table, non deprecated codes first, deprecated codes if none is foundsearchCitiesChanges(fr.paris.lutece.portal.service.plugin.Plugin plugin, String cityLabel, String cityCode, String placeCode, boolean approximateSearch, String status) Load the data of all the city objects and returns them as a listselectCitiesCodesListByDate(Date dateCity, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the city codes objects and returns them as a listselectCitiesList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the city objects and returns them as a listselectCitiesListByIds(fr.paris.lutece.portal.service.plugin.Plugin _plugin, List<Integer> listIds) Load the data of all the avant objects and returns them as a listselectCitiesListByLastDate(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the city objects by last date update and returns them as a referenceListselectCitiesListByValue(String strVal, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the city objects and returns them as a listselectCitiesListByValueAndDate(String strVal, Date dateCity, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the city objects and returns them as a listselectCitiesListByValueAndDateLike(String strVal, Date dateCity, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the city objects and returns them as a listselectCitiesListByValueLike(String strVal, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the city objects and returns them as a listfr.paris.lutece.util.ReferenceListselectCitiesReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the city objects and returns them as a referenceListselectCityByCodeAndDate(String code, Date date, fr.paris.lutece.portal.service.plugin.Plugin plugin) selectCityChangesByCodeAndDate(String code, Date date, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the city objects and returns them as a listselectCityChangesListByCode(String code, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of the city object and returns itselectIdCitiesList(fr.paris.lutece.portal.service.plugin.Plugin plugin, String cityLabel, String cityCode, String placeCode, boolean approximateSearch) Load the id of all the city objects and returns them as a listvoidUpdate the record in the tablestoreChanges(CityChanges cityChanges, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of the city object and returns it
-
Method Details
-
insert
Insert a new record in the table.- Parameters:
city- instance of the City object to insertplugin- the Plugin
-
addCityChanges
void addCityChanges(City city, String author, String applied, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the history table.- Parameters:
city- instance of the City object to insertplugin- the Plugin
-
searchCitiesChanges
List<String> searchCitiesChanges(fr.paris.lutece.portal.service.plugin.Plugin plugin, String cityLabel, String cityCode, String placeCode, boolean approximateSearch, String status) Load the data of all the city objects and returns them as a list- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the cities that have changes
-
selectCityChangesByCodeAndDate
CityChanges selectCityChangesByCodeAndDate(String code, Date date, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the city objects and returns them as a list- Parameters:
idCity- The identifier of the City's History to getplugin- the Plugin- Returns:
- The list which contains the data of all the city objects
-
selectCityChangesListByCode
List<CityChanges> selectCityChangesListByCode(String code, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of the city object and returns it- Parameters:
idHistoryCity- The identifier of the CityHistory to saveplugin- the Plugin- Returns:
- The list which contains the data of all the city objects
-
storeChanges
CityChanges storeChanges(CityChanges cityChanges, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of the city object and returns it- Parameters:
cityChanges- The CityHistory to updateplugin- the Plugin- Returns:
- The list which contains the data of all the city objects
-
store
Update the record in the table- Parameters:
city- the reference of the Cityplugin- the Plugin
-
delete
void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Parameters:
nKey- The identifier of the City to deleteplugin- the Plugin
-
load
Load the data from the table- Parameters:
nKey- The identifier of the cityplugin- the Plugin- Returns:
- The instance of the city
-
loadByCode
Load the data from the table- Parameters:
nKey- The identifier of the cityplugin- the Plugin- Returns:
- The instance of the city
-
selectCitiesList
Load the data of all the city objects and returns them as a list- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the city objects
-
selectCitiesListByValue
List<City> selectCitiesListByValue(String strVal, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the city objects and returns them as a list- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the city objects
-
selectIdCitiesList
List<Integer> selectIdCitiesList(fr.paris.lutece.portal.service.plugin.Plugin plugin, String cityLabel, String cityCode, String placeCode, boolean approximateSearch) Load the id of all the city objects and returns them as a list- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the city objects
-
selectCitiesReferenceList
fr.paris.lutece.util.ReferenceList selectCitiesReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the city objects and returns them as a referenceList- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the city objects
-
selectCitiesListByIds
List<City> selectCitiesListByIds(fr.paris.lutece.portal.service.plugin.Plugin _plugin, List<Integer> listIds) Load the data of all the avant objects and returns them as a list- Parameters:
plugin- the PluginlistIds- 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:
plugin- the Plugincode-- Returns:
- The list which contains the data of all the avant objects
-
loadByDateAndCode
Optional<City> loadByDateAndCode(Date dateCode, String strCode, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the table, non deprecated codes first, deprecated codes if none is found- Parameters:
strCode- The identifier of the citydateCode- the date of avaibilityplugin- the Plugin- Returns:
- The instance of the city
-
selectCitiesListByValueAndDate
List<City> selectCitiesListByValueAndDate(String strVal, Date dateCity, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the city objects and returns them as a list- Parameters:
plugin- the PlugindateCity- date of the citystrVal- name of the city- Returns:
- The list which contains the data of all the city objects
-
selectCitiesListByLastDate
Load the data of all the city objects by last date update and returns them as a referenceList- Parameters:
plugin- the Plugin- Returns:
- The list
which contains the data of all the city objects
-
selectCitiesCodesListByDate
List<String> selectCitiesCodesListByDate(Date dateCity, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the city codes objects and returns them as a list- Parameters:
plugin- the PlugindateCity- date of the city- Returns:
- The list which contains the data of all the city objects
-
selectCitiesListByValueAndDateLike
List<City> selectCitiesListByValueAndDateLike(String strVal, Date dateCity, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the city objects and returns them as a list- Parameters:
plugin- the PlugindateCity- date of the citystrVal- name of the city- Returns:
- The list which contains the data of all the city objects
-
selectCitiesListByValueLike
List<City> selectCitiesListByValueLike(String strVal, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the city objects and returns them as a list- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the city objects
-
getChangesExistence
-
selectCityByCodeAndDate
-