Interface ICityDAO
-
- All Known Implementing Classes:
CityDAO
public interface ICityDAOICityDAO Interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddCityChanges(City city, java.lang.String author, java.lang.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)java.util.List<City>getCitiesListByCode(fr.paris.lutece.portal.service.plugin.Plugin _plugin, java.lang.String code)Load the data of all the avant objects and returns them as a listCityinsert(City city, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.java.util.Optional<City>load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablejava.util.List<City>loadByCode(java.lang.String strCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablejava.util.Optional<City>loadByDateAndCode(java.util.Date dateCode, java.lang.String strCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablejava.util.List<java.lang.String>searchCitiesChanges(fr.paris.lutece.portal.service.plugin.Plugin plugin, java.lang.String cityLabel, java.lang.String cityCode, java.lang.String placeCode, boolean approximateSearch, java.lang.String status)Load the data of all the city objects and returns them as a listjava.util.List<java.lang.String>selectCitiesCodesListByDate(java.util.Date dateCity, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the city codes objects and returns them as a listjava.util.List<City>selectCitiesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the city objects and returns them as a listjava.util.List<City>selectCitiesListByIds(fr.paris.lutece.portal.service.plugin.Plugin _plugin, java.util.List<java.lang.Integer> listIds)Load the data of all the avant objects and returns them as a listjava.util.List<City>selectCitiesListByLastDate(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 referenceListjava.util.List<City>selectCitiesListByValue(java.lang.String strVal, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the city objects and returns them as a listjava.util.List<City>selectCitiesListByValueAndDate(java.lang.String strVal, java.util.Date dateCity, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the city objects and returns them as a listjava.util.List<City>selectCitiesListByValueAndDateLike(java.lang.String strVal, java.util.Date dateCity, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the city objects and returns them as a listjava.util.List<City>selectCitiesListByValueLike(java.lang.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 referenceListCityselectCityByCodeAndDate(java.lang.String code, java.util.Date date, fr.paris.lutece.portal.service.plugin.Plugin plugin)CityChangesselectCityChangesByCodeAndDate(java.lang.String code, java.util.Date date, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the city objects and returns them as a listjava.util.List<CityChanges>selectCityChangesListByCode(java.lang.String code, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of the city object and returns itjava.util.List<java.lang.Integer>selectIdCitiesList(fr.paris.lutece.portal.service.plugin.Plugin plugin, java.lang.String cityLabel, java.lang.String cityCode, java.lang.String placeCode, boolean approximateSearch)Load the id of all the city objects and returns them as a listvoidstore(City city, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the tableCityChangesstoreChanges(CityChanges cityChanges, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of the city object and returns it
-
-
-
Method Detail
-
insert
City insert(City city, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Parameters:
city- instance of the City object to insertplugin- the Plugin
-
addCityChanges
void addCityChanges(City city, java.lang.String author, java.lang.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
java.util.List<java.lang.String> searchCitiesChanges(fr.paris.lutece.portal.service.plugin.Plugin plugin, java.lang.String cityLabel, java.lang.String cityCode, java.lang.String placeCode, boolean approximateSearch, java.lang.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(java.lang.String code, java.util.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
java.util.List<CityChanges> selectCityChangesListByCode(java.lang.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
void store(City city, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
java.util.Optional<City> load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Parameters:
nKey- The identifier of the cityplugin- the Plugin- Returns:
- The instance of the city
-
loadByCode
java.util.List<City> loadByCode(java.lang.String strCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Parameters:
nKey- The identifier of the cityplugin- the Plugin- Returns:
- The instance of the city
-
selectCitiesList
java.util.List<City> selectCitiesList(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
-
selectCitiesListByValue
java.util.List<City> selectCitiesListByValue(java.lang.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
java.util.List<java.lang.Integer> selectIdCitiesList(fr.paris.lutece.portal.service.plugin.Plugin plugin, java.lang.String cityLabel, java.lang.String cityCode, java.lang.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
java.util.List<City> selectCitiesListByIds(fr.paris.lutece.portal.service.plugin.Plugin _plugin, java.util.List<java.lang.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
java.util.List<City> getCitiesListByCode(fr.paris.lutece.portal.service.plugin.Plugin _plugin, java.lang.String code)
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
java.util.Optional<City> loadByDateAndCode(java.util.Date dateCode, java.lang.String strCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Parameters:
strCode- The identifier of the citydateCode- the date of avaibilityplugin- the Plugin- Returns:
- The instance of the city
-
selectCitiesListByValueAndDate
java.util.List<City> selectCitiesListByValueAndDate(java.lang.String strVal, java.util.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
java.util.List<City> selectCitiesListByLastDate(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 referenceList- Parameters:
plugin- the Plugin- Returns:
- The list
which contains the data of all the city objects
-
selectCitiesCodesListByDate
java.util.List<java.lang.String> selectCitiesCodesListByDate(java.util.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
java.util.List<City> selectCitiesListByValueAndDateLike(java.lang.String strVal, java.util.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
java.util.List<City> selectCitiesListByValueLike(java.lang.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
boolean getChangesExistence(City city, fr.paris.lutece.portal.service.plugin.Plugin plugin)
-
selectCityByCodeAndDate
City selectCityByCodeAndDate(java.lang.String code, java.util.Date date, fr.paris.lutece.portal.service.plugin.Plugin plugin)
-
-