Class CTermEntryLocalizationUtil

java.lang.Object
com.liferay.commerce.term.service.persistence.CTermEntryLocalizationUtil

public class CTermEntryLocalizationUtil extends Object
The persistence utility for the c term entry localization service. This utility wraps 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 Details

    • CTermEntryLocalizationUtil

      public CTermEntryLocalizationUtil()
  • Method Details

    • clearCache

      public static void clearCache()
      See Also:
      • BasePersistence.clearCache()
    • clearCache

      public static void clearCache(CTermEntryLocalization cTermEntryLocalization)
      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

      public static CTermEntryLocalization update(CTermEntryLocalization cTermEntryLocalization)
      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

      public static List<CTermEntryLocalization> findByCommerceTermEntryId(long commerceTermEntryId)
      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 - 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.

      Parameters:
      commerceTermEntryId - the commerce term entry ID
      start - the lower bound of the range of c term entry localizations
      end - 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 - 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.

      Parameters:
      commerceTermEntryId - the commerce term entry ID
      start - the lower bound of the range of c term entry localizations
      end - the upper bound of the range of c term entry localizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 - 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.

      Parameters:
      commerceTermEntryId - the commerce term entry ID
      start - the lower bound of the range of c term entry localizations
      end - 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 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching c term entry localization
      Throws:
      NoSuchCTermEntryLocalizationException - if a matching c term entry localization could not be found
      NoSuchCTermEntryLocalizationException
    • 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching c term entry localization, or null if 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching c term entry localization
      Throws:
      NoSuchCTermEntryLocalizationException - if a matching c term entry localization could not be found
      NoSuchCTermEntryLocalizationException
    • 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching c term entry localization, or null if 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 localization
      commerceTermEntryId - the commerce term entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      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 found
      NoSuchCTermEntryLocalizationException
    • 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 a NoSuchCTermEntryLocalizationException if it could not be found.
      Parameters:
      commerceTermEntryId - the commerce term entry ID
      languageId - the language ID
      Returns:
      the matching c term entry localization
      Throws:
      NoSuchCTermEntryLocalizationException - if a matching c term entry localization could not be found
      NoSuchCTermEntryLocalizationException
    • fetchByCommerceTermEntryId_LanguageId

      public static CTermEntryLocalization fetchByCommerceTermEntryId_LanguageId(long commerceTermEntryId, String languageId)
      Returns the c term entry localization where commerceTermEntryId = ? and languageId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      commerceTermEntryId - the commerce term entry ID
      languageId - the language ID
      Returns:
      the matching c term entry localization, or null if 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 returns null if it could not be found, optionally using the finder cache.
      Parameters:
      commerceTermEntryId - the commerce term entry ID
      languageId - the language ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching c term entry localization, or null if 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 ID
      languageId - 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 ID
      languageId - the language ID
      Returns:
      the number of matching c term entry localizations
    • cacheResult

      public static void cacheResult(CTermEntryLocalization cTermEntryLocalization)
      Caches the c term entry localization in the entity cache if it is enabled.
      Parameters:
      cTermEntryLocalization - the c term entry localization
    • cacheResult

      public static void cacheResult(List<CTermEntryLocalization> cTermEntryLocalizations)
      Caches the c term entry localizations in the entity cache if it is enabled.
      Parameters:
      cTermEntryLocalizations - the c term entry localizations
    • create

      public static CTermEntryLocalization create(long cTermEntryLocalizationId)
      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 found
      NoSuchCTermEntryLocalizationException
    • updateImpl

      public static CTermEntryLocalization updateImpl(CTermEntryLocalization cTermEntryLocalization)
    • findByPrimaryKey

      public static CTermEntryLocalization findByPrimaryKey(long cTermEntryLocalizationId) throws NoSuchCTermEntryLocalizationException
      Returns the c term entry localization with the primary key or throws a NoSuchCTermEntryLocalizationException if 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 found
      NoSuchCTermEntryLocalizationException
    • fetchByPrimaryKey

      public static CTermEntryLocalization fetchByPrimaryKey(long cTermEntryLocalizationId)
      Returns the c term entry localization with the primary key or returns null if it could not be found.
      Parameters:
      cTermEntryLocalizationId - the primary key of the c term entry localization
      Returns:
      the c term entry localization, or null if a c term entry localization with the primary key could not be found
    • findAll

      public static List<CTermEntryLocalization> findAll()
      Returns all the c term entry localizations.
      Returns:
      the c term entry localizations
    • findAll

      public static List<CTermEntryLocalization> findAll(int start, int end)
      Returns a range of all the c term entry localizations.

      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.

      Parameters:
      start - the lower bound of the range of c term entry localizations
      end - 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 - 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.

      Parameters:
      start - the lower bound of the range of c term entry localizations
      end - the upper bound of the range of c term entry localizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 - 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.

      Parameters:
      start - the lower bound of the range of c term entry localizations
      end - 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 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

      public static CTermEntryLocalizationPersistence getPersistence()
    • setPersistence

      public static void setPersistence(CTermEntryLocalizationPersistence persistence)