Interface RegionLocalizationPersistence
- All Superinterfaces:
BasePersistence<RegionLocalization>
,CTPersistence<RegionLocalization>
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheResult
(RegionLocalization regionLocalization) Caches the region localization in the entity cache if it is enabled.void
cacheResult
(List<RegionLocalization> regionLocalizations) Caches the region localizations in the entity cache if it is enabled.int
countAll()
Returns the number of region localizations.int
countByRegionId
(long regionId) Returns the number of region localizations where regionId = ?.int
countByRegionId_LanguageId
(long regionId, String languageId) Returns the number of region localizations where regionId = ? and languageId = ?.create
(long regionLocalizationId) Creates a new region localization with the primary key.fetchByPrimaryKey
(long regionLocalizationId) Returns the region localization with the primary key or returnsnull
if it could not be found.fetchByRegionId_First
(long regionId, OrderByComparator<RegionLocalization> orderByComparator) Returns the first region localization in the ordered set where regionId = ?.fetchByRegionId_LanguageId
(long regionId, String languageId) Returns the region localization where regionId = ? and languageId = ? or returnsnull
if it could not be found.fetchByRegionId_LanguageId
(long regionId, String languageId, boolean useFinderCache) Returns the region localization where regionId = ? and languageId = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByRegionId_Last
(long regionId, OrderByComparator<RegionLocalization> orderByComparator) Returns the last region localization in the ordered set where regionId = ?.findAll()
Returns all the region localizations.findAll
(int start, int end) Returns a range of all the region localizations.findAll
(int start, int end, OrderByComparator<RegionLocalization> orderByComparator) Returns an ordered range of all the region localizations.findAll
(int start, int end, OrderByComparator<RegionLocalization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the region localizations.findByPrimaryKey
(long regionLocalizationId) Returns the region localization with the primary key or throws aNoSuchRegionLocalizationException
if it could not be found.findByRegionId
(long regionId) Returns all the region localizations where regionId = ?.findByRegionId
(long regionId, int start, int end) Returns a range of all the region localizations where regionId = ?.findByRegionId
(long regionId, int start, int end, OrderByComparator<RegionLocalization> orderByComparator) Returns an ordered range of all the region localizations where regionId = ?.findByRegionId
(long regionId, int start, int end, OrderByComparator<RegionLocalization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the region localizations where regionId = ?.findByRegionId_First
(long regionId, OrderByComparator<RegionLocalization> orderByComparator) Returns the first region localization in the ordered set where regionId = ?.findByRegionId_LanguageId
(long regionId, String languageId) Returns the region localization where regionId = ? and languageId = ? or throws aNoSuchRegionLocalizationException
if it could not be found.findByRegionId_Last
(long regionId, OrderByComparator<RegionLocalization> orderByComparator) Returns the last region localization in the ordered set where regionId = ?.findByRegionId_PrevAndNext
(long regionLocalizationId, long regionId, OrderByComparator<RegionLocalization> orderByComparator) Returns the region localizations before and after the current region localization in the ordered set where regionId = ?.remove
(long regionLocalizationId) Removes the region localization with the primary key from the database.void
Removes all the region localizations from the database.void
removeByRegionId
(long regionId) Removes all the region localizations where regionId = ? from the database.removeByRegionId_LanguageId
(long regionId, String languageId) Removes the region localization where regionId = ? and languageId = ? from the database.updateImpl
(RegionLocalization regionLocalization) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
Methods inherited from interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence
getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
-
Method Details
-
findByRegionId
Returns all the region localizations where regionId = ?.- Parameters:
regionId
- the region ID- Returns:
- the matching region localizations
-
findByRegionId
Returns a range of all the region localizations where regionId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRegionLocalizationModelImpl
.- Parameters:
regionId
- the region IDstart
- the lower bound of the range of region localizationsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRegionLocalizationModelImpl
.- Parameters:
regionId
- the region IDstart
- the lower bound of the range of region localizationsend
- the upper bound of the range of region localizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRegionLocalizationModelImpl
.- Parameters:
regionId
- the region IDstart
- the lower bound of the range of region localizationsend
- the upper bound of the range of region localizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 localizationregionId
- the region IDorderByComparator
- the comparator to order the set by (optionallynull
)- 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 aNoSuchRegionLocalizationException
if it could not be found.- Parameters:
regionId
- the region IDlanguageId
- the language ID- Returns:
- the matching region localization
- Throws:
NoSuchRegionLocalizationException
- if a matching region localization could not be found
-
fetchByRegionId_LanguageId
Returns the region localization where regionId = ? and languageId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
regionId
- the region IDlanguageId
- 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 returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
regionId
- the region IDlanguageId
- the language IDuseFinderCache
- 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 IDlanguageId
- the language ID- Returns:
- the region localization that was removed
- Throws:
NoSuchRegionLocalizationException
-
countByRegionId_LanguageId
Returns the number of region localizations where regionId = ? and languageId = ?.- Parameters:
regionId
- the region IDlanguageId
- the language ID- Returns:
- the number of matching region localizations
-
cacheResult
Caches the region localization in the entity cache if it is enabled.- Parameters:
regionLocalization
- the region localization
-
cacheResult
Caches the region localizations in the entity cache if it is enabled.- Parameters:
regionLocalizations
- the region localizations
-
create
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
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
-
findByPrimaryKey
RegionLocalization findByPrimaryKey(long regionLocalizationId) throws NoSuchRegionLocalizationException Returns the region localization with the primary key or throws aNoSuchRegionLocalizationException
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
Returns the region localization with the primary key or returnsnull
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
List<RegionLocalization> findAll()Returns all the region localizations.- Returns:
- the region localizations
-
findAll
Returns a range of all the region localizations.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRegionLocalizationModelImpl
.- Parameters:
start
- the lower bound of the range of region localizationsend
- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRegionLocalizationModelImpl
.- Parameters:
start
- the lower bound of the range of region localizationsend
- the upper bound of the range of region localizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRegionLocalizationModelImpl
.- Parameters:
start
- the lower bound of the range of region localizationsend
- the upper bound of the range of region localizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)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
-