Class CTermEntryLocalizationUtil
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
- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(CTermEntryLocalization cTermEntryLocalization) Caches the c term entry localization in the entity cache if it is enabled.static voidcacheResult(List<CTermEntryLocalization> cTermEntryLocalizations) Caches the c term entry localizations in the entity cache if it is enabled.static voidstatic voidclearCache(CTermEntryLocalization cTermEntryLocalization) static intcountAll()Returns the number of c term entry localizations.static intcountByCommerceTermEntryId(long commerceTermEntryId) Returns the number of c term entry localizations where commerceTermEntryId = ?.static intcountByCommerceTermEntryId_LanguageId(long commerceTermEntryId, String languageId) Returns the number of c term entry localizations where commerceTermEntryId = ? and languageId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static CTermEntryLocalizationcreate(long cTermEntryLocalizationId) Creates a new c term entry localization with the primary key.static CTermEntryLocalizationfetchByCommerceTermEntryId_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 CTermEntryLocalizationfetchByCommerceTermEntryId_LanguageId(long commerceTermEntryId, String languageId) Returns the c term entry localization where commerceTermEntryId = ? and languageId = ? or returnsnullif it could not be found.static CTermEntryLocalizationfetchByCommerceTermEntryId_LanguageId(long commerceTermEntryId, String languageId, boolean useFinderCache) Returns the c term entry localization where commerceTermEntryId = ? and languageId = ? or returnsnullif it could not be found, optionally using the finder cache.static CTermEntryLocalizationfetchByCommerceTermEntryId_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 CTermEntryLocalizationfetchByPrimaryKey(long cTermEntryLocalizationId) Returns the c term entry localization with the primary key or returnsnullif it could not be found.static Map<Serializable,CTermEntryLocalization> fetchByPrimaryKeys(Set<Serializable> primaryKeys) static List<CTermEntryLocalization>findAll()Returns all the c term entry localizations.static List<CTermEntryLocalization>findAll(int start, int end) Returns a range of all the c term entry localizations.static 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 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 List<CTermEntryLocalization>findByCommerceTermEntryId(long commerceTermEntryId) Returns all the c term entry localizations where commerceTermEntryId = ?.static List<CTermEntryLocalization>findByCommerceTermEntryId(long commerceTermEntryId, int start, int end) Returns a range of all the c term entry localizations where commerceTermEntryId = ?.static 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 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 CTermEntryLocalizationfindByCommerceTermEntryId_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 CTermEntryLocalizationfindByCommerceTermEntryId_LanguageId(long commerceTermEntryId, String languageId) Returns the c term entry localization where commerceTermEntryId = ? and languageId = ? or throws aNoSuchCTermEntryLocalizationExceptionif it could not be found.static CTermEntryLocalizationfindByCommerceTermEntryId_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 CTermEntryLocalizationfindByPrimaryKey(long cTermEntryLocalizationId) Returns the c term entry localization with the primary key or throws aNoSuchCTermEntryLocalizationExceptionif it could not be found.static List<CTermEntryLocalization>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<CTermEntryLocalization>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<CTermEntryLocalization>findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTermEntryLocalization> orderByComparator) static CTermEntryLocalizationremove(long cTermEntryLocalizationId) Removes the c term entry localization with the primary key from the database.static voidRemoves all the c term entry localizations from the database.static voidremoveByCommerceTermEntryId(long commerceTermEntryId) Removes all the c term entry localizations where commerceTermEntryId = ? from the database.static CTermEntryLocalizationremoveByCommerceTermEntryId_LanguageId(long commerceTermEntryId, String languageId) Removes the c term entry localization where commerceTermEntryId = ? and languageId = ? from the database.static voidsetPersistence(CTermEntryLocalizationPersistence persistence) static CTermEntryLocalizationupdate(CTermEntryLocalization cTermEntryLocalization) static CTermEntryLocalizationupdate(CTermEntryLocalization cTermEntryLocalization, com.liferay.portal.kernel.service.ServiceContext serviceContext) static CTermEntryLocalizationupdateImpl(CTermEntryLocalization cTermEntryLocalization)
-
Constructor Details
-
CTermEntryLocalizationUtil
public CTermEntryLocalizationUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
BasePersistence.clearCache()
-
clearCache
- See Also:
-
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.countWithDynamicQuery(DynamicQuery)
-
fetchByPrimaryKeys
public static Map<Serializable,CTermEntryLocalization> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
BasePersistence.fetchByPrimaryKeys(Set)
-
findWithDynamicQuery
public static List<CTermEntryLocalization> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery)
-
findWithDynamicQuery
public static List<CTermEntryLocalization> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
-
findWithDynamicQuery
public static List<CTermEntryLocalization> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<CTermEntryLocalization> orderByComparator) - See Also:
-
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
-
update
- See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
-
update
public static CTermEntryLocalization update(CTermEntryLocalization cTermEntryLocalization, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
-
findByCommerceTermEntryId
Returns all the c term entry localizations where commerceTermEntryId = ?.- Parameters:
commerceTermEntryId- the commerce term entry ID- Returns:
- the matching c term entry localizations
-
findByCommerceTermEntryId
public static List<CTermEntryLocalization> findByCommerceTermEntryId(long commerceTermEntryId, int start, int end) Returns a range of all the c term entry localizations where commerceTermEntryId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCTermEntryLocalizationModelImpl.- Parameters:
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)- Returns:
- the range of matching c term entry localizations
-
findByCommerceTermEntryId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCTermEntryLocalizationModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of matching c term entry localizations
-
findByCommerceTermEntryId
public static 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 = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCTermEntryLocalizationModelImpl.- Parameters:
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 (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of matching c term entry localizations
-
findByCommerceTermEntryId_First
public static CTermEntryLocalization findByCommerceTermEntryId_First(long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CTermEntryLocalization> orderByComparator) throws NoSuchCTermEntryLocalizationException Returns the first c term entry localization in the ordered set where commerceTermEntryId = ?.- Parameters:
commerceTermEntryId- the commerce term entry IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching c term entry localization
- Throws:
NoSuchCTermEntryLocalizationException- if a matching c term entry localization could not be foundNoSuchCTermEntryLocalizationException
-
fetchByCommerceTermEntryId_First
public 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 = ?.- Parameters:
commerceTermEntryId- the commerce term entry IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching c term entry localization, or
nullif a matching c term entry localization could not be found
-
findByCommerceTermEntryId_Last
public static CTermEntryLocalization findByCommerceTermEntryId_Last(long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CTermEntryLocalization> orderByComparator) throws NoSuchCTermEntryLocalizationException Returns the last c term entry localization in the ordered set where commerceTermEntryId = ?.- Parameters:
commerceTermEntryId- the commerce term entry IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching c term entry localization
- Throws:
NoSuchCTermEntryLocalizationException- if a matching c term entry localization could not be foundNoSuchCTermEntryLocalizationException
-
fetchByCommerceTermEntryId_Last
public 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 = ?.- Parameters:
commerceTermEntryId- the commerce term entry IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching c term entry localization, or
nullif a matching c term entry localization could not be found
-
findByCommerceTermEntryId_PrevAndNext
public static CTermEntryLocalization[] findByCommerceTermEntryId_PrevAndNext(long cTermEntryLocalizationId, long commerceTermEntryId, com.liferay.portal.kernel.util.OrderByComparator<CTermEntryLocalization> orderByComparator) throws NoSuchCTermEntryLocalizationException Returns the c term entry localizations before and after the current c term entry localization in the ordered set where commerceTermEntryId = ?.- Parameters:
cTermEntryLocalizationId- the primary key of the current c term entry localizationcommerceTermEntryId- the commerce term entry IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next c term entry localization
- Throws:
NoSuchCTermEntryLocalizationException- if a c term entry localization with the primary key could not be foundNoSuchCTermEntryLocalizationException
-
removeByCommerceTermEntryId
public static void removeByCommerceTermEntryId(long commerceTermEntryId) Removes all the c term entry localizations where commerceTermEntryId = ? from the database.- Parameters:
commerceTermEntryId- the commerce term entry ID
-
countByCommerceTermEntryId
public static int countByCommerceTermEntryId(long commerceTermEntryId) Returns the number of c term entry localizations where commerceTermEntryId = ?.- Parameters:
commerceTermEntryId- the commerce term entry ID- Returns:
- the number of matching c term entry localizations
-
findByCommerceTermEntryId_LanguageId
public static CTermEntryLocalization findByCommerceTermEntryId_LanguageId(long commerceTermEntryId, String languageId) throws NoSuchCTermEntryLocalizationException Returns the c term entry localization where commerceTermEntryId = ? and languageId = ? or throws aNoSuchCTermEntryLocalizationExceptionif it could not be found.- Parameters:
commerceTermEntryId- the commerce term entry IDlanguageId- the language ID- Returns:
- the matching c term entry localization
- Throws:
NoSuchCTermEntryLocalizationException- if a matching c term entry localization could not be foundNoSuchCTermEntryLocalizationException
-
fetchByCommerceTermEntryId_LanguageId
public static CTermEntryLocalization fetchByCommerceTermEntryId_LanguageId(long commerceTermEntryId, String languageId) Returns the c term entry localization where commerceTermEntryId = ? and languageId = ? or returnsnullif it could not be found. Uses the finder cache.- Parameters:
commerceTermEntryId- the commerce term entry IDlanguageId- the language ID- Returns:
- the matching c term entry localization, or
nullif a matching c term entry localization could not be found
-
fetchByCommerceTermEntryId_LanguageId
public static CTermEntryLocalization fetchByCommerceTermEntryId_LanguageId(long commerceTermEntryId, String languageId, boolean useFinderCache) Returns the c term entry localization where commerceTermEntryId = ? and languageId = ? or returnsnullif it could not be found, optionally using the finder cache.- Parameters:
commerceTermEntryId- the commerce term entry IDlanguageId- the language IDuseFinderCache- whether to use the finder cache- Returns:
- the matching c term entry localization, or
nullif a matching c term entry localization could not be found
-
removeByCommerceTermEntryId_LanguageId
public static CTermEntryLocalization removeByCommerceTermEntryId_LanguageId(long commerceTermEntryId, String languageId) throws NoSuchCTermEntryLocalizationException Removes the c term entry localization where commerceTermEntryId = ? and languageId = ? from the database.- Parameters:
commerceTermEntryId- the commerce term entry IDlanguageId- the language ID- Returns:
- the c term entry localization that was removed
- Throws:
NoSuchCTermEntryLocalizationException
-
countByCommerceTermEntryId_LanguageId
public static int countByCommerceTermEntryId_LanguageId(long commerceTermEntryId, String languageId) Returns the number of c term entry localizations where commerceTermEntryId = ? and languageId = ?.- Parameters:
commerceTermEntryId- the commerce term entry IDlanguageId- the language ID- Returns:
- the number of matching c term entry localizations
-
cacheResult
Caches the c term entry localization in the entity cache if it is enabled.- Parameters:
cTermEntryLocalization- the c term entry localization
-
cacheResult
Caches the c term entry localizations in the entity cache if it is enabled.- Parameters:
cTermEntryLocalizations- the c term entry localizations
-
create
Creates a new c term entry localization with the primary key. Does not add the c term entry localization to the database.- Parameters:
cTermEntryLocalizationId- the primary key for the new c term entry localization- Returns:
- the new c term entry localization
-
remove
public static CTermEntryLocalization remove(long cTermEntryLocalizationId) throws NoSuchCTermEntryLocalizationException Removes the c term entry localization with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
cTermEntryLocalizationId- the primary key of the c term entry localization- Returns:
- the c term entry localization that was removed
- Throws:
NoSuchCTermEntryLocalizationException- if a c term entry localization with the primary key could not be foundNoSuchCTermEntryLocalizationException
-
updateImpl
-
findByPrimaryKey
public static CTermEntryLocalization findByPrimaryKey(long cTermEntryLocalizationId) throws NoSuchCTermEntryLocalizationException Returns the c term entry localization with the primary key or throws aNoSuchCTermEntryLocalizationExceptionif it could not be found.- Parameters:
cTermEntryLocalizationId- the primary key of the c term entry localization- Returns:
- the c term entry localization
- Throws:
NoSuchCTermEntryLocalizationException- if a c term entry localization with the primary key could not be foundNoSuchCTermEntryLocalizationException
-
fetchByPrimaryKey
Returns the c term entry localization with the primary key or returnsnullif it could not be found.- Parameters:
cTermEntryLocalizationId- the primary key of the c term entry localization- Returns:
- the c term entry localization, or
nullif a c term entry localization with the primary key could not be found
-
findAll
Returns all the c term entry localizations.- Returns:
- the c term entry localizations
-
findAll
Returns a range of all the c term entry localizations.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCTermEntryLocalizationModelImpl.- Parameters:
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)- Returns:
- the range of c term entry localizations
-
findAll
public static 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.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCTermEntryLocalizationModelImpl.- Parameters:
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 (optionallynull)- Returns:
- the ordered range of c term entry localizations
-
findAll
public static 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.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtoQueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromCTermEntryLocalizationModelImpl.- Parameters:
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 (optionallynull)useFinderCache- whether to use the finder cache- Returns:
- the ordered range of c term entry localizations
-
removeAll
public static void removeAll()Removes all the c term entry localizations from the database. -
countAll
public static int countAll()Returns the number of c term entry localizations.- Returns:
- the number of c term entry localizations
-
getPersistence
-
setPersistence
-