@ProviderType public interface RegionLocalizationPersistence extends BasePersistence<RegionLocalization>, CTPersistence<RegionLocalization>
Caching information and settings can be found in portal.properties
RegionLocalizationUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(java.util.List<RegionLocalization> regionLocalizations)
Caches the region localizations in the entity cache if it is enabled.
|
void |
cacheResult(RegionLocalization regionLocalization)
Caches the region localization in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of region localizations.
|
int |
countByRegionId_LanguageId(long regionId,
java.lang.String languageId)
Returns the number of region localizations where regionId = ? and languageId = ?.
|
int |
countByRegionId(long regionId)
Returns the number of region localizations where regionId = ?.
|
RegionLocalization |
create(long regionLocalizationId)
Creates a new region localization with the primary key.
|
RegionLocalization |
fetchByPrimaryKey(long regionLocalizationId)
Returns the region localization with the primary key or returns
null if it could not be found. |
RegionLocalization |
fetchByRegionId_First(long regionId,
OrderByComparator<RegionLocalization> orderByComparator)
Returns the first region localization in the ordered set where regionId = ?.
|
RegionLocalization |
fetchByRegionId_LanguageId(long regionId,
java.lang.String languageId)
Returns the region localization where regionId = ? and languageId = ? or returns
null if it could not be found. |
RegionLocalization |
fetchByRegionId_LanguageId(long regionId,
java.lang.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. |
RegionLocalization |
fetchByRegionId_Last(long regionId,
OrderByComparator<RegionLocalization> orderByComparator)
Returns the last region localization in the ordered set where regionId = ?.
|
java.util.List<RegionLocalization> |
findAll()
Returns all the region localizations.
|
java.util.List<RegionLocalization> |
findAll(int start,
int end)
Returns a range of all the region localizations.
|
java.util.List<RegionLocalization> |
findAll(int start,
int end,
OrderByComparator<RegionLocalization> orderByComparator)
Returns an ordered range of all the region localizations.
|
java.util.List<RegionLocalization> |
findAll(int start,
int end,
OrderByComparator<RegionLocalization> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the region localizations.
|
RegionLocalization |
findByPrimaryKey(long regionLocalizationId)
Returns the region localization with the primary key or throws a
NoSuchRegionLocalizationException if it could not be found. |
RegionLocalization |
findByRegionId_First(long regionId,
OrderByComparator<RegionLocalization> orderByComparator)
Returns the first region localization in the ordered set where regionId = ?.
|
RegionLocalization |
findByRegionId_LanguageId(long regionId,
java.lang.String languageId)
Returns the region localization where regionId = ? and languageId = ? or throws a
NoSuchRegionLocalizationException if it could not be found. |
RegionLocalization |
findByRegionId_Last(long regionId,
OrderByComparator<RegionLocalization> orderByComparator)
Returns the last region localization in the ordered set where regionId = ?.
|
RegionLocalization[] |
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 = ?.
|
java.util.List<RegionLocalization> |
findByRegionId(long regionId)
Returns all the region localizations where regionId = ?.
|
java.util.List<RegionLocalization> |
findByRegionId(long regionId,
int start,
int end)
Returns a range of all the region localizations where regionId = ?.
|
java.util.List<RegionLocalization> |
findByRegionId(long regionId,
int start,
int end,
OrderByComparator<RegionLocalization> orderByComparator)
Returns an ordered range of all the region localizations where regionId = ?.
|
java.util.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 = ?.
|
RegionLocalization |
remove(long regionLocalizationId)
Removes the region localization with the primary key from the database.
|
void |
removeAll()
Removes all the region localizations from the database.
|
RegionLocalization |
removeByRegionId_LanguageId(long regionId,
java.lang.String languageId)
Removes the region localization where regionId = ? and languageId = ? from the database.
|
void |
removeByRegionId(long regionId)
Removes all the region localizations where regionId = ? from the database.
|
RegionLocalization |
updateImpl(RegionLocalization regionLocalization) |
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
java.util.List<RegionLocalization> findByRegionId(long regionId)
regionId
- the region IDjava.util.List<RegionLocalization> findByRegionId(long regionId, 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 RegionLocalizationModelImpl
.
regionId
- the region IDstart
- the lower bound of the range of region localizationsend
- the upper bound of the range of region localizations (not inclusive)java.util.List<RegionLocalization> findByRegionId(long regionId, int start, int end, OrderByComparator<RegionLocalization> 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 RegionLocalizationModelImpl
.
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 (optionally null
)java.util.List<RegionLocalization> findByRegionId(long regionId, int start, int end, OrderByComparator<RegionLocalization> 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 RegionLocalizationModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cacheRegionLocalization findByRegionId_First(long regionId, OrderByComparator<RegionLocalization> orderByComparator) throws NoSuchRegionLocalizationException
regionId
- the region IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRegionLocalizationException
- if a matching region localization could not be foundRegionLocalization fetchByRegionId_First(long regionId, OrderByComparator<RegionLocalization> orderByComparator)
regionId
- the region IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching region localization could not be foundRegionLocalization findByRegionId_Last(long regionId, OrderByComparator<RegionLocalization> orderByComparator) throws NoSuchRegionLocalizationException
regionId
- the region IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRegionLocalizationException
- if a matching region localization could not be foundRegionLocalization fetchByRegionId_Last(long regionId, OrderByComparator<RegionLocalization> orderByComparator)
regionId
- the region IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching region localization could not be foundRegionLocalization[] findByRegionId_PrevAndNext(long regionLocalizationId, long regionId, OrderByComparator<RegionLocalization> orderByComparator) throws NoSuchRegionLocalizationException
regionLocalizationId
- the primary key of the current region localizationregionId
- the region IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRegionLocalizationException
- if a region localization with the primary key could not be foundvoid removeByRegionId(long regionId)
regionId
- the region IDint countByRegionId(long regionId)
regionId
- the region IDRegionLocalization findByRegionId_LanguageId(long regionId, java.lang.String languageId) throws NoSuchRegionLocalizationException
NoSuchRegionLocalizationException
if it could not be found.regionId
- the region IDlanguageId
- the language IDNoSuchRegionLocalizationException
- if a matching region localization could not be foundRegionLocalization fetchByRegionId_LanguageId(long regionId, java.lang.String languageId)
null
if it could not be found. Uses the finder cache.regionId
- the region IDlanguageId
- the language IDnull
if a matching region localization could not be foundRegionLocalization fetchByRegionId_LanguageId(long regionId, java.lang.String languageId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.regionId
- the region IDlanguageId
- the language IDuseFinderCache
- whether to use the finder cachenull
if a matching region localization could not be foundRegionLocalization removeByRegionId_LanguageId(long regionId, java.lang.String languageId) throws NoSuchRegionLocalizationException
regionId
- the region IDlanguageId
- the language IDNoSuchRegionLocalizationException
int countByRegionId_LanguageId(long regionId, java.lang.String languageId)
regionId
- the region IDlanguageId
- the language IDvoid cacheResult(RegionLocalization regionLocalization)
regionLocalization
- the region localizationvoid cacheResult(java.util.List<RegionLocalization> regionLocalizations)
regionLocalizations
- the region localizationsRegionLocalization create(long regionLocalizationId)
regionLocalizationId
- the primary key for the new region localizationRegionLocalization remove(long regionLocalizationId) throws NoSuchRegionLocalizationException
regionLocalizationId
- the primary key of the region localizationNoSuchRegionLocalizationException
- if a region localization with the primary key could not be foundRegionLocalization updateImpl(RegionLocalization regionLocalization)
RegionLocalization findByPrimaryKey(long regionLocalizationId) throws NoSuchRegionLocalizationException
NoSuchRegionLocalizationException
if it could not be found.regionLocalizationId
- the primary key of the region localizationNoSuchRegionLocalizationException
- if a region localization with the primary key could not be foundRegionLocalization fetchByPrimaryKey(long regionLocalizationId)
null
if it could not be found.regionLocalizationId
- the primary key of the region localizationnull
if a region localization with the primary key could not be foundjava.util.List<RegionLocalization> findAll()
java.util.List<RegionLocalization> 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 RegionLocalizationModelImpl
.
start
- the lower bound of the range of region localizationsend
- the upper bound of the range of region localizations (not inclusive)java.util.List<RegionLocalization> findAll(int start, int end, OrderByComparator<RegionLocalization> 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 RegionLocalizationModelImpl
.
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 (optionally null
)java.util.List<RegionLocalization> findAll(int start, int end, OrderByComparator<RegionLocalization> 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 RegionLocalizationModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()