Class JournalArticleLocalizationUtil
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcacheResult(JournalArticleLocalization journalArticleLocalization) Caches the journal article localization in the entity cache if it is enabled.static voidcacheResult(List<JournalArticleLocalization> journalArticleLocalizations) Caches the journal article localizations in the entity cache if it is enabled.static voidstatic voidclearCache(JournalArticleLocalization journalArticleLocalization) static intcountAll()Returns the number of journal article localizations.static intcountByC_A(long companyId, long articlePK) Returns the number of journal article localizations where companyId = ? and articlePK = ?.static intcountByC_A_L(long companyId, long articlePK, String languageId) Returns the number of journal article localizations where companyId = ? and articlePK = ? and languageId = ?.static longcountWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static JournalArticleLocalizationcreate(long articleLocalizationId) Creates a new journal article localization with the primary key.static JournalArticleLocalizationfetchByC_A_First(long companyId, long articlePK, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleLocalization> orderByComparator) Returns the first journal article localization in the ordered set where companyId = ? and articlePK = ?.static JournalArticleLocalizationfetchByC_A_L(long companyId, long articlePK, String languageId) Returns the journal article localization where companyId = ? and articlePK = ? and languageId = ? or returnsnullif it could not be found.static JournalArticleLocalizationfetchByC_A_L(long companyId, long articlePK, String languageId, boolean useFinderCache) Returns the journal article localization where companyId = ? and articlePK = ? and languageId = ? or returnsnullif it could not be found, optionally using the finder cache.static JournalArticleLocalizationfetchByC_A_Last(long companyId, long articlePK, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleLocalization> orderByComparator) Returns the last journal article localization in the ordered set where companyId = ? and articlePK = ?.static JournalArticleLocalizationfetchByPrimaryKey(long articleLocalizationId) Returns the journal article localization with the primary key or returnsnullif it could not be found.fetchByPrimaryKeys(Set<Serializable> primaryKeys) static List<JournalArticleLocalization> findAll()Returns all the journal article localizations.static List<JournalArticleLocalization> findAll(int start, int end) Returns a range of all the journal article localizations.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.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.static List<JournalArticleLocalization> findByC_A(long companyId, long articlePK) Returns all the journal article localizations where companyId = ? and articlePK = ?.static List<JournalArticleLocalization> findByC_A(long companyId, long articlePK, int start, int end) Returns a range of all the journal article localizations where companyId = ? and articlePK = ?.static List<JournalArticleLocalization> findByC_A(long companyId, 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 companyId = ? and articlePK = ?.static List<JournalArticleLocalization> findByC_A(long companyId, 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 companyId = ? and articlePK = ?.static JournalArticleLocalizationfindByC_A_First(long companyId, long articlePK, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleLocalization> orderByComparator) Returns the first journal article localization in the ordered set where companyId = ? and articlePK = ?.static JournalArticleLocalizationfindByC_A_L(long companyId, long articlePK, String languageId) Returns the journal article localization where companyId = ? and articlePK = ? and languageId = ? or throws aNoSuchArticleLocalizationExceptionif it could not be found.static JournalArticleLocalizationfindByC_A_Last(long companyId, long articlePK, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleLocalization> orderByComparator) Returns the last journal article localization in the ordered set where companyId = ? and articlePK = ?.static JournalArticleLocalization[]findByC_A_PrevAndNext(long articleLocalizationId, long companyId, long articlePK, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleLocalization> orderByComparator) Returns the journal article localizations before and after the current journal article localization in the ordered set where companyId = ? and articlePK = ?.static JournalArticleLocalizationfindByPrimaryKey(long articleLocalizationId) Returns the journal article localization with the primary key or throws aNoSuchArticleLocalizationExceptionif it could not be found.static List<JournalArticleLocalization> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static List<JournalArticleLocalization> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) static List<JournalArticleLocalization> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleLocalization> orderByComparator) static JournalArticleLocalizationremove(long articleLocalizationId) Removes the journal article localization with the primary key from the database.static voidRemoves all the journal article localizations from the database.static voidremoveByC_A(long companyId, long articlePK) Removes all the journal article localizations where companyId = ? and articlePK = ? from the database.static JournalArticleLocalizationremoveByC_A_L(long companyId, long articlePK, String languageId) Removes the journal article localization where companyId = ? and articlePK = ? and languageId = ? from the database.static voidsetPersistence(JournalArticleLocalizationPersistence persistence) static JournalArticleLocalizationupdate(JournalArticleLocalization journalArticleLocalization) static JournalArticleLocalizationupdate(JournalArticleLocalization journalArticleLocalization, com.liferay.portal.kernel.service.ServiceContext serviceContext) static JournalArticleLocalizationupdateImpl(JournalArticleLocalization journalArticleLocalization)
-
Constructor Details
-
JournalArticleLocalizationUtil
public JournalArticleLocalizationUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
clearCache
- See Also:
-
countWithDynamicQuery
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
fetchByPrimaryKeys
public static Map<Serializable,JournalArticleLocalization> fetchByPrimaryKeys(Set<Serializable> primaryKeys) - See Also:
-
findWithDynamicQuery
public static List<JournalArticleLocalization> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) - See Also:
-
findWithDynamicQuery
public static List<JournalArticleLocalization> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end) - See Also:
-
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:
-
update
public static JournalArticleLocalization update(JournalArticleLocalization journalArticleLocalization) - See Also:
-
update
public static JournalArticleLocalization update(JournalArticleLocalization journalArticleLocalization, com.liferay.portal.kernel.service.ServiceContext serviceContext) - See Also:
-
findByC_A
Returns all the journal article localizations where companyId = ? and articlePK = ?.- Parameters:
companyId- the company IDarticlePK- the article pk- Returns:
- the matching journal article localizations
-
findByC_A
public static List<JournalArticleLocalization> findByC_A(long companyId, long articlePK, int start, int end) Returns a range of all the journal article localizations where companyId = ? and articlePK = ?.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 fromJournalArticleLocalizationModelImpl.- Parameters:
companyId- the company IDarticlePK- the article pkstart- the lower bound of the range of journal article localizationsend- the upper bound of the range of journal article localizations (not inclusive)- Returns:
- the range of matching journal article localizations
-
findByC_A
public static List<JournalArticleLocalization> findByC_A(long companyId, 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 companyId = ? and articlePK = ?.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 fromJournalArticleLocalizationModelImpl.- Parameters:
companyId- the company IDarticlePK- the article pkstart- the lower bound of the range of journal article localizationsend- the upper bound of the range of journal article localizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching journal article localizations
-
findByC_A
public static List<JournalArticleLocalization> findByC_A(long companyId, 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 companyId = ? and articlePK = ?.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 fromJournalArticleLocalizationModelImpl.- Parameters:
companyId- the company IDarticlePK- the article pkstart- the lower bound of the range of journal article localizationsend- the upper bound of the range of journal article 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 journal article localizations
-
findByC_A_First
public static JournalArticleLocalization findByC_A_First(long companyId, long articlePK, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleLocalization> orderByComparator) throws NoSuchArticleLocalizationException Returns the first journal article localization in the ordered set where companyId = ? and articlePK = ?.- Parameters:
companyId- the company IDarticlePK- the article pkorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching journal article localization
-
fetchByC_A_First
public static JournalArticleLocalization fetchByC_A_First(long companyId, long articlePK, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleLocalization> orderByComparator) Returns the first journal article localization in the ordered set where companyId = ? and articlePK = ?.- Parameters:
companyId- the company IDarticlePK- the article pkorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching journal article localization, or
nullif a matching journal article localization could not be found
-
findByC_A_Last
public static JournalArticleLocalization findByC_A_Last(long companyId, long articlePK, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleLocalization> orderByComparator) throws NoSuchArticleLocalizationException Returns the last journal article localization in the ordered set where companyId = ? and articlePK = ?.- Parameters:
companyId- the company IDarticlePK- the article pkorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching journal article localization
-
fetchByC_A_Last
public static JournalArticleLocalization fetchByC_A_Last(long companyId, long articlePK, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleLocalization> orderByComparator) Returns the last journal article localization in the ordered set where companyId = ? and articlePK = ?.- Parameters:
companyId- the company IDarticlePK- the article pkorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the last matching journal article localization, or
nullif a matching journal article localization could not be found
-
findByC_A_PrevAndNext
public static JournalArticleLocalization[] findByC_A_PrevAndNext(long articleLocalizationId, long companyId, 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 companyId = ? and articlePK = ?.- Parameters:
articleLocalizationId- the primary key of the current journal article localizationcompanyId- the company IDarticlePK- the article pkorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the previous, current, and next journal article localization
-
removeByC_A
public static void removeByC_A(long companyId, long articlePK) Removes all the journal article localizations where companyId = ? and articlePK = ? from the database.- Parameters:
companyId- the company IDarticlePK- the article pk
-
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 IDarticlePK- the article pk- 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 aNoSuchArticleLocalizationExceptionif it could not be found.- Parameters:
companyId- the company IDarticlePK- the article pklanguageId- the language ID- Returns:
- the matching journal article localization
-
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 returnsnullif it could not be found. Uses the finder cache.- Parameters:
companyId- the company IDarticlePK- the article pklanguageId- the language ID- Returns:
- the matching journal article localization, or
nullif 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 returnsnullif it could not be found, optionally using the finder cache.- Parameters:
companyId- the company IDarticlePK- the article pklanguageId- the language IDuseFinderCache- whether to use the finder cache- Returns:
- the matching journal article localization, or
nullif 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 IDarticlePK- the article pklanguageId- the language ID- Returns:
- the journal article localization that was removed
- Throws:
NoSuchArticleLocalizationException
-
countByC_A_L
Returns the number of journal article localizations where companyId = ? and articlePK = ? and languageId = ?.- Parameters:
companyId- the company IDarticlePK- the article pklanguageId- the language ID- Returns:
- the number of matching journal article localizations
-
cacheResult
Caches the journal article localization in the entity cache if it is enabled.- Parameters:
journalArticleLocalization- the journal article localization
-
cacheResult
Caches the journal article localizations in the entity cache if it is enabled.- Parameters:
journalArticleLocalizations- the journal article localizations
-
create
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
-
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 aNoSuchArticleLocalizationExceptionif it could not be found.- Parameters:
articleLocalizationId- the primary key of the journal article localization- Returns:
- the journal article localization
-
fetchByPrimaryKey
Returns the journal article localization with the primary key or returnsnullif it could not be found.- Parameters:
articleLocalizationId- the primary key of the journal article localization- Returns:
- the journal article localization, or
nullif a journal article localization with the primary key could not be found
-
findAll
Returns all the journal article localizations.- Returns:
- the journal article localizations
-
findAll
Returns a range of all the journal article 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 fromJournalArticleLocalizationModelImpl.- Parameters:
start- the lower bound of the range of journal article localizationsend- 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 - 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 fromJournalArticleLocalizationModelImpl.- Parameters:
start- the lower bound of the range of journal article localizationsend- the upper bound of the range of journal article localizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- 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 - 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 fromJournalArticleLocalizationModelImpl.- Parameters:
start- the lower bound of the range of journal article localizationsend- the upper bound of the range of journal article localizations (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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
-
setPersistence
-