Class CityDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.geocodes.business.CityDAO
-
-
Constructor Summary
Constructors Constructor Description CityDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablevoidinsert(City city, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.Optional<City>load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tableOptional<City>loadByCode(String strCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tableOptional<City>loadByDateAndCode(Date dateCode, String strCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tableList<City>selectCitiesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the city objects and returns them as a listList<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 listList<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 referenceListList<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 listList<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 listList<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 listList<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 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 referenceListList<Integer>selectIdCitiesList(fr.paris.lutece.portal.service.plugin.Plugin plugin, String cityLabel, String cityCode, String placeCode)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 table
-
-
-
Method Detail
-
insert
public void insert(City city, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
-
load
public Optional<City> load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
-
loadByCode
public Optional<City> loadByCode(String strCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
loadByCodein interfaceICityDAOplugin- the Plugin- Returns:
- The instance of the city
-
loadByDateAndCode
public Optional<City> loadByDateAndCode(Date dateCode, String strCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
loadByDateAndCodein interfaceICityDAO- Parameters:
dateCode- the date of avaibilitystrCode- The identifier of the cityplugin- the Plugin- Returns:
- The instance of the city
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table
-
store
public void store(City city, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
-
selectCitiesList
public 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- Specified by:
selectCitiesListin interfaceICityDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the city objects
-
selectCitiesListByValue
public 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- Specified by:
selectCitiesListByValuein interfaceICityDAOplugin- the Plugin- Returns:
- The list which contains the data of all the city objects
-
selectCitiesListByValueLike
public 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- Specified by:
selectCitiesListByValueLikein interfaceICityDAOplugin- the Plugin- Returns:
- The list which contains the data of all the city objects
-
selectCitiesListByValueAndDate
public 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- Specified by:
selectCitiesListByValueAndDatein interfaceICityDAO- Parameters:
strVal- name of the citydateCity- date of the cityplugin- the Plugin- Returns:
- The list which contains the data of all the city objects
-
selectCitiesListByValueAndDateLike
public 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- Specified by:
selectCitiesListByValueAndDateLikein interfaceICityDAO- Parameters:
strVal- name of the citydateCity- date of the cityplugin- the Plugin- Returns:
- The list which contains the data of all the city objects
-
selectIdCitiesList
public List<Integer> selectIdCitiesList(fr.paris.lutece.portal.service.plugin.Plugin plugin, String cityLabel, String cityCode, String placeCode)
Load the id of all the city objects and returns them as a list- Specified by:
selectIdCitiesListin interfaceICityDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the city objects
-
selectCitiesReferenceList
public 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- Specified by:
selectCitiesReferenceListin interfaceICityDAO- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the city objects
-
selectCitiesListByIds
public 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- Specified by:
selectCitiesListByIdsin interfaceICityDAOlistIds- liste of ids- Returns:
- The list which contains the data of all the avant objects
-
selectCitiesListByLastDate
public 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- Specified by:
selectCitiesListByLastDatein interfaceICityDAO- Parameters:
plugin- the Plugin- Returns:
- The list
which contains the data of all the city objects
-
-