public final class CountryDAO extends Object implements ICountryDAO
| Constructor and Description |
|---|
CountryDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
insert(Country country,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
Optional<Country> |
load(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
Optional<Country> |
loadByCode(String strCode,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
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
|
List<Country> |
selectCountriesListByIds(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
|
List<Country> |
selectCountriesListByValue(String strVal,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the country objects and returns them as a list
|
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
|
List<Integer> |
selectIdCountriesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the country objects and returns them as a list
|
void |
store(Country country,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
public void insert(Country country, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface ICountryDAOcountry - instance of the Country object to insertplugin - the Pluginpublic Optional<Country> load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface ICountryDAOnKey - The identifier of the countryplugin - the Pluginpublic Optional<Country> loadByCode(String strCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadByCode in interface ICountryDAOplugin - the Pluginpublic void delete(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface ICountryDAOnKey - The identifier of the Country to deleteplugin - the Pluginpublic void store(Country country, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface ICountryDAOcountry - the reference of the Countryplugin - the Pluginpublic List<Country> selectCountriesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectCountriesList in interface ICountryDAOplugin - the Pluginpublic List<Country> selectCountriesListByValue(String strVal, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectCountriesListByValue in interface ICountryDAOplugin - the Pluginpublic List<Integer> selectIdCountriesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectIdCountriesList in interface ICountryDAOplugin - the Pluginpublic fr.paris.lutece.util.ReferenceList selectCountriesReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectCountriesReferenceList in interface ICountryDAOplugin - the Pluginpublic List<Country> selectCountriesListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, List<Integer> listIds)
selectCountriesListByIds in interface ICountryDAOlistIds - liste of idsCopyright © 2023 City of Paris. All rights reserved.