public class CTermEntryLocalizationUtil
extends java.lang.Object
com.liferay.commerce.term.service.persistence.impl.CTermEntryLocalizationPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
CTermEntryLocalizationPersistence
Constructor and Description |
---|
CTermEntryLocalizationUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(CTermEntryLocalization cTermEntryLocalization)
Caches the c term entry localization in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<CTermEntryLocalization> cTermEntryLocalizations)
Caches the c term entry localizations in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(CTermEntryLocalization cTermEntryLocalization) |
static int |
countAll()
Returns the number of c term entry localizations.
|
static int |
countByCommerceTermEntryId_LanguageId(long commerceTermEntryId,
java.lang.String languageId)
Returns the number of c term entry localizations where commerceTermEntryId = ? and languageId = ?.
|
static int |
countByCommerceTermEntryId(long commerceTermEntryId)
Returns the number of c term entry localizations where commerceTermEntryId = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static CTermEntryLocalization |
create(long cTermEntryLocalizationId)
Creates a new c term entry localization with the primary key.
|
static CTermEntryLocalization |
fetchByCommerceTermEntryId_First(long commerceTermEntryId,
com.liferay.portal.kernel.util.OrderByComparator<CTermEntryLocalization> orderByComparator)
Returns the first c term entry localization in the ordered set where commerceTermEntryId = ?.
|
static CTermEntryLocalization |
fetchByCommerceTermEntryId_LanguageId(long commerceTermEntryId,
java.lang.String languageId)
Returns the c term entry localization where commerceTermEntryId = ? and languageId = ? or returns
null if it could not be found. |
static CTermEntryLocalization |
fetchByCommerceTermEntryId_LanguageId(long commerceTermEntryId,
java.lang.String languageId,
boolean useFinderCache)
Returns the c term entry localization where commerceTermEntryId = ? and languageId = ? or returns
null if it could not be found, optionally using the finder cache. |
static CTermEntryLocalization |
fetchByCommerceTermEntryId_Last(long commerceTermEntryId,
com.liferay.portal.kernel.util.OrderByComparator<CTermEntryLocalization> orderByComparator)
Returns the last c term entry localization in the ordered set where commerceTermEntryId = ?.
|
static CTermEntryLocalization |
fetchByPrimaryKey(long cTermEntryLocalizationId)
Returns the c term entry localization with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,CTermEntryLocalization> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static java.util.List<CTermEntryLocalization> |
findAll()
Returns all the c term entry localizations.
|
static java.util.List<CTermEntryLocalization> |
findAll(int start,
int end)
Returns a range of all the c term entry localizations.
|
static java.util.List<CTermEntryLocalization> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTermEntryLocalization> orderByComparator)
Returns an ordered range of all the c term entry localizations.
|
static java.util.List<CTermEntryLocalization> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTermEntryLocalization> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the c term entry localizations.
|
static CTermEntryLocalization |
findByCommerceTermEntryId_First(long commerceTermEntryId,
com.liferay.portal.kernel.util.OrderByComparator<CTermEntryLocalization> orderByComparator)
Returns the first c term entry localization in the ordered set where commerceTermEntryId = ?.
|
static CTermEntryLocalization |
findByCommerceTermEntryId_LanguageId(long commerceTermEntryId,
java.lang.String languageId)
Returns the c term entry localization where commerceTermEntryId = ? and languageId = ? or throws a
NoSuchCTermEntryLocalizationException if it could not be found. |
static CTermEntryLocalization |
findByCommerceTermEntryId_Last(long commerceTermEntryId,
com.liferay.portal.kernel.util.OrderByComparator<CTermEntryLocalization> orderByComparator)
Returns the last c term entry localization in the ordered set where commerceTermEntryId = ?.
|
static CTermEntryLocalization[] |
findByCommerceTermEntryId_PrevAndNext(long cTermEntryLocalizationId,
long commerceTermEntryId,
com.liferay.portal.kernel.util.OrderByComparator<CTermEntryLocalization> orderByComparator)
Returns the c term entry localizations before and after the current c term entry localization in the ordered set where commerceTermEntryId = ?.
|
static java.util.List<CTermEntryLocalization> |
findByCommerceTermEntryId(long commerceTermEntryId)
Returns all the c term entry localizations where commerceTermEntryId = ?.
|
static java.util.List<CTermEntryLocalization> |
findByCommerceTermEntryId(long commerceTermEntryId,
int start,
int end)
Returns a range of all the c term entry localizations where commerceTermEntryId = ?.
|
static java.util.List<CTermEntryLocalization> |
findByCommerceTermEntryId(long commerceTermEntryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTermEntryLocalization> orderByComparator)
Returns an ordered range of all the c term entry localizations where commerceTermEntryId = ?.
|
static java.util.List<CTermEntryLocalization> |
findByCommerceTermEntryId(long commerceTermEntryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTermEntryLocalization> orderByComparator,
boolean useFinderCache)
Returns an ordered range of all the c term entry localizations where commerceTermEntryId = ?.
|
static CTermEntryLocalization |
findByPrimaryKey(long cTermEntryLocalizationId)
Returns the c term entry localization with the primary key or throws a
NoSuchCTermEntryLocalizationException if it could not be found. |
static java.util.List<CTermEntryLocalization> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<CTermEntryLocalization> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<CTermEntryLocalization> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<CTermEntryLocalization> orderByComparator) |
static CTermEntryLocalizationPersistence |
getPersistence() |
static CTermEntryLocalization |
remove(long cTermEntryLocalizationId)
Removes the c term entry localization with the primary key from the database.
|
static void |
removeAll()
Removes all the c term entry localizations from the database.
|
static CTermEntryLocalization |
removeByCommerceTermEntryId_LanguageId(long commerceTermEntryId,
java.lang.String languageId)
Removes the c term entry localization where commerceTermEntryId = ? and languageId = ? from the database.
|
static void |
removeByCommerceTermEntryId(long commerceTermEntryId)
Removes all the c term entry localizations where commerceTermEntryId = ? from the database.
|
static void |
setPersistence(CTermEntryLocalizationPersistence persistence) |
static CTermEntryLocalization |
update(CTermEntryLocalization cTermEntryLocalization) |
static CTermEntryLocalization |
update(CTermEntryLocalization cTermEntryLocalization,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static CTermEntryLocalization |
updateImpl(CTermEntryLocalization cTermEntryLocalization) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(CTermEntryLocalization cTermEntryLocalization)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.Map<java.io.Serializable,CTermEntryLocalization> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
BasePersistence.fetchByPrimaryKeys(Set)
public static java.util.List<CTermEntryLocalization> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<CTermEntryLocalization> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<CTermEntryLocalization> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTermEntryLocalization> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static CTermEntryLocalization update(CTermEntryLocalization cTermEntryLocalization)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static CTermEntryLocalization update(CTermEntryLocalization cTermEntryLocalization, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<CTermEntryLocalization> findByCommerceTermEntryId(long commerceTermEntryId)
commerceTermEntryId
- the commerce term entry IDpublic static java.util.List<CTermEntryLocalization> findByCommerceTermEntryId(long commerceTermEntryId, 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 CTermEntryLocalizationModelImpl
.
commerceTermEntryId
- the commerce term entry IDstart
- the lower bound of the range of c term entry localizationsend
- the upper bound of the range of c term entry localizations (not inclusive)public static java.util.List<CTermEntryLocalization> findByCommerceTermEntryId(long commerceTermEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTermEntryLocalization> 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 CTermEntryLocalizationModelImpl
.
commerceTermEntryId
- the commerce term entry IDstart
- the lower bound of the range of c term entry localizationsend
- the upper bound of the range of c term entry localizations (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CTermEntryLocalization> findByCommerceTermEntryId(long commerceTermEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTermEntryLocalization> 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 CTermEntryLocalizationModelImpl
.
commerceTermEntryId
- the commerce term entry IDstart
- the lower bound of the range of c term entry localizationsend
- the upper bound of the range of c term entry localizations (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static CTermEntryLocalization findByCommerceTermEntryId_First(long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CTermEntryLocalization> orderByComparator) throws NoSuchCTermEntryLocalizationException
commerceTermEntryId
- the commerce term entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCTermEntryLocalizationException
- if a matching c term entry localization could not be foundpublic static CTermEntryLocalization fetchByCommerceTermEntryId_First(long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CTermEntryLocalization> orderByComparator)
commerceTermEntryId
- the commerce term entry IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching c term entry localization could not be foundpublic static CTermEntryLocalization findByCommerceTermEntryId_Last(long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CTermEntryLocalization> orderByComparator) throws NoSuchCTermEntryLocalizationException
commerceTermEntryId
- the commerce term entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCTermEntryLocalizationException
- if a matching c term entry localization could not be foundpublic static CTermEntryLocalization fetchByCommerceTermEntryId_Last(long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CTermEntryLocalization> orderByComparator)
commerceTermEntryId
- the commerce term entry IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching c term entry localization could not be foundpublic static CTermEntryLocalization[] findByCommerceTermEntryId_PrevAndNext(long cTermEntryLocalizationId, long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CTermEntryLocalization> orderByComparator) throws NoSuchCTermEntryLocalizationException
cTermEntryLocalizationId
- the primary key of the current c term entry localizationcommerceTermEntryId
- the commerce term entry IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchCTermEntryLocalizationException
- if a c term entry localization with the primary key could not be foundpublic static void removeByCommerceTermEntryId(long commerceTermEntryId)
commerceTermEntryId
- the commerce term entry IDpublic static int countByCommerceTermEntryId(long commerceTermEntryId)
commerceTermEntryId
- the commerce term entry IDpublic static CTermEntryLocalization findByCommerceTermEntryId_LanguageId(long commerceTermEntryId, java.lang.String languageId) throws NoSuchCTermEntryLocalizationException
NoSuchCTermEntryLocalizationException
if it could not be found.commerceTermEntryId
- the commerce term entry IDlanguageId
- the language IDNoSuchCTermEntryLocalizationException
- if a matching c term entry localization could not be foundpublic static CTermEntryLocalization fetchByCommerceTermEntryId_LanguageId(long commerceTermEntryId, java.lang.String languageId)
null
if it could not be found. Uses the finder cache.commerceTermEntryId
- the commerce term entry IDlanguageId
- the language IDnull
if a matching c term entry localization could not be foundpublic static CTermEntryLocalization fetchByCommerceTermEntryId_LanguageId(long commerceTermEntryId, java.lang.String languageId, boolean useFinderCache)
null
if it could not be found, optionally using the finder cache.commerceTermEntryId
- the commerce term entry IDlanguageId
- the language IDuseFinderCache
- whether to use the finder cachenull
if a matching c term entry localization could not be foundpublic static CTermEntryLocalization removeByCommerceTermEntryId_LanguageId(long commerceTermEntryId, java.lang.String languageId) throws NoSuchCTermEntryLocalizationException
commerceTermEntryId
- the commerce term entry IDlanguageId
- the language IDNoSuchCTermEntryLocalizationException
public static int countByCommerceTermEntryId_LanguageId(long commerceTermEntryId, java.lang.String languageId)
commerceTermEntryId
- the commerce term entry IDlanguageId
- the language IDpublic static void cacheResult(CTermEntryLocalization cTermEntryLocalization)
cTermEntryLocalization
- the c term entry localizationpublic static void cacheResult(java.util.List<CTermEntryLocalization> cTermEntryLocalizations)
cTermEntryLocalizations
- the c term entry localizationspublic static CTermEntryLocalization create(long cTermEntryLocalizationId)
cTermEntryLocalizationId
- the primary key for the new c term entry localizationpublic static CTermEntryLocalization remove(long cTermEntryLocalizationId) throws NoSuchCTermEntryLocalizationException
cTermEntryLocalizationId
- the primary key of the c term entry localizationNoSuchCTermEntryLocalizationException
- if a c term entry localization with the primary key could not be foundpublic static CTermEntryLocalization updateImpl(CTermEntryLocalization cTermEntryLocalization)
public static CTermEntryLocalization findByPrimaryKey(long cTermEntryLocalizationId) throws NoSuchCTermEntryLocalizationException
NoSuchCTermEntryLocalizationException
if it could not be found.cTermEntryLocalizationId
- the primary key of the c term entry localizationNoSuchCTermEntryLocalizationException
- if a c term entry localization with the primary key could not be foundpublic static CTermEntryLocalization fetchByPrimaryKey(long cTermEntryLocalizationId)
null
if it could not be found.cTermEntryLocalizationId
- the primary key of the c term entry localizationnull
if a c term entry localization with the primary key could not be foundpublic static java.util.List<CTermEntryLocalization> findAll()
public static java.util.List<CTermEntryLocalization> 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 CTermEntryLocalizationModelImpl
.
start
- the lower bound of the range of c term entry localizationsend
- the upper bound of the range of c term entry localizations (not inclusive)public static java.util.List<CTermEntryLocalization> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTermEntryLocalization> 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 CTermEntryLocalizationModelImpl
.
start
- the lower bound of the range of c term entry localizationsend
- the upper bound of the range of c term entry localizations (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<CTermEntryLocalization> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTermEntryLocalization> 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 CTermEntryLocalizationModelImpl
.
start
- the lower bound of the range of c term entry localizationsend
- the upper bound of the range of c term entry localizations (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)useFinderCache
- whether to use the finder cachepublic static void removeAll()
public static int countAll()
public static CTermEntryLocalizationPersistence getPersistence()
public static void setPersistence(CTermEntryLocalizationPersistence persistence)