Interface ICountryDAO
-
- All Known Implementing Classes:
CountryDAO
public interface ICountryDAOICountryDAO Interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddCountryChanges(Country country, java.lang.String author, java.util.Date dateUpdate, 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 tableCountryinsert(Country country, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.java.util.Optional<Country>load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablejava.util.Optional<Country>loadByCode(java.lang.String strCode, boolean bAttached, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablejava.util.Optional<Country>loadByCode(java.lang.String strCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablejava.util.List<Country>selectCountriesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the country objects and returns them as a listjava.util.List<Country>selectCountriesListByIds(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<Country>selectCountriesListByValue(java.lang.String strVal, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the country objects and returns them as a listjava.util.List<Country>selectCountriesListByValueAndDate(java.lang.String strVal, java.util.Date dateRef, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the country objects and returns them as a listfr.paris.lutece.util.ReferenceListselectCountriesReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the country objects and returns them as a referenceListCountryChangesselectCountryChanges(int idHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of the city object and returns itjava.util.List<CountryChanges>selectCountryChangesListByCountryId(int idCity, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the city objects and returns them as a listjava.util.List<java.lang.Integer>selectIdCountriesList(fr.paris.lutece.portal.service.plugin.Plugin plugin, java.lang.String countryLabel, java.lang.String countryCode, boolean approximateSearch)Load the id of all the country objects and returns them as a listvoidstore(Country country, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the tableCountryChangesstoreChanges(CountryChanges cityHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of the city object and returns it
-
-
-
Method Detail
-
insert
Country insert(Country country, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Parameters:
country- instance of the Country object to insertplugin- the Plugin
-
addCountryChanges
void addCountryChanges(Country country, java.lang.String author, java.util.Date dateUpdate, java.lang.String applied, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the history table.- Parameters:
country- instance of the Country object to insertplugin- the Plugin
-
selectCountryChangesListByCountryId
java.util.List<CountryChanges> selectCountryChangesListByCountryId(int idCity, 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
-
selectCountryChanges
CountryChanges selectCountryChanges(int idHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the city object and returns it- Parameters:
idHistory- The identifier of the CountryHistory to saveplugin- the Plugin- Returns:
- The list which contains the data of all the city objects
-
storeChanges
CountryChanges storeChanges(CountryChanges cityHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the city object and returns it- Parameters:
cityHistory- The CountryHistory to updateplugin- the Plugin- Returns:
- The list which contains the data of all the city objects
-
store
void store(Country country, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Parameters:
country- the reference of the Countryplugin- 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 Country to deleteplugin- the Plugin
-
load
java.util.Optional<Country> load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Parameters:
nKey- The identifier of the countryplugin- the Plugin- Returns:
- The instance of the country
-
loadByCode
java.util.Optional<Country> 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 countryplugin- the Plugin- Returns:
- The instance of the country
-
selectCountriesList
java.util.List<Country> selectCountriesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the country objects and returns them as a list- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the country objects
-
selectCountriesListByValueAndDate
java.util.List<Country> selectCountriesListByValueAndDate(java.lang.String strVal, java.util.Date dateRef, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the country objects and returns them as a list- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the country objects
-
selectCountriesListByValue
java.util.List<Country> selectCountriesListByValue(java.lang.String strVal, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the country objects and returns them as a list- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the country objects
-
selectIdCountriesList
java.util.List<java.lang.Integer> selectIdCountriesList(fr.paris.lutece.portal.service.plugin.Plugin plugin, java.lang.String countryLabel, java.lang.String countryCode, boolean approximateSearch)Load the id of all the country objects and returns them as a list- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the country objects
-
selectCountriesReferenceList
fr.paris.lutece.util.ReferenceList selectCountriesReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the country objects and returns them as a referenceList- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the country objects
-
selectCountriesListByIds
java.util.List<Country> selectCountriesListByIds(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
-
loadByCode
java.util.Optional<Country> loadByCode(java.lang.String strCode, boolean bAttached, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Parameters:
strCode- The identifier of the countrybAttached- is the country attachedplugin- the Plugin- Returns:
- The instance of the country
-
-