Interface CPDefinitionLocalizationPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<CPDefinitionLocalization>
,com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<CPDefinitionLocalization>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheResult
(CPDefinitionLocalization cpDefinitionLocalization) Caches the cp definition localization in the entity cache if it is enabled.void
cacheResult
(List<CPDefinitionLocalization> cpDefinitionLocalizations) Caches the cp definition localizations in the entity cache if it is enabled.int
countAll()
Returns the number of cp definition localizations.int
countByCPDefinitionId
(long CPDefinitionId) Returns the number of cp definition localizations where CPDefinitionId = ?.int
countByCPDefinitionId_LanguageId
(long CPDefinitionId, String languageId) Returns the number of cp definition localizations where CPDefinitionId = ? and languageId = ?.create
(long cpDefinitionLocalizationId) Creates a new cp definition localization with the primary key.fetchByCPDefinitionId_First
(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLocalization> orderByComparator) Returns the first cp definition localization in the ordered set where CPDefinitionId = ?.fetchByCPDefinitionId_LanguageId
(long CPDefinitionId, String languageId) Returns the cp definition localization where CPDefinitionId = ? and languageId = ? or returnsnull
if it could not be found.fetchByCPDefinitionId_LanguageId
(long CPDefinitionId, String languageId, boolean useFinderCache) Returns the cp definition localization where CPDefinitionId = ? and languageId = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByCPDefinitionId_Last
(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLocalization> orderByComparator) Returns the last cp definition localization in the ordered set where CPDefinitionId = ?.fetchByPrimaryKey
(long cpDefinitionLocalizationId) Returns the cp definition localization with the primary key or returnsnull
if it could not be found.findAll()
Returns all the cp definition localizations.findAll
(int start, int end) Returns a range of all the cp definition localizations.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLocalization> orderByComparator) Returns an ordered range of all the cp definition localizations.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLocalization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definition localizations.findByCPDefinitionId
(long CPDefinitionId) Returns all the cp definition localizations where CPDefinitionId = ?.findByCPDefinitionId
(long CPDefinitionId, int start, int end) Returns a range of all the cp definition localizations where CPDefinitionId = ?.findByCPDefinitionId
(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLocalization> orderByComparator) Returns an ordered range of all the cp definition localizations where CPDefinitionId = ?.findByCPDefinitionId
(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLocalization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definition localizations where CPDefinitionId = ?.findByCPDefinitionId_First
(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLocalization> orderByComparator) Returns the first cp definition localization in the ordered set where CPDefinitionId = ?.findByCPDefinitionId_LanguageId
(long CPDefinitionId, String languageId) Returns the cp definition localization where CPDefinitionId = ? and languageId = ? or throws aNoSuchCPDefinitionLocalizationException
if it could not be found.findByCPDefinitionId_Last
(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLocalization> orderByComparator) Returns the last cp definition localization in the ordered set where CPDefinitionId = ?.findByCPDefinitionId_PrevAndNext
(long cpDefinitionLocalizationId, long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLocalization> orderByComparator) Returns the cp definition localizations before and after the current cp definition localization in the ordered set where CPDefinitionId = ?.findByPrimaryKey
(long cpDefinitionLocalizationId) Returns the cp definition localization with the primary key or throws aNoSuchCPDefinitionLocalizationException
if it could not be found.remove
(long cpDefinitionLocalizationId) Removes the cp definition localization with the primary key from the database.void
Removes all the cp definition localizations from the database.void
removeByCPDefinitionId
(long CPDefinitionId) Removes all the cp definition localizations where CPDefinitionId = ? from the database.removeByCPDefinitionId_LanguageId
(long CPDefinitionId, String languageId) Removes the cp definition localization where CPDefinitionId = ? and languageId = ? from the database.updateImpl
(CPDefinitionLocalization cpDefinitionLocalization) 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
-
findByCPDefinitionId
Returns all the cp definition localizations where CPDefinitionId = ?.- Parameters:
CPDefinitionId
- the cp definition ID- Returns:
- the matching cp definition localizations
-
findByCPDefinitionId
Returns a range of all the cp definition localizations where CPDefinitionId = ?.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 fromCPDefinitionLocalizationModelImpl
.- Parameters:
CPDefinitionId
- the cp definition IDstart
- the lower bound of the range of cp definition localizationsend
- the upper bound of the range of cp definition localizations (not inclusive)- Returns:
- the range of matching cp definition localizations
-
findByCPDefinitionId
List<CPDefinitionLocalization> findByCPDefinitionId(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLocalization> orderByComparator) Returns an ordered range of all the cp definition localizations where CPDefinitionId = ?.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 fromCPDefinitionLocalizationModelImpl
.- Parameters:
CPDefinitionId
- the cp definition IDstart
- the lower bound of the range of cp definition localizationsend
- the upper bound of the range of cp definition localizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching cp definition localizations
-
findByCPDefinitionId
List<CPDefinitionLocalization> findByCPDefinitionId(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLocalization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definition localizations where CPDefinitionId = ?.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 fromCPDefinitionLocalizationModelImpl
.- Parameters:
CPDefinitionId
- the cp definition IDstart
- the lower bound of the range of cp definition localizationsend
- the upper bound of the range of cp definition 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 cp definition localizations
-
findByCPDefinitionId_First
CPDefinitionLocalization findByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLocalization> orderByComparator) throws NoSuchCPDefinitionLocalizationException Returns the first cp definition localization in the ordered set where CPDefinitionId = ?.- Parameters:
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition localization
- Throws:
NoSuchCPDefinitionLocalizationException
- if a matching cp definition localization could not be found
-
fetchByCPDefinitionId_First
CPDefinitionLocalization fetchByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLocalization> orderByComparator) Returns the first cp definition localization in the ordered set where CPDefinitionId = ?.- Parameters:
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching cp definition localization, or
null
if a matching cp definition localization could not be found
-
findByCPDefinitionId_Last
CPDefinitionLocalization findByCPDefinitionId_Last(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLocalization> orderByComparator) throws NoSuchCPDefinitionLocalizationException Returns the last cp definition localization in the ordered set where CPDefinitionId = ?.- Parameters:
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition localization
- Throws:
NoSuchCPDefinitionLocalizationException
- if a matching cp definition localization could not be found
-
fetchByCPDefinitionId_Last
CPDefinitionLocalization fetchByCPDefinitionId_Last(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLocalization> orderByComparator) Returns the last cp definition localization in the ordered set where CPDefinitionId = ?.- Parameters:
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching cp definition localization, or
null
if a matching cp definition localization could not be found
-
findByCPDefinitionId_PrevAndNext
CPDefinitionLocalization[] findByCPDefinitionId_PrevAndNext(long cpDefinitionLocalizationId, long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLocalization> orderByComparator) throws NoSuchCPDefinitionLocalizationException Returns the cp definition localizations before and after the current cp definition localization in the ordered set where CPDefinitionId = ?.- Parameters:
cpDefinitionLocalizationId
- the primary key of the current cp definition localizationCPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next cp definition localization
- Throws:
NoSuchCPDefinitionLocalizationException
- if a cp definition localization with the primary key could not be found
-
removeByCPDefinitionId
void removeByCPDefinitionId(long CPDefinitionId) Removes all the cp definition localizations where CPDefinitionId = ? from the database.- Parameters:
CPDefinitionId
- the cp definition ID
-
countByCPDefinitionId
int countByCPDefinitionId(long CPDefinitionId) Returns the number of cp definition localizations where CPDefinitionId = ?.- Parameters:
CPDefinitionId
- the cp definition ID- Returns:
- the number of matching cp definition localizations
-
findByCPDefinitionId_LanguageId
CPDefinitionLocalization findByCPDefinitionId_LanguageId(long CPDefinitionId, String languageId) throws NoSuchCPDefinitionLocalizationException Returns the cp definition localization where CPDefinitionId = ? and languageId = ? or throws aNoSuchCPDefinitionLocalizationException
if it could not be found.- Parameters:
CPDefinitionId
- the cp definition IDlanguageId
- the language ID- Returns:
- the matching cp definition localization
- Throws:
NoSuchCPDefinitionLocalizationException
- if a matching cp definition localization could not be found
-
fetchByCPDefinitionId_LanguageId
Returns the cp definition localization where CPDefinitionId = ? and languageId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
CPDefinitionId
- the cp definition IDlanguageId
- the language ID- Returns:
- the matching cp definition localization, or
null
if a matching cp definition localization could not be found
-
fetchByCPDefinitionId_LanguageId
CPDefinitionLocalization fetchByCPDefinitionId_LanguageId(long CPDefinitionId, String languageId, boolean useFinderCache) Returns the cp definition localization where CPDefinitionId = ? and languageId = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
CPDefinitionId
- the cp definition IDlanguageId
- the language IDuseFinderCache
- whether to use the finder cache- Returns:
- the matching cp definition localization, or
null
if a matching cp definition localization could not be found
-
removeByCPDefinitionId_LanguageId
CPDefinitionLocalization removeByCPDefinitionId_LanguageId(long CPDefinitionId, String languageId) throws NoSuchCPDefinitionLocalizationException Removes the cp definition localization where CPDefinitionId = ? and languageId = ? from the database.- Parameters:
CPDefinitionId
- the cp definition IDlanguageId
- the language ID- Returns:
- the cp definition localization that was removed
- Throws:
NoSuchCPDefinitionLocalizationException
-
countByCPDefinitionId_LanguageId
Returns the number of cp definition localizations where CPDefinitionId = ? and languageId = ?.- Parameters:
CPDefinitionId
- the cp definition IDlanguageId
- the language ID- Returns:
- the number of matching cp definition localizations
-
cacheResult
Caches the cp definition localization in the entity cache if it is enabled.- Parameters:
cpDefinitionLocalization
- the cp definition localization
-
cacheResult
Caches the cp definition localizations in the entity cache if it is enabled.- Parameters:
cpDefinitionLocalizations
- the cp definition localizations
-
create
Creates a new cp definition localization with the primary key. Does not add the cp definition localization to the database.- Parameters:
cpDefinitionLocalizationId
- the primary key for the new cp definition localization- Returns:
- the new cp definition localization
-
remove
CPDefinitionLocalization remove(long cpDefinitionLocalizationId) throws NoSuchCPDefinitionLocalizationException Removes the cp definition localization with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
cpDefinitionLocalizationId
- the primary key of the cp definition localization- Returns:
- the cp definition localization that was removed
- Throws:
NoSuchCPDefinitionLocalizationException
- if a cp definition localization with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
CPDefinitionLocalization findByPrimaryKey(long cpDefinitionLocalizationId) throws NoSuchCPDefinitionLocalizationException Returns the cp definition localization with the primary key or throws aNoSuchCPDefinitionLocalizationException
if it could not be found.- Parameters:
cpDefinitionLocalizationId
- the primary key of the cp definition localization- Returns:
- the cp definition localization
- Throws:
NoSuchCPDefinitionLocalizationException
- if a cp definition localization with the primary key could not be found
-
fetchByPrimaryKey
Returns the cp definition localization with the primary key or returnsnull
if it could not be found.- Parameters:
cpDefinitionLocalizationId
- the primary key of the cp definition localization- Returns:
- the cp definition localization, or
null
if a cp definition localization with the primary key could not be found
-
findAll
List<CPDefinitionLocalization> findAll()Returns all the cp definition localizations.- Returns:
- the cp definition localizations
-
findAll
Returns a range of all the cp definition 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 fromCPDefinitionLocalizationModelImpl
.- Parameters:
start
- the lower bound of the range of cp definition localizationsend
- the upper bound of the range of cp definition localizations (not inclusive)- Returns:
- the range of cp definition localizations
-
findAll
List<CPDefinitionLocalization> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLocalization> orderByComparator) Returns an ordered range of all the cp definition 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 fromCPDefinitionLocalizationModelImpl
.- Parameters:
start
- the lower bound of the range of cp definition localizationsend
- the upper bound of the range of cp definition localizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of cp definition localizations
-
findAll
List<CPDefinitionLocalization> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLocalization> orderByComparator, boolean useFinderCache) Returns an ordered range of all the cp definition 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 fromCPDefinitionLocalizationModelImpl
.- Parameters:
start
- the lower bound of the range of cp definition localizationsend
- the upper bound of the range of cp definition localizations (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of cp definition localizations
-
removeAll
void removeAll()Removes all the cp definition localizations from the database. -
countAll
int countAll()Returns the number of cp definition localizations.- Returns:
- the number of cp definition localizations
-