Interface RegionLocalizationPersistence

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

@ProviderType public interface RegionLocalizationPersistence extends BasePersistence<RegionLocalization>, CTPersistence<RegionLocalization>
The persistence interface for the region localization service.

Caching information and settings can be found in portal.properties

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

    • findByRegionId

      List<RegionLocalization> findByRegionId(long regionId)
      Returns all the region localizations where regionId = ?.
      Parameters:
      regionId - the region ID
      Returns:
      the matching region localizations
    • findByRegionId

      List<RegionLocalization> findByRegionId(long regionId, int start, int end)
      Returns a range of all the region localizations where regionId = ?.

      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 RegionLocalizationModelImpl.

      Parameters:
      regionId - the region ID
      start - the lower bound of the range of region localizations
      end - the upper bound of the range of region localizations (not inclusive)
      Returns:
      the range of matching region localizations
    • findByRegionId

      List<RegionLocalization> findByRegionId(long regionId, int start, int end, OrderByComparator<RegionLocalization> orderByComparator)
      Returns an ordered range of all the region localizations where regionId = ?.

      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 RegionLocalizationModelImpl.

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

      List<RegionLocalization> findByRegionId(long regionId, int start, int end, OrderByComparator<RegionLocalization> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the region localizations where regionId = ?.

      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 RegionLocalizationModelImpl.

      Parameters:
      regionId - the region ID
      start - the lower bound of the range of region localizations
      end - the upper bound of the range of region 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 region localizations
    • findByRegionId_First

      RegionLocalization findByRegionId_First(long regionId, OrderByComparator<RegionLocalization> orderByComparator) throws NoSuchRegionLocalizationException
      Returns the first region localization in the ordered set where regionId = ?.
      Parameters:
      regionId - the region ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching region localization
      Throws:
      NoSuchRegionLocalizationException - if a matching region localization could not be found
    • fetchByRegionId_First

      RegionLocalization fetchByRegionId_First(long regionId, OrderByComparator<RegionLocalization> orderByComparator)
      Returns the first region localization in the ordered set where regionId = ?.
      Parameters:
      regionId - the region ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching region localization, or null if a matching region localization could not be found
    • findByRegionId_Last

      RegionLocalization findByRegionId_Last(long regionId, OrderByComparator<RegionLocalization> orderByComparator) throws NoSuchRegionLocalizationException
      Returns the last region localization in the ordered set where regionId = ?.
      Parameters:
      regionId - the region ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching region localization
      Throws:
      NoSuchRegionLocalizationException - if a matching region localization could not be found
    • fetchByRegionId_Last

      RegionLocalization fetchByRegionId_Last(long regionId, OrderByComparator<RegionLocalization> orderByComparator)
      Returns the last region localization in the ordered set where regionId = ?.
      Parameters:
      regionId - the region ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching region localization, or null if a matching region localization could not be found
    • findByRegionId_PrevAndNext

      RegionLocalization[] findByRegionId_PrevAndNext(long regionLocalizationId, long regionId, OrderByComparator<RegionLocalization> orderByComparator) throws NoSuchRegionLocalizationException
      Returns the region localizations before and after the current region localization in the ordered set where regionId = ?.
      Parameters:
      regionLocalizationId - the primary key of the current region localization
      regionId - the region ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next region localization
      Throws:
      NoSuchRegionLocalizationException - if a region localization with the primary key could not be found
    • removeByRegionId

      void removeByRegionId(long regionId)
      Removes all the region localizations where regionId = ? from the database.
      Parameters:
      regionId - the region ID
    • countByRegionId

      int countByRegionId(long regionId)
      Returns the number of region localizations where regionId = ?.
      Parameters:
      regionId - the region ID
      Returns:
      the number of matching region localizations
    • findByRegionId_LanguageId

      RegionLocalization findByRegionId_LanguageId(long regionId, String languageId) throws NoSuchRegionLocalizationException
      Returns the region localization where regionId = ? and languageId = ? or throws a NoSuchRegionLocalizationException if it could not be found.
      Parameters:
      regionId - the region ID
      languageId - the language ID
      Returns:
      the matching region localization
      Throws:
      NoSuchRegionLocalizationException - if a matching region localization could not be found
    • fetchByRegionId_LanguageId

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

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

      RegionLocalization removeByRegionId_LanguageId(long regionId, String languageId) throws NoSuchRegionLocalizationException
      Removes the region localization where regionId = ? and languageId = ? from the database.
      Parameters:
      regionId - the region ID
      languageId - the language ID
      Returns:
      the region localization that was removed
      Throws:
      NoSuchRegionLocalizationException
    • countByRegionId_LanguageId

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

      void cacheResult(RegionLocalization regionLocalization)
      Caches the region localization in the entity cache if it is enabled.
      Parameters:
      regionLocalization - the region localization
    • cacheResult

      void cacheResult(List<RegionLocalization> regionLocalizations)
      Caches the region localizations in the entity cache if it is enabled.
      Parameters:
      regionLocalizations - the region localizations
    • create

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

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

      RegionLocalization updateImpl(RegionLocalization regionLocalization)
    • findByPrimaryKey

      RegionLocalization findByPrimaryKey(long regionLocalizationId) throws NoSuchRegionLocalizationException
      Returns the region localization with the primary key or throws a NoSuchRegionLocalizationException if it could not be found.
      Parameters:
      regionLocalizationId - the primary key of the region localization
      Returns:
      the region localization
      Throws:
      NoSuchRegionLocalizationException - if a region localization with the primary key could not be found
    • fetchByPrimaryKey

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

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

      List<RegionLocalization> findAll(int start, int end)
      Returns a range of all the region 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 RegionLocalizationModelImpl.

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

      List<RegionLocalization> findAll(int start, int end, OrderByComparator<RegionLocalization> orderByComparator)
      Returns an ordered range of all the region 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 RegionLocalizationModelImpl.

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

      List<RegionLocalization> findAll(int start, int end, OrderByComparator<RegionLocalization> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the region 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 RegionLocalizationModelImpl.

      Parameters:
      start - the lower bound of the range of region localizations
      end - the upper bound of the range of region 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 region localizations
    • removeAll

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

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