Interface ICountryDAO

All Known Implementing Classes:
CountryDAO

public interface ICountryDAO
ICountryDAO Interface
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addCountryChanges(Country country, String author, Date dateUpdate, String applied, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Insert a new record in the history table.
    void
    delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete a record from the table
    insert(Country country, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Insert a new record in the table.
    load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data from the table
    loadByCode(String strCode, boolean bAttached, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data from the table
    loadByCode(String strCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data from the table
    selectCountriesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the country objects and returns them as a list
    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
    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
    selectCountriesListByValueAndDate(String strVal, Date dateRef, 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
    selectCountryChanges(int idHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of the city object and returns it
    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
    selectIdCountriesList(fr.paris.lutece.portal.service.plugin.Plugin plugin, String countryLabel, String countryCode, boolean approximateSearch)
    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
    storeChanges(CountryChanges cityHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of the city object and returns it
  • Method Details

    • 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 insert
      plugin - the Plugin
    • addCountryChanges

      void addCountryChanges(Country country, String author, Date dateUpdate, 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 insert
      plugin - the Plugin
    • selectCountryChangesListByCountryId

      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 get
      plugin - 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 save
      plugin - 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 update
      plugin - 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 Country
      plugin - 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 delete
      plugin - the Plugin
    • load

      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 country
      plugin - the Plugin
      Returns:
      The instance of the country
    • loadByCode

      Optional<Country> loadByCode(String strCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Parameters:
      nKey - The identifier of the country
      plugin - the Plugin
      Returns:
      The instance of the country
    • selectCountriesList

      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

      List<Country> selectCountriesListByValueAndDate(String strVal, 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

      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
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the data of all the country objects
    • selectIdCountriesList

      List<Integer> selectIdCountriesList(fr.paris.lutece.portal.service.plugin.Plugin plugin, String countryLabel, 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

      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
      Parameters:
      plugin - the Plugin
      listIds - liste of ids
      Returns:
      The list which contains the data of all the avant objects
    • loadByCode

      Optional<Country> loadByCode(String strCode, boolean bAttached, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Parameters:
      strCode - The identifier of the country
      bAttached - is the country attached
      plugin - the Plugin
      Returns:
      The instance of the country