@ProviderType public interface CPDefinitionLocalizationPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<CPDefinitionLocalization>
Caching information and settings can be found in portal.properties
CPDefinitionLocalizationUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(CPDefinitionLocalization cpDefinitionLocalization)
Caches the cp definition localization in the entity cache if it is enabled.
|
void |
cacheResult(java.util.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_LanguageId(long CPDefinitionId,
java.lang.String languageId)
Returns the number of cp definition localizations where CPDefinitionId = ? and languageId = ?.
|
int |
countByCPDefinitionId(long CPDefinitionId)
Returns the number of cp definition localizations where CPDefinitionId = ?.
|
CPDefinitionLocalization |
create(long cpDefinitionLocalizationId)
Creates a new cp definition localization with the primary key.
|
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 = ?.
|
CPDefinitionLocalization |
fetchByCPDefinitionId_LanguageId(long CPDefinitionId,
java.lang.String languageId)
Returns the cp definition localization where CPDefinitionId = ? and languageId = ? or returns
null if it could not be found. |
CPDefinitionLocalization |
fetchByCPDefinitionId_LanguageId(long CPDefinitionId,
java.lang.String languageId,
boolean useFinderCache)
Returns the cp definition localization where CPDefinitionId = ? and languageId = ? or returns
null if it could not be found, optionally using the finder cache. |
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 = ?.
|
CPDefinitionLocalization |
fetchByPrimaryKey(long cpDefinitionLocalizationId)
Returns the cp definition localization with the primary key or returns
null if it could not be found. |
java.util.List<CPDefinitionLocalization> |
findAll()
Returns all the cp definition localizations.
|
java.util.List<CPDefinitionLocalization> |
findAll(int start,
int end)
Returns a range of all the cp definition localizations.
|
java.util.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.
|
java.util.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.
|
CPDefinitionLocalization |
findByCPDefinitionId_First(long CPDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLocalization> orderByComparator)
Returns the first cp definition localization in the ordered set where CPDefinitionId = ?.
|
CPDefinitionLocalization |
findByCPDefinitionId_LanguageId(long CPDefinitionId,
java.lang.String languageId)
Returns the cp definition localization where CPDefinitionId = ? and languageId = ? or throws a
NoSuchCPDefinitionLocalizationException if it could not be found. |
CPDefinitionLocalization |
findByCPDefinitionId_Last(long CPDefinitionId,
com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLocalization> orderByComparator)
Returns the last cp definition localization in the ordered set where CPDefinitionId = ?.
|
CPDefinitionLocalization[] |
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 = ?.
|
java.util.List<CPDefinitionLocalization> |
findByCPDefinitionId(long CPDefinitionId)
Returns all the cp definition localizations where CPDefinitionId = ?.
|
java.util.List<CPDefinitionLocalization> |
findByCPDefinitionId(long CPDefinitionId,
int start,
int end)
Returns a range of all the cp definition localizations where CPDefinitionId = ?.
|
java.util.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 = ?.
|
java.util.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 = ?.
|
CPDefinitionLocalization |
findByPrimaryKey(long cpDefinitionLocalizationId)
Returns the cp definition localization with the primary key or throws a
NoSuchCPDefinitionLocalizationException if it could not be found. |
CPDefinitionLocalization |
remove(long cpDefinitionLocalizationId)
Removes the cp definition localization with the primary key from the database.
|
void |
removeAll()
Removes all the cp definition localizations from the database.
|
CPDefinitionLocalization |
removeByCPDefinitionId_LanguageId(long CPDefinitionId,
java.lang.String languageId)
Removes the cp definition localization where CPDefinitionId = ? and languageId = ? from the database.
|
void |
removeByCPDefinitionId(long CPDefinitionId)
Removes all the cp definition localizations where CPDefinitionId = ? from the database.
|
CPDefinitionLocalization |
updateImpl(CPDefinitionLocalization cpDefinitionLocalization) |
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<CPDefinitionLocalization> findByCPDefinitionId(long CPDefinitionId)
CPDefinitionId
- the cp definition IDjava.util.List<CPDefinitionLocalization> findByCPDefinitionId(long CPDefinitionId, 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 CPDefinitionLocalizationModelImpl
.
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)java.util.List<CPDefinitionLocalization> findByCPDefinitionId(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLocalization> 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 CPDefinitionLocalizationModelImpl
.
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 (optionally null
)java.util.List<CPDefinitionLocalization> findByCPDefinitionId(long CPDefinitionId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLocalization> 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 CPDefinitionLocalizationModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cacheCPDefinitionLocalization findByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLocalization> orderByComparator) throws NoSuchCPDefinitionLocalizationException
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionLocalizationException
- if a matching cp definition localization could not be foundCPDefinitionLocalization fetchByCPDefinitionId_First(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLocalization> orderByComparator)
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition localization could not be foundCPDefinitionLocalization findByCPDefinitionId_Last(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLocalization> orderByComparator) throws NoSuchCPDefinitionLocalizationException
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionLocalizationException
- if a matching cp definition localization could not be foundCPDefinitionLocalization fetchByCPDefinitionId_Last(long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLocalization> orderByComparator)
CPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching cp definition localization could not be foundCPDefinitionLocalization[] findByCPDefinitionId_PrevAndNext(long cpDefinitionLocalizationId, long CPDefinitionId, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLocalization> orderByComparator) throws NoSuchCPDefinitionLocalizationException
cpDefinitionLocalizationId
- the primary key of the current cp definition localizationCPDefinitionId
- the cp definition IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCPDefinitionLocalizationException
- if a cp definition localization with the primary key could not be foundvoid removeByCPDefinitionId(long CPDefinitionId)
CPDefinitionId
- the cp definition IDint countByCPDefinitionId(long CPDefinitionId)
CPDefinitionId
- the cp definition IDCPDefinitionLocalization findByCPDefinitionId_LanguageId(long CPDefinitionId, java.lang.String languageId) throws NoSuchCPDefinitionLocalizationException
NoSuchCPDefinitionLocalizationException
if it could not be found.CPDefinitionId
- the cp definition IDlanguageId
- the language IDNoSuchCPDefinitionLocalizationException
- if a matching cp definition localization could not be foundCPDefinitionLocalization fetchByCPDefinitionId_LanguageId(long CPDefinitionId, java.lang.String languageId)
null
if it could not be found. Uses the finder cache.CPDefinitionId
- the cp definition IDlanguageId
- the language IDnull
if a matching cp definition localization could not be foundCPDefinitionLocalization fetchByCPDefinitionId_LanguageId(long CPDefinitionId, java.lang.String languageId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.CPDefinitionId
- the cp definition IDlanguageId
- the language IDuseFinderCache
- whether to use the finder cachenull
if a matching cp definition localization could not be foundCPDefinitionLocalization removeByCPDefinitionId_LanguageId(long CPDefinitionId, java.lang.String languageId) throws NoSuchCPDefinitionLocalizationException
CPDefinitionId
- the cp definition IDlanguageId
- the language IDNoSuchCPDefinitionLocalizationException
int countByCPDefinitionId_LanguageId(long CPDefinitionId, java.lang.String languageId)
CPDefinitionId
- the cp definition IDlanguageId
- the language IDvoid cacheResult(CPDefinitionLocalization cpDefinitionLocalization)
cpDefinitionLocalization
- the cp definition localizationvoid cacheResult(java.util.List<CPDefinitionLocalization> cpDefinitionLocalizations)
cpDefinitionLocalizations
- the cp definition localizationsCPDefinitionLocalization create(long cpDefinitionLocalizationId)
cpDefinitionLocalizationId
- the primary key for the new cp definition localizationCPDefinitionLocalization remove(long cpDefinitionLocalizationId) throws NoSuchCPDefinitionLocalizationException
cpDefinitionLocalizationId
- the primary key of the cp definition localizationNoSuchCPDefinitionLocalizationException
- if a cp definition localization with the primary key could not be foundCPDefinitionLocalization updateImpl(CPDefinitionLocalization cpDefinitionLocalization)
CPDefinitionLocalization findByPrimaryKey(long cpDefinitionLocalizationId) throws NoSuchCPDefinitionLocalizationException
NoSuchCPDefinitionLocalizationException
if it could not be found.cpDefinitionLocalizationId
- the primary key of the cp definition localizationNoSuchCPDefinitionLocalizationException
- if a cp definition localization with the primary key could not be foundCPDefinitionLocalization fetchByPrimaryKey(long cpDefinitionLocalizationId)
null
if it could not be found.cpDefinitionLocalizationId
- the primary key of the cp definition localizationnull
if a cp definition localization with the primary key could not be foundjava.util.List<CPDefinitionLocalization> findAll()
java.util.List<CPDefinitionLocalization> 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 CPDefinitionLocalizationModelImpl
.
start
- the lower bound of the range of cp definition localizationsend
- the upper bound of the range of cp definition localizations (not inclusive)java.util.List<CPDefinitionLocalization> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLocalization> 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 CPDefinitionLocalizationModelImpl
.
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 (optionally null
)java.util.List<CPDefinitionLocalization> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CPDefinitionLocalization> 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 CPDefinitionLocalizationModelImpl
.
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 (optionally null
)useFinderCache
- whether to use the finder cachevoid removeAll()
int countAll()