@ProviderType public interface CountryLocalizationPersistence extends BasePersistence<CountryLocalization>, CTPersistence<CountryLocalization>
Caching information and settings can be found in portal.properties
CountryLocalizationUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(CountryLocalization countryLocalization)
Caches the country localization in the entity cache if it is enabled.
|
void |
cacheResult(List<CountryLocalization> countryLocalizations)
Caches the country localizations in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of country localizations.
|
int |
countByCountryId_LanguageId(long countryId,
String languageId)
Returns the number of country localizations where countryId = ? and languageId = ?.
|
int |
countByCountryId(long countryId)
Returns the number of country localizations where countryId = ?.
|
CountryLocalization |
create(long countryLocalizationId)
Creates a new country localization with the primary key.
|
CountryLocalization |
fetchByCountryId_First(long countryId,
OrderByComparator<CountryLocalization> orderByComparator)
Returns the first country localization in the ordered set where countryId = ?.
|
CountryLocalization |
fetchByCountryId_LanguageId(long countryId,
String languageId)
Returns the country localization where countryId = ? and languageId = ? or returns
null if it could not be found. |
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. |
CountryLocalization |
fetchByCountryId_Last(long countryId,
OrderByComparator<CountryLocalization> orderByComparator)
Returns the last country localization in the ordered set where countryId = ?.
|
CountryLocalization |
fetchByPrimaryKey(long countryLocalizationId)
Returns the country localization with the primary key or returns
null if it could not be found. |
List<CountryLocalization> |
findAll()
Returns all the country localizations.
|
List<CountryLocalization> |
findAll(int start,
int end)
Returns a range of all the country localizations.
|
List<CountryLocalization> |
findAll(int start,
int end,
OrderByComparator<CountryLocalization> orderByComparator)
Returns an ordered range of all the country localizations.
|
List<CountryLocalization> |
findAll(int start,
int end,
OrderByComparator<CountryLocalization> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the country localizations.
|
CountryLocalization |
findByCountryId_First(long countryId,
OrderByComparator<CountryLocalization> orderByComparator)
Returns the first country localization in the ordered set where countryId = ?.
|
CountryLocalization |
findByCountryId_LanguageId(long countryId,
String languageId)
Returns the country localization where countryId = ? and languageId = ? or throws a
NoSuchCountryLocalizationException if it could not be found. |
CountryLocalization |
findByCountryId_Last(long countryId,
OrderByComparator<CountryLocalization> orderByComparator)
Returns the last country localization in the ordered set where countryId = ?.
|
CountryLocalization[] |
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 = ?.
|
List<CountryLocalization> |
findByCountryId(long countryId)
Returns all the country localizations where countryId = ?.
|
List<CountryLocalization> |
findByCountryId(long countryId,
int start,
int end)
Returns a range of all the country localizations where countryId = ?.
|
List<CountryLocalization> |
findByCountryId(long countryId,
int start,
int end,
OrderByComparator<CountryLocalization> orderByComparator)
Returns an ordered range of all the country localizations where countryId = ?.
|
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 = ?.
|
CountryLocalization |
findByPrimaryKey(long countryLocalizationId)
Returns the country localization with the primary key or throws a
NoSuchCountryLocalizationException if it could not be found. |
CountryLocalization |
remove(long countryLocalizationId)
Removes the country localization with the primary key from the database.
|
void |
removeAll()
Removes all the country localizations from the database.
|
CountryLocalization |
removeByCountryId_LanguageId(long countryId,
String languageId)
Removes the country localization where countryId = ? and languageId = ? from the database.
|
void |
removeByCountryId(long countryId)
Removes all the country localizations where countryId = ? from the database.
|
CountryLocalization |
updateImpl(CountryLocalization countryLocalization) |
getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
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, setDataSource, unregisterListener, update, update
List<CountryLocalization> findByCountryId(long countryId)
countryId
- the country IDList<CountryLocalization> findByCountryId(long countryId, int start, int end)
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
.
countryId
- the country IDstart
- the lower bound of the range of country localizationsend
- the upper bound of the range of country localizations (not inclusive)List<CountryLocalization> findByCountryId(long countryId, int start, int end, OrderByComparator<CountryLocalization> orderByComparator)
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
.
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 (optionally null
)List<CountryLocalization> findByCountryId(long countryId, int start, int end, OrderByComparator<CountryLocalization> orderByComparator, boolean useFinderCache)
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
.
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 (optionally null
)useFinderCache
- whether to use the finder cacheCountryLocalization findByCountryId_First(long countryId, OrderByComparator<CountryLocalization> orderByComparator) throws NoSuchCountryLocalizationException
countryId
- the country IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCountryLocalizationException
- if a matching country localization could not be foundCountryLocalization fetchByCountryId_First(long countryId, OrderByComparator<CountryLocalization> orderByComparator)
countryId
- the country IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching country localization could not be foundCountryLocalization findByCountryId_Last(long countryId, OrderByComparator<CountryLocalization> orderByComparator) throws NoSuchCountryLocalizationException
countryId
- the country IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCountryLocalizationException
- if a matching country localization could not be foundCountryLocalization fetchByCountryId_Last(long countryId, OrderByComparator<CountryLocalization> orderByComparator)
countryId
- the country IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching country localization could not be foundCountryLocalization[] findByCountryId_PrevAndNext(long countryLocalizationId, long countryId, OrderByComparator<CountryLocalization> orderByComparator) throws NoSuchCountryLocalizationException
countryLocalizationId
- the primary key of the current country localizationcountryId
- the country IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCountryLocalizationException
- if a country localization with the primary key could not be foundvoid removeByCountryId(long countryId)
countryId
- the country IDint countByCountryId(long countryId)
countryId
- the country IDCountryLocalization findByCountryId_LanguageId(long countryId, String languageId) throws NoSuchCountryLocalizationException
NoSuchCountryLocalizationException
if it could not be found.countryId
- the country IDlanguageId
- the language IDNoSuchCountryLocalizationException
- if a matching country localization could not be foundCountryLocalization fetchByCountryId_LanguageId(long countryId, String languageId)
null
if it could not be found. Uses the finder cache.countryId
- the country IDlanguageId
- the language IDnull
if a matching country localization could not be foundCountryLocalization fetchByCountryId_LanguageId(long countryId, String languageId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.countryId
- the country IDlanguageId
- the language IDuseFinderCache
- whether to use the finder cachenull
if a matching country localization could not be foundCountryLocalization removeByCountryId_LanguageId(long countryId, String languageId) throws NoSuchCountryLocalizationException
countryId
- the country IDlanguageId
- the language IDNoSuchCountryLocalizationException
int countByCountryId_LanguageId(long countryId, String languageId)
countryId
- the country IDlanguageId
- the language IDvoid cacheResult(CountryLocalization countryLocalization)
countryLocalization
- the country localizationvoid cacheResult(List<CountryLocalization> countryLocalizations)
countryLocalizations
- the country localizationsCountryLocalization create(long countryLocalizationId)
countryLocalizationId
- the primary key for the new country localizationCountryLocalization remove(long countryLocalizationId) throws NoSuchCountryLocalizationException
countryLocalizationId
- the primary key of the country localizationNoSuchCountryLocalizationException
- if a country localization with the primary key could not be foundCountryLocalization updateImpl(CountryLocalization countryLocalization)
CountryLocalization findByPrimaryKey(long countryLocalizationId) throws NoSuchCountryLocalizationException
NoSuchCountryLocalizationException
if it could not be found.countryLocalizationId
- the primary key of the country localizationNoSuchCountryLocalizationException
- if a country localization with the primary key could not be foundCountryLocalization fetchByPrimaryKey(long countryLocalizationId)
null
if it could not be found.countryLocalizationId
- the primary key of the country localizationnull
if a country localization with the primary key could not be foundList<CountryLocalization> findAll()
List<CountryLocalization> findAll(int start, int end)
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
.
start
- the lower bound of the range of country localizationsend
- the upper bound of the range of country localizations (not inclusive)List<CountryLocalization> findAll(int start, int end, OrderByComparator<CountryLocalization> orderByComparator)
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
.
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 (optionally null
)List<CountryLocalization> findAll(int start, int end, OrderByComparator<CountryLocalization> orderByComparator, boolean useFinderCache)
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
.
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 (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()