Interface CountryLocalizationPersistence

All Superinterfaces:
BasePersistence<CountryLocalization>, CTPersistence<CountryLocalization>

@ProviderType public interface CountryLocalizationPersistence extends BasePersistence<CountryLocalization>, CTPersistence<CountryLocalization>
The persistence interface for the country localization service.

Caching information and settings can be found in portal.properties

Author:
Brian Wing Shun Chan
See Also:
{$generated.description}
  • Method Details

    • findByCountryId

      List<CountryLocalization> findByCountryId(long countryId)
      Returns all the country localizations where countryId = ?.
      Parameters:
      countryId - the country ID
      Returns:
      the matching country localizations
    • findByCountryId

      List<CountryLocalization> findByCountryId(long countryId, int start, int end)
      Returns a range of all the country localizations where countryId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CountryLocalizationModelImpl.

      Parameters:
      countryId - the country ID
      start - the lower bound of the range of country localizations
      end - the upper bound of the range of country localizations (not inclusive)
      Returns:
      the range of matching country localizations
    • findByCountryId

      List<CountryLocalization> findByCountryId(long countryId, int start, int end, OrderByComparator<CountryLocalization> orderByComparator)
      Returns an ordered range of all the country localizations where countryId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CountryLocalizationModelImpl.

      Parameters:
      countryId - the country ID
      start - the lower bound of the range of country localizations
      end - the upper bound of the range of country localizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching country localizations
    • findByCountryId

      List<CountryLocalization> findByCountryId(long countryId, int start, int end, OrderByComparator<CountryLocalization> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the country localizations where countryId = ?.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CountryLocalizationModelImpl.

      Parameters:
      countryId - the country ID
      start - the lower bound of the range of country localizations
      end - the upper bound of the range of country localizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of matching country localizations
    • findByCountryId_First

      CountryLocalization findByCountryId_First(long countryId, OrderByComparator<CountryLocalization> orderByComparator) throws NoSuchCountryLocalizationException
      Returns the first country localization in the ordered set where countryId = ?.
      Parameters:
      countryId - the country ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching country localization
      Throws:
      NoSuchCountryLocalizationException - if a matching country localization could not be found
    • fetchByCountryId_First

      CountryLocalization fetchByCountryId_First(long countryId, OrderByComparator<CountryLocalization> orderByComparator)
      Returns the first country localization in the ordered set where countryId = ?.
      Parameters:
      countryId - the country ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching country localization, or null if a matching country localization could not be found
    • findByCountryId_Last

      CountryLocalization findByCountryId_Last(long countryId, OrderByComparator<CountryLocalization> orderByComparator) throws NoSuchCountryLocalizationException
      Returns the last country localization in the ordered set where countryId = ?.
      Parameters:
      countryId - the country ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching country localization
      Throws:
      NoSuchCountryLocalizationException - if a matching country localization could not be found
    • fetchByCountryId_Last

      CountryLocalization fetchByCountryId_Last(long countryId, OrderByComparator<CountryLocalization> orderByComparator)
      Returns the last country localization in the ordered set where countryId = ?.
      Parameters:
      countryId - the country ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching country localization, or null if a matching country localization could not be found
    • findByCountryId_PrevAndNext

      CountryLocalization[] findByCountryId_PrevAndNext(long countryLocalizationId, long countryId, OrderByComparator<CountryLocalization> orderByComparator) throws NoSuchCountryLocalizationException
      Returns the country localizations before and after the current country localization in the ordered set where countryId = ?.
      Parameters:
      countryLocalizationId - the primary key of the current country localization
      countryId - the country ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next country localization
      Throws:
      NoSuchCountryLocalizationException - if a country localization with the primary key could not be found
    • removeByCountryId

      void removeByCountryId(long countryId)
      Removes all the country localizations where countryId = ? from the database.
      Parameters:
      countryId - the country ID
    • countByCountryId

      int countByCountryId(long countryId)
      Returns the number of country localizations where countryId = ?.
      Parameters:
      countryId - the country ID
      Returns:
      the number of matching country localizations
    • findByCountryId_LanguageId

      CountryLocalization findByCountryId_LanguageId(long countryId, String languageId) throws NoSuchCountryLocalizationException
      Returns the country localization where countryId = ? and languageId = ? or throws a NoSuchCountryLocalizationException if it could not be found.
      Parameters:
      countryId - the country ID
      languageId - the language ID
      Returns:
      the matching country localization
      Throws:
      NoSuchCountryLocalizationException - if a matching country localization could not be found
    • fetchByCountryId_LanguageId

      CountryLocalization fetchByCountryId_LanguageId(long countryId, String languageId)
      Returns the country localization where countryId = ? and languageId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      countryId - the country ID
      languageId - the language ID
      Returns:
      the matching country localization, or null if a matching country localization could not be found
    • fetchByCountryId_LanguageId

      CountryLocalization fetchByCountryId_LanguageId(long countryId, String languageId, boolean useFinderCache)
      Returns the country localization where countryId = ? and languageId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      countryId - the country ID
      languageId - the language ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching country localization, or null if a matching country localization could not be found
    • removeByCountryId_LanguageId

      CountryLocalization removeByCountryId_LanguageId(long countryId, String languageId) throws NoSuchCountryLocalizationException
      Removes the country localization where countryId = ? and languageId = ? from the database.
      Parameters:
      countryId - the country ID
      languageId - the language ID
      Returns:
      the country localization that was removed
      Throws:
      NoSuchCountryLocalizationException
    • countByCountryId_LanguageId

      int countByCountryId_LanguageId(long countryId, String languageId)
      Returns the number of country localizations where countryId = ? and languageId = ?.
      Parameters:
      countryId - the country ID
      languageId - the language ID
      Returns:
      the number of matching country localizations
    • cacheResult

      void cacheResult(CountryLocalization countryLocalization)
      Caches the country localization in the entity cache if it is enabled.
      Parameters:
      countryLocalization - the country localization
    • cacheResult

      void cacheResult(List<CountryLocalization> countryLocalizations)
      Caches the country localizations in the entity cache if it is enabled.
      Parameters:
      countryLocalizations - the country localizations
    • create

      CountryLocalization create(long countryLocalizationId)
      Creates a new country localization with the primary key. Does not add the country localization to the database.
      Parameters:
      countryLocalizationId - the primary key for the new country localization
      Returns:
      the new country localization
    • remove

      CountryLocalization remove(long countryLocalizationId) throws NoSuchCountryLocalizationException
      Removes the country localization with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      countryLocalizationId - the primary key of the country localization
      Returns:
      the country localization that was removed
      Throws:
      NoSuchCountryLocalizationException - if a country localization with the primary key could not be found
    • updateImpl

      CountryLocalization updateImpl(CountryLocalization countryLocalization)
    • findByPrimaryKey

      CountryLocalization findByPrimaryKey(long countryLocalizationId) throws NoSuchCountryLocalizationException
      Returns the country localization with the primary key or throws a NoSuchCountryLocalizationException if it could not be found.
      Parameters:
      countryLocalizationId - the primary key of the country localization
      Returns:
      the country localization
      Throws:
      NoSuchCountryLocalizationException - if a country localization with the primary key could not be found
    • fetchByPrimaryKey

      CountryLocalization fetchByPrimaryKey(long countryLocalizationId)
      Returns the country localization with the primary key or returns null if it could not be found.
      Parameters:
      countryLocalizationId - the primary key of the country localization
      Returns:
      the country localization, or null if a country localization with the primary key could not be found
    • findAll

      Returns all the country localizations.
      Returns:
      the country localizations
    • findAll

      List<CountryLocalization> findAll(int start, int end)
      Returns a range of all the country localizations.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CountryLocalizationModelImpl.

      Parameters:
      start - the lower bound of the range of country localizations
      end - the upper bound of the range of country localizations (not inclusive)
      Returns:
      the range of country localizations
    • findAll

      List<CountryLocalization> findAll(int start, int end, OrderByComparator<CountryLocalization> orderByComparator)
      Returns an ordered range of all the country localizations.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CountryLocalizationModelImpl.

      Parameters:
      start - the lower bound of the range of country localizations
      end - the upper bound of the range of country localizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of country localizations
    • findAll

      List<CountryLocalization> findAll(int start, int end, OrderByComparator<CountryLocalization> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the country localizations.

      Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil#ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from CountryLocalizationModelImpl.

      Parameters:
      start - the lower bound of the range of country localizations
      end - the upper bound of the range of country localizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of country localizations
    • removeAll

      void removeAll()
      Removes all the country localizations from the database.
    • countAll

      int countAll()
      Returns the number of country localizations.
      Returns:
      the number of country localizations