Class JournalArticleLocalizationUtil

java.lang.Object
com.liferay.journal.service.persistence.JournalArticleLocalizationUtil

public class JournalArticleLocalizationUtil extends Object
The persistence utility for the journal article localization service. This utility wraps com.liferay.journal.service.persistence.impl.JournalArticleLocalizationPersistenceImpl 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

    • JournalArticleLocalizationUtil

      public JournalArticleLocalizationUtil()
  • Method Details

    • clearCache

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

      public static void clearCache(JournalArticleLocalization journalArticleLocalization)
      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,JournalArticleLocalization> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

      public static List<JournalArticleLocalization> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery)
    • findWithDynamicQuery

      public static List<JournalArticleLocalization> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
    • findWithDynamicQuery

      public static List<JournalArticleLocalization> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleLocalization> orderByComparator)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
    • update

      public static JournalArticleLocalization update(JournalArticleLocalization journalArticleLocalization)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
    • update

      public static JournalArticleLocalization update(JournalArticleLocalization journalArticleLocalization, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByArticlePK

      public static List<JournalArticleLocalization> findByArticlePK(long articlePK)
      Returns all the journal article localizations where articlePK = ?.
      Parameters:
      articlePK - the article pk
      Returns:
      the matching journal article localizations
    • findByArticlePK

      public static List<JournalArticleLocalization> findByArticlePK(long articlePK, int start, int end)
      Returns a range of all the journal article localizations where articlePK = ?.

      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 JournalArticleLocalizationModelImpl.

      Parameters:
      articlePK - the article pk
      start - the lower bound of the range of journal article localizations
      end - the upper bound of the range of journal article localizations (not inclusive)
      Returns:
      the range of matching journal article localizations
    • findByArticlePK

      public static List<JournalArticleLocalization> findByArticlePK(long articlePK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleLocalization> orderByComparator)
      Returns an ordered range of all the journal article localizations where articlePK = ?.

      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 JournalArticleLocalizationModelImpl.

      Parameters:
      articlePK - the article pk
      start - the lower bound of the range of journal article localizations
      end - the upper bound of the range of journal article localizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching journal article localizations
    • findByArticlePK

      public static List<JournalArticleLocalization> findByArticlePK(long articlePK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleLocalization> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the journal article localizations where articlePK = ?.

      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 JournalArticleLocalizationModelImpl.

      Parameters:
      articlePK - the article pk
      start - the lower bound of the range of journal article localizations
      end - the upper bound of the range of journal article 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 journal article localizations
    • findByArticlePK_First

      public static JournalArticleLocalization findByArticlePK_First(long articlePK, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleLocalization> orderByComparator) throws NoSuchArticleLocalizationException
      Returns the first journal article localization in the ordered set where articlePK = ?.
      Parameters:
      articlePK - the article pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching journal article localization
      Throws:
      NoSuchArticleLocalizationException - if a matching journal article localization could not be found
      NoSuchArticleLocalizationException
    • fetchByArticlePK_First

      public static JournalArticleLocalization fetchByArticlePK_First(long articlePK, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleLocalization> orderByComparator)
      Returns the first journal article localization in the ordered set where articlePK = ?.
      Parameters:
      articlePK - the article pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching journal article localization, or null if a matching journal article localization could not be found
    • findByArticlePK_Last

      public static JournalArticleLocalization findByArticlePK_Last(long articlePK, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleLocalization> orderByComparator) throws NoSuchArticleLocalizationException
      Returns the last journal article localization in the ordered set where articlePK = ?.
      Parameters:
      articlePK - the article pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching journal article localization
      Throws:
      NoSuchArticleLocalizationException - if a matching journal article localization could not be found
      NoSuchArticleLocalizationException
    • fetchByArticlePK_Last

      public static JournalArticleLocalization fetchByArticlePK_Last(long articlePK, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleLocalization> orderByComparator)
      Returns the last journal article localization in the ordered set where articlePK = ?.
      Parameters:
      articlePK - the article pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching journal article localization, or null if a matching journal article localization could not be found
    • findByArticlePK_PrevAndNext

      public static JournalArticleLocalization[] findByArticlePK_PrevAndNext(long articleLocalizationId, long articlePK, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleLocalization> orderByComparator) throws NoSuchArticleLocalizationException
      Returns the journal article localizations before and after the current journal article localization in the ordered set where articlePK = ?.
      Parameters:
      articleLocalizationId - the primary key of the current journal article localization
      articlePK - the article pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next journal article localization
      Throws:
      NoSuchArticleLocalizationException - if a journal article localization with the primary key could not be found
      NoSuchArticleLocalizationException
    • removeByArticlePK

      public static void removeByArticlePK(long articlePK)
      Removes all the journal article localizations where articlePK = ? from the database.
      Parameters:
      articlePK - the article pk
    • countByArticlePK

      public static int countByArticlePK(long articlePK)
      Returns the number of journal article localizations where articlePK = ?.
      Parameters:
      articlePK - the article pk
      Returns:
      the number of matching journal article localizations
    • findByC_A

      public static JournalArticleLocalization findByC_A(long companyId, long articlePK) throws NoSuchArticleLocalizationException
      Returns the journal article localization where companyId = ? and articlePK = ? or throws a NoSuchArticleLocalizationException if it could not be found.
      Parameters:
      companyId - the company ID
      articlePK - the article pk
      Returns:
      the matching journal article localization
      Throws:
      NoSuchArticleLocalizationException - if a matching journal article localization could not be found
      NoSuchArticleLocalizationException
    • fetchByC_A

      public static JournalArticleLocalization fetchByC_A(long companyId, long articlePK)
      Returns the journal article localization where companyId = ? and articlePK = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      companyId - the company ID
      articlePK - the article pk
      Returns:
      the matching journal article localization, or null if a matching journal article localization could not be found
    • fetchByC_A

      public static JournalArticleLocalization fetchByC_A(long companyId, long articlePK, boolean useFinderCache)
      Returns the journal article localization where companyId = ? and articlePK = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      companyId - the company ID
      articlePK - the article pk
      useFinderCache - whether to use the finder cache
      Returns:
      the matching journal article localization, or null if a matching journal article localization could not be found
    • removeByC_A

      public static JournalArticleLocalization removeByC_A(long companyId, long articlePK) throws NoSuchArticleLocalizationException
      Removes the journal article localization where companyId = ? and articlePK = ? from the database.
      Parameters:
      companyId - the company ID
      articlePK - the article pk
      Returns:
      the journal article localization that was removed
      Throws:
      NoSuchArticleLocalizationException
    • countByC_A

      public static int countByC_A(long companyId, long articlePK)
      Returns the number of journal article localizations where companyId = ? and articlePK = ?.
      Parameters:
      companyId - the company ID
      articlePK - the article pk
      Returns:
      the number of matching journal article localizations
    • findByA_L

      public static JournalArticleLocalization findByA_L(long articlePK, String languageId) throws NoSuchArticleLocalizationException
      Returns the journal article localization where articlePK = ? and languageId = ? or throws a NoSuchArticleLocalizationException if it could not be found.
      Parameters:
      articlePK - the article pk
      languageId - the language ID
      Returns:
      the matching journal article localization
      Throws:
      NoSuchArticleLocalizationException - if a matching journal article localization could not be found
      NoSuchArticleLocalizationException
    • fetchByA_L

      public static JournalArticleLocalization fetchByA_L(long articlePK, String languageId)
      Returns the journal article localization where articlePK = ? and languageId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      articlePK - the article pk
      languageId - the language ID
      Returns:
      the matching journal article localization, or null if a matching journal article localization could not be found
    • fetchByA_L

      public static JournalArticleLocalization fetchByA_L(long articlePK, String languageId, boolean useFinderCache)
      Returns the journal article localization where articlePK = ? and languageId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      articlePK - the article pk
      languageId - the language ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching journal article localization, or null if a matching journal article localization could not be found
    • removeByA_L

      public static JournalArticleLocalization removeByA_L(long articlePK, String languageId) throws NoSuchArticleLocalizationException
      Removes the journal article localization where articlePK = ? and languageId = ? from the database.
      Parameters:
      articlePK - the article pk
      languageId - the language ID
      Returns:
      the journal article localization that was removed
      Throws:
      NoSuchArticleLocalizationException
    • countByA_L

      public static int countByA_L(long articlePK, String languageId)
      Returns the number of journal article localizations where articlePK = ? and languageId = ?.
      Parameters:
      articlePK - the article pk
      languageId - the language ID
      Returns:
      the number of matching journal article localizations
    • findByC_A_L

      public static JournalArticleLocalization findByC_A_L(long companyId, long articlePK, String languageId) throws NoSuchArticleLocalizationException
      Returns the journal article localization where companyId = ? and articlePK = ? and languageId = ? or throws a NoSuchArticleLocalizationException if it could not be found.
      Parameters:
      companyId - the company ID
      articlePK - the article pk
      languageId - the language ID
      Returns:
      the matching journal article localization
      Throws:
      NoSuchArticleLocalizationException - if a matching journal article localization could not be found
      NoSuchArticleLocalizationException
    • fetchByC_A_L

      public static JournalArticleLocalization fetchByC_A_L(long companyId, long articlePK, String languageId)
      Returns the journal article localization where companyId = ? and articlePK = ? and languageId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      companyId - the company ID
      articlePK - the article pk
      languageId - the language ID
      Returns:
      the matching journal article localization, or null if a matching journal article localization could not be found
    • fetchByC_A_L

      public static JournalArticleLocalization fetchByC_A_L(long companyId, long articlePK, String languageId, boolean useFinderCache)
      Returns the journal article localization where companyId = ? and articlePK = ? and languageId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      companyId - the company ID
      articlePK - the article pk
      languageId - the language ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching journal article localization, or null if a matching journal article localization could not be found
    • removeByC_A_L

      public static JournalArticleLocalization removeByC_A_L(long companyId, long articlePK, String languageId) throws NoSuchArticleLocalizationException
      Removes the journal article localization where companyId = ? and articlePK = ? and languageId = ? from the database.
      Parameters:
      companyId - the company ID
      articlePK - the article pk
      languageId - the language ID
      Returns:
      the journal article localization that was removed
      Throws:
      NoSuchArticleLocalizationException
    • countByC_A_L

      public static int countByC_A_L(long companyId, long articlePK, String languageId)
      Returns the number of journal article localizations where companyId = ? and articlePK = ? and languageId = ?.
      Parameters:
      companyId - the company ID
      articlePK - the article pk
      languageId - the language ID
      Returns:
      the number of matching journal article localizations
    • findByC_A_T_L

      public static JournalArticleLocalization findByC_A_T_L(long companyId, long articlePK, String title, String languageId) throws NoSuchArticleLocalizationException
      Returns the journal article localization where companyId = ? and articlePK = ? and title = ? and languageId = ? or throws a NoSuchArticleLocalizationException if it could not be found.
      Parameters:
      companyId - the company ID
      articlePK - the article pk
      title - the title
      languageId - the language ID
      Returns:
      the matching journal article localization
      Throws:
      NoSuchArticleLocalizationException - if a matching journal article localization could not be found
      NoSuchArticleLocalizationException
    • fetchByC_A_T_L

      public static JournalArticleLocalization fetchByC_A_T_L(long companyId, long articlePK, String title, String languageId)
      Returns the journal article localization where companyId = ? and articlePK = ? and title = ? and languageId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      companyId - the company ID
      articlePK - the article pk
      title - the title
      languageId - the language ID
      Returns:
      the matching journal article localization, or null if a matching journal article localization could not be found
    • fetchByC_A_T_L

      public static JournalArticleLocalization fetchByC_A_T_L(long companyId, long articlePK, String title, String languageId, boolean useFinderCache)
      Returns the journal article localization where companyId = ? and articlePK = ? and title = ? and languageId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      companyId - the company ID
      articlePK - the article pk
      title - the title
      languageId - the language ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching journal article localization, or null if a matching journal article localization could not be found
    • removeByC_A_T_L

      public static JournalArticleLocalization removeByC_A_T_L(long companyId, long articlePK, String title, String languageId) throws NoSuchArticleLocalizationException
      Removes the journal article localization where companyId = ? and articlePK = ? and title = ? and languageId = ? from the database.
      Parameters:
      companyId - the company ID
      articlePK - the article pk
      title - the title
      languageId - the language ID
      Returns:
      the journal article localization that was removed
      Throws:
      NoSuchArticleLocalizationException
    • countByC_A_T_L

      public static int countByC_A_T_L(long companyId, long articlePK, String title, String languageId)
      Returns the number of journal article localizations where companyId = ? and articlePK = ? and title = ? and languageId = ?.
      Parameters:
      companyId - the company ID
      articlePK - the article pk
      title - the title
      languageId - the language ID
      Returns:
      the number of matching journal article localizations
    • cacheResult

      public static void cacheResult(JournalArticleLocalization journalArticleLocalization)
      Caches the journal article localization in the entity cache if it is enabled.
      Parameters:
      journalArticleLocalization - the journal article localization
    • cacheResult

      public static void cacheResult(List<JournalArticleLocalization> journalArticleLocalizations)
      Caches the journal article localizations in the entity cache if it is enabled.
      Parameters:
      journalArticleLocalizations - the journal article localizations
    • create

      public static JournalArticleLocalization create(long articleLocalizationId)
      Creates a new journal article localization with the primary key. Does not add the journal article localization to the database.
      Parameters:
      articleLocalizationId - the primary key for the new journal article localization
      Returns:
      the new journal article localization
    • remove

      public static JournalArticleLocalization remove(long articleLocalizationId) throws NoSuchArticleLocalizationException
      Removes the journal article localization with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      articleLocalizationId - the primary key of the journal article localization
      Returns:
      the journal article localization that was removed
      Throws:
      NoSuchArticleLocalizationException - if a journal article localization with the primary key could not be found
      NoSuchArticleLocalizationException
    • updateImpl

      public static JournalArticleLocalization updateImpl(JournalArticleLocalization journalArticleLocalization)
    • findByPrimaryKey

      public static JournalArticleLocalization findByPrimaryKey(long articleLocalizationId) throws NoSuchArticleLocalizationException
      Returns the journal article localization with the primary key or throws a NoSuchArticleLocalizationException if it could not be found.
      Parameters:
      articleLocalizationId - the primary key of the journal article localization
      Returns:
      the journal article localization
      Throws:
      NoSuchArticleLocalizationException - if a journal article localization with the primary key could not be found
      NoSuchArticleLocalizationException
    • fetchByPrimaryKey

      public static JournalArticleLocalization fetchByPrimaryKey(long articleLocalizationId)
      Returns the journal article localization with the primary key or returns null if it could not be found.
      Parameters:
      articleLocalizationId - the primary key of the journal article localization
      Returns:
      the journal article localization, or null if a journal article localization with the primary key could not be found
    • findAll

      public static List<JournalArticleLocalization> findAll()
      Returns all the journal article localizations.
      Returns:
      the journal article localizations
    • findAll

      public static List<JournalArticleLocalization> findAll(int start, int end)
      Returns a range of all the journal article 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 JournalArticleLocalizationModelImpl.

      Parameters:
      start - the lower bound of the range of journal article localizations
      end - the upper bound of the range of journal article localizations (not inclusive)
      Returns:
      the range of journal article localizations
    • findAll

      public static List<JournalArticleLocalization> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleLocalization> orderByComparator)
      Returns an ordered range of all the journal article 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 JournalArticleLocalizationModelImpl.

      Parameters:
      start - the lower bound of the range of journal article localizations
      end - the upper bound of the range of journal article localizations (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of journal article localizations
    • findAll

      public static List<JournalArticleLocalization> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleLocalization> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the journal article 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 JournalArticleLocalizationModelImpl.

      Parameters:
      start - the lower bound of the range of journal article localizations
      end - the upper bound of the range of journal article 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 journal article localizations
    • removeAll

      public static void removeAll()
      Removes all the journal article localizations from the database.
    • countAll

      public static int countAll()
      Returns the number of journal article localizations.
      Returns:
      the number of journal article localizations
    • getPersistence

      public static JournalArticleLocalizationPersistence getPersistence()
    • setPersistence

      public static void setPersistence(JournalArticleLocalizationPersistence persistence)