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 void
cacheResult
(JournalArticleLocalization journalArticleLocalization) Caches the journal article localization in the entity cache if it is enabled.static void
cacheResult
(List<JournalArticleLocalization> journalArticleLocalizations) Caches the journal article localizations in the entity cache if it is enabled.static void
static void
clearCache
(JournalArticleLocalization journalArticleLocalization) static int
countAll()
Returns the number of journal article localizations.static int
countByA_L
(long articlePK, String languageId) Returns the number of journal article localizations where articlePK = ? and languageId = ?.static int
countByArticlePK
(long articlePK) Returns the number of journal article localizations where articlePK = ?.static int
countByC_A
(long companyId, long articlePK) Returns the number of journal article localizations where companyId = ? and articlePK = ?.static int
countByC_A_L
(long companyId, long articlePK, String languageId) Returns the number of journal article localizations where companyId = ? and articlePK = ? and languageId = ?.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 = ?.static long
countWithDynamicQuery
(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) static JournalArticleLocalization
create
(long articleLocalizationId) Creates a new journal article localization with the primary key.static JournalArticleLocalization
fetchByA_L
(long articlePK, String languageId) Returns the journal article localization where articlePK = ? and languageId = ? or returnsnull
if it could not be found.static JournalArticleLocalization
fetchByA_L
(long articlePK, String languageId, boolean useFinderCache) Returns the journal article localization where articlePK = ? and languageId = ? or returnsnull
if it could not be found, optionally using the finder cache.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 = ?.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 = ?.static JournalArticleLocalization
fetchByC_A
(long companyId, long articlePK) Returns the journal article localization where companyId = ? and articlePK = ? or returnsnull
if it could not be found.static JournalArticleLocalization
fetchByC_A
(long companyId, long articlePK, boolean useFinderCache) Returns the journal article localization where companyId = ? and articlePK = ? or returnsnull
if it could not be found, optionally using the finder cache.static JournalArticleLocalization
fetchByC_A_L
(long companyId, long articlePK, String languageId) Returns the journal article localization where companyId = ? and articlePK = ? and languageId = ? or returnsnull
if it could not be found.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 returnsnull
if it could not be found, optionally using the finder cache.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 returnsnull
if it could not be found.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 returnsnull
if it could not be found, optionally using the finder cache.static JournalArticleLocalization
fetchByPrimaryKey
(long articleLocalizationId) Returns the journal article localization with the primary key or returnsnull
if 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 JournalArticleLocalization
Returns the journal article localization where articlePK = ? and languageId = ? or throws aNoSuchArticleLocalizationException
if it could not be found.static List<JournalArticleLocalization>
findByArticlePK
(long articlePK) Returns all the journal article localizations where articlePK = ?.static List<JournalArticleLocalization>
findByArticlePK
(long articlePK, int start, int end) Returns a range of all the journal article localizations where articlePK = ?.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 = ?.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 = ?.static JournalArticleLocalization
findByArticlePK_First
(long articlePK, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleLocalization> orderByComparator) Returns the first journal article localization in the ordered set where articlePK = ?.static JournalArticleLocalization
findByArticlePK_Last
(long articlePK, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleLocalization> orderByComparator) Returns the last journal article localization in the ordered set where articlePK = ?.static JournalArticleLocalization[]
findByArticlePK_PrevAndNext
(long articleLocalizationId, 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 articlePK = ?.static JournalArticleLocalization
findByC_A
(long companyId, long articlePK) Returns the journal article localization where companyId = ? and articlePK = ? or throws aNoSuchArticleLocalizationException
if it could not be found.static JournalArticleLocalization
findByC_A_L
(long companyId, long articlePK, String languageId) Returns the journal article localization where companyId = ? and articlePK = ? and languageId = ? or throws aNoSuchArticleLocalizationException
if it could not be found.static JournalArticleLocalization
findByC_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 throws aNoSuchArticleLocalizationException
if it could not be found.static JournalArticleLocalization
findByPrimaryKey
(long articleLocalizationId) Returns the journal article localization with the primary key or throws aNoSuchArticleLocalizationException
if 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 JournalArticleLocalization
remove
(long articleLocalizationId) Removes the journal article localization with the primary key from the database.static void
Removes all the journal article localizations from the database.static JournalArticleLocalization
removeByA_L
(long articlePK, String languageId) Removes the journal article localization where articlePK = ? and languageId = ? from the database.static void
removeByArticlePK
(long articlePK) Removes all the journal article localizations where articlePK = ? from the database.static JournalArticleLocalization
removeByC_A
(long companyId, long articlePK) Removes the journal article localization where companyId = ? and articlePK = ? from the database.static JournalArticleLocalization
removeByC_A_L
(long companyId, long articlePK, String languageId) Removes the journal article localization where companyId = ? and articlePK = ? and languageId = ? from the database.static JournalArticleLocalization
removeByC_A_T_L
(long companyId, long articlePK, String title, String languageId) Removes the journal article localization where companyId = ? and articlePK = ? and title = ? and languageId = ? from the database.static void
setPersistence
(JournalArticleLocalizationPersistence persistence) static JournalArticleLocalization
update
(JournalArticleLocalization journalArticleLocalization) static JournalArticleLocalization
update
(JournalArticleLocalization journalArticleLocalization, com.liferay.portal.kernel.service.ServiceContext serviceContext) static JournalArticleLocalization
updateImpl
(JournalArticleLocalization journalArticleLocalization)
-
Constructor Details
-
JournalArticleLocalizationUtil
public JournalArticleLocalizationUtil()
-
-
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,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
Returns all the journal article localizations where articlePK = ?.- Parameters:
articlePK
- the article pk- Returns:
- the matching journal article localizations
-
findByArticlePK
Returns a range of all the journal article localizations where articlePK = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromJournalArticleLocalizationModelImpl
.- Parameters:
articlePK
- 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
-
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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromJournalArticleLocalizationModelImpl
.- Parameters:
articlePK
- 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
-
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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromJournalArticleLocalizationModelImpl
.- Parameters:
articlePK
- 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
-
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 pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching journal article localization
- Throws:
NoSuchArticleLocalizationException
- if a matching journal article localization could not be foundNoSuchArticleLocalizationException
-
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 pkorderByComparator
- the comparator to order the set by (optionallynull
)- 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 pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching journal article localization
- Throws:
NoSuchArticleLocalizationException
- if a matching journal article localization could not be foundNoSuchArticleLocalizationException
-
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 pkorderByComparator
- the comparator to order the set by (optionallynull
)- 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 localizationarticlePK
- the article pkorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next journal article localization
- Throws:
NoSuchArticleLocalizationException
- if a journal article localization with the primary key could not be foundNoSuchArticleLocalizationException
-
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 aNoSuchArticleLocalizationException
if it could not be found.- Parameters:
companyId
- the company IDarticlePK
- the article pk- Returns:
- the matching journal article localization
- Throws:
NoSuchArticleLocalizationException
- if a matching journal article localization could not be foundNoSuchArticleLocalizationException
-
fetchByC_A
Returns the journal article localization where companyId = ? and articlePK = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
companyId
- the company IDarticlePK
- 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 returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
companyId
- the company IDarticlePK
- the article pkuseFinderCache
- 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 IDarticlePK
- 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 IDarticlePK
- 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 aNoSuchArticleLocalizationException
if it could not be found.- Parameters:
articlePK
- the article pklanguageId
- the language ID- Returns:
- the matching journal article localization
- Throws:
NoSuchArticleLocalizationException
- if a matching journal article localization could not be foundNoSuchArticleLocalizationException
-
fetchByA_L
Returns the journal article localization where articlePK = ? and languageId = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
articlePK
- the article pklanguageId
- 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 returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
articlePK
- the article pklanguageId
- the language IDuseFinderCache
- 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 pklanguageId
- the language ID- Returns:
- the journal article localization that was removed
- Throws:
NoSuchArticleLocalizationException
-
countByA_L
Returns the number of journal article localizations where articlePK = ? and languageId = ?.- Parameters:
articlePK
- the article pklanguageId
- 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 aNoSuchArticleLocalizationException
if it could not be found.- Parameters:
companyId
- the company IDarticlePK
- the article pklanguageId
- the language ID- Returns:
- the matching journal article localization
- Throws:
NoSuchArticleLocalizationException
- if a matching journal article localization could not be foundNoSuchArticleLocalizationException
-
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 returnsnull
if 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
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 returnsnull
if 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
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 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
-
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 aNoSuchArticleLocalizationException
if it could not be found.- Parameters:
companyId
- the company IDarticlePK
- the article pktitle
- the titlelanguageId
- the language ID- Returns:
- the matching journal article localization
- Throws:
NoSuchArticleLocalizationException
- if a matching journal article localization could not be foundNoSuchArticleLocalizationException
-
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 returnsnull
if it could not be found. Uses the finder cache.- Parameters:
companyId
- the company IDarticlePK
- the article pktitle
- the titlelanguageId
- 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 returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
companyId
- the company IDarticlePK
- the article pktitle
- the titlelanguageId
- the language IDuseFinderCache
- 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 IDarticlePK
- the article pktitle
- the titlelanguageId
- the language ID- Returns:
- the journal article localization that was removed
- Throws:
NoSuchArticleLocalizationException
-
countByC_A_T_L
Returns the number of journal article localizations where companyId = ? and articlePK = ? and title = ? and languageId = ?.- Parameters:
companyId
- the company IDarticlePK
- the article pktitle
- the titlelanguageId
- 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
- Throws:
NoSuchArticleLocalizationException
- if a journal article localization with the primary key could not be foundNoSuchArticleLocalizationException
-
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 aNoSuchArticleLocalizationException
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 foundNoSuchArticleLocalizationException
-
fetchByPrimaryKey
Returns the journal article localization with the primary key or returnsnull
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
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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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 - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is 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
-