Interface CountryLocalizationPersistence
- All Superinterfaces:
BasePersistence<CountryLocalization>,CTPersistence<CountryLocalization>
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Method Summary
Modifier and TypeMethodDescriptionvoidcacheResult(CountryLocalization countryLocalization) Caches the country localization in the entity cache if it is enabled.voidcacheResult(List<CountryLocalization> countryLocalizations) Caches the country localizations in the entity cache if it is enabled.intcountAll()Returns the number of country localizations.intcountByCountryId(long countryId) Returns the number of country localizations where countryId = ?.intcountByCountryId_LanguageId(long countryId, String languageId) Returns the number of country localizations where countryId = ? and languageId = ?.create(long countryLocalizationId) Creates a new country localization with the primary key.fetchByCountryId_First(long countryId, OrderByComparator<CountryLocalization> orderByComparator) Returns the first country localization in the ordered set where countryId = ?.fetchByCountryId_LanguageId(long countryId, String languageId) Returns the country localization where countryId = ? and languageId = ? or returnsnullif it could not be found.fetchByCountryId_LanguageId(long countryId, String languageId, boolean useFinderCache) Returns the country localization where countryId = ? and languageId = ? or returnsnullif it could not be found, optionally using the finder cache.fetchByCountryId_Last(long countryId, OrderByComparator<CountryLocalization> orderByComparator) Returns the last country localization in the ordered set where countryId = ?.fetchByPrimaryKey(long countryLocalizationId) Returns the country localization with the primary key or returnsnullif it could not be found.findAll()Returns all the country localizations.findAll(int start, int end) Returns a range of all the country localizations.findAll(int start, int end, OrderByComparator<CountryLocalization> orderByComparator) Returns an ordered range of all the country localizations.findAll(int start, int end, OrderByComparator<CountryLocalization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the country localizations.findByCountryId(long countryId) Returns all the country localizations where countryId = ?.findByCountryId(long countryId, int start, int end) Returns a range of all the country localizations where countryId = ?.findByCountryId(long countryId, int start, int end, OrderByComparator<CountryLocalization> orderByComparator) Returns an ordered range of all the country localizations where countryId = ?.findByCountryId(long countryId, int start, int end, OrderByComparator<CountryLocalization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the country localizations where countryId = ?.findByCountryId_First(long countryId, OrderByComparator<CountryLocalization> orderByComparator) Returns the first country localization in the ordered set where countryId = ?.findByCountryId_LanguageId(long countryId, String languageId) Returns the country localization where countryId = ? and languageId = ? or throws aNoSuchCountryLocalizationExceptionif it could not be found.findByCountryId_Last(long countryId, OrderByComparator<CountryLocalization> orderByComparator) Returns the last country localization in the ordered set where countryId = ?.findByCountryId_PrevAndNext(long countryLocalizationId, long countryId, OrderByComparator<CountryLocalization> orderByComparator) Returns the country localizations before and after the current country localization in the ordered set where countryId = ?.findByPrimaryKey(long countryLocalizationId) Returns the country localization with the primary key or throws aNoSuchCountryLocalizationExceptionif it could not be found.remove(long countryLocalizationId) Removes the country localization with the primary key from the database.voidRemoves all the country localizations from the database.voidremoveByCountryId(long countryId) Removes all the country localizations where countryId = ? from the database.removeByCountryId_LanguageId(long countryId, String languageId) Removes the country localization where countryId = ? and languageId = ? from the database.updateImpl(CountryLocalization countryLocalization) 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, updateMethods inherited from interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence
getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
-
Method Details
-
findByCountryId
Returns all the country localizations where countryId = ?.- Parameters:
countryId- the country ID- Returns:
- the matching country localizations
-
findByCountryId
Returns a range of all the country localizations where countryId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCountryLocalizationModelImpl.- Parameters:
countryId- the country IDstart- the lower bound of the range of country localizationsend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCountryLocalizationModelImpl.- Parameters:
countryId- the country IDstart- the lower bound of the range of country localizationsend- the upper bound of the range of country localizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCountryLocalizationModelImpl.- Parameters:
countryId- the country IDstart- the lower bound of the range of country localizationsend- the upper bound of the range of country 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 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 IDorderByComparator- the comparator to order the set by (optionallynull)- 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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching country localization, or
nullif 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 IDorderByComparator- the comparator to order the set by (optionallynull)- 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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching country localization, or
nullif 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 localizationcountryId- the country IDorderByComparator- the comparator to order the set by (optionallynull)- 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 aNoSuchCountryLocalizationExceptionif it could not be found.- Parameters:
countryId- the country IDlanguageId- the language ID- Returns:
- the matching country localization
- Throws:
NoSuchCountryLocalizationException- if a matching country localization could not be found
-
fetchByCountryId_LanguageId
Returns the country localization where countryId = ? and languageId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
countryId- the country IDlanguageId- the language ID- Returns:
- the matching country localization, or
nullif 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 returnsnullif it could not be found, optionally using the finder cache.- Parameters:
countryId- the country IDlanguageId- the language IDuseFinderCache- whether to use the finder cache- Returns:
- the matching country localization, or
nullif 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 IDlanguageId- the language ID- Returns:
- the country localization that was removed
- Throws:
NoSuchCountryLocalizationException
-
countByCountryId_LanguageId
Returns the number of country localizations where countryId = ? and languageId = ?.- Parameters:
countryId- the country IDlanguageId- the language ID- Returns:
- the number of matching country localizations
-
cacheResult
Caches the country localization in the entity cache if it is enabled.- Parameters:
countryLocalization- the country localization
-
cacheResult
Caches the country localizations in the entity cache if it is enabled.- Parameters:
countryLocalizations- the country localizations
-
create
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
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
-
findByPrimaryKey
CountryLocalization findByPrimaryKey(long countryLocalizationId) throws NoSuchCountryLocalizationException Returns the country localization with the primary key or throws aNoSuchCountryLocalizationExceptionif 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
Returns the country localization with the primary key or returnsnullif it could not be found.- Parameters:
countryLocalizationId- the primary key of the country localization- Returns:
- the country localization, or
nullif a country localization with the primary key could not be found
-
findAll
List<CountryLocalization> findAll()Returns all the country localizations.- Returns:
- the country localizations
-
findAll
Returns a range of all the country localizations.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCountryLocalizationModelImpl.- Parameters:
start- the lower bound of the range of country localizationsend- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCountryLocalizationModelImpl.- Parameters:
start- the lower bound of the range of country localizationsend- the upper bound of the range of country localizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCountryLocalizationModelImpl.- Parameters:
start- the lower bound of the range of country localizationsend- the upper bound of the range of country localizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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
-