@ProviderType public interface JournalArticleLocalizationPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<JournalArticleLocalization>
Caching information and settings can be found in portal.properties
com.liferay.journal.service.persistence.impl.JournalArticleLocalizationPersistenceImpl
,
JournalArticleLocalizationUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(JournalArticleLocalization journalArticleLocalization)
Caches the journal article localization in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<JournalArticleLocalization> journalArticleLocalizations)
Caches the journal article localizations in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of journal article localizations.
|
int |
countByA_L(long articlePK,
java.lang.String languageId)
Returns the number of journal article localizations where articlePK = ? and languageId = ?.
|
int |
countByArticlePK(long articlePK)
Returns the number of journal article localizations where articlePK = ?.
|
JournalArticleLocalization |
create(long articleLocalizationId)
Creates a new journal article localization with the primary key.
|
JournalArticleLocalization |
fetchByA_L(long articlePK,
java.lang.String languageId)
Returns the journal article localization where articlePK = ? and languageId = ? or returns
null if it could not be found. |
JournalArticleLocalization |
fetchByA_L(long articlePK,
java.lang.String languageId,
boolean retrieveFromCache)
Returns the journal article localization where articlePK = ? and languageId = ? or returns
null if it could not be found, optionally using the finder cache. |
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 = ?.
|
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 = ?.
|
JournalArticleLocalization |
fetchByPrimaryKey(long articleLocalizationId)
Returns the journal article localization with the primary key or returns
null if it could not be found. |
java.util.Map<java.io.Serializable,JournalArticleLocalization> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
java.util.List<JournalArticleLocalization> |
findAll()
Returns all the journal article localizations.
|
java.util.List<JournalArticleLocalization> |
findAll(int start,
int end)
Returns a range of all the journal article localizations.
|
java.util.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.
|
java.util.List<JournalArticleLocalization> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticleLocalization> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the journal article localizations.
|
JournalArticleLocalization |
findByA_L(long articlePK,
java.lang.String languageId)
Returns the journal article localization where articlePK = ? and languageId = ? or throws a
NoSuchArticleLocalizationException if it could not be found. |
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 = ?.
|
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 = ?.
|
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 = ?.
|
java.util.List<JournalArticleLocalization> |
findByArticlePK(long articlePK)
Returns all the journal article localizations where articlePK = ?.
|
java.util.List<JournalArticleLocalization> |
findByArticlePK(long articlePK,
int start,
int end)
Returns a range of all the journal article localizations where articlePK = ?.
|
java.util.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 = ?.
|
java.util.List<JournalArticleLocalization> |
findByArticlePK(long articlePK,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticleLocalization> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the journal article localizations where articlePK = ?.
|
JournalArticleLocalization |
findByPrimaryKey(long articleLocalizationId)
Returns the journal article localization with the primary key or throws a
NoSuchArticleLocalizationException if it could not be found. |
JournalArticleLocalization |
remove(long articleLocalizationId)
Removes the journal article localization with the primary key from the database.
|
void |
removeAll()
Removes all the journal article localizations from the database.
|
JournalArticleLocalization |
removeByA_L(long articlePK,
java.lang.String languageId)
Removes the journal article localization where articlePK = ? and languageId = ? from the database.
|
void |
removeByArticlePK(long articlePK)
Removes all the journal article localizations where articlePK = ? from the database.
|
JournalArticleLocalization |
updateImpl(JournalArticleLocalization journalArticleLocalization) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<JournalArticleLocalization> findByArticlePK(long articlePK)
articlePK
- the article pkjava.util.List<JournalArticleLocalization> findByArticlePK(long articlePK, int start, int end)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from JournalArticleLocalizationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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)java.util.List<JournalArticleLocalization> findByArticlePK(long articlePK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleLocalization> orderByComparator)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from JournalArticleLocalizationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)java.util.List<JournalArticleLocalization> findByArticlePK(long articlePK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleLocalization> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from JournalArticleLocalizationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cacheJournalArticleLocalization findByArticlePK_First(long articlePK, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleLocalization> orderByComparator) throws NoSuchArticleLocalizationException
articlePK
- the article pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchArticleLocalizationException
- if a matching journal article localization could not be foundJournalArticleLocalization fetchByArticlePK_First(long articlePK, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleLocalization> orderByComparator)
articlePK
- the article pkorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching journal article localization could not be foundJournalArticleLocalization findByArticlePK_Last(long articlePK, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleLocalization> orderByComparator) throws NoSuchArticleLocalizationException
articlePK
- the article pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchArticleLocalizationException
- if a matching journal article localization could not be foundJournalArticleLocalization fetchByArticlePK_Last(long articlePK, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleLocalization> orderByComparator)
articlePK
- the article pkorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching journal article localization could not be foundJournalArticleLocalization[] findByArticlePK_PrevAndNext(long articleLocalizationId, long articlePK, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleLocalization> orderByComparator) throws NoSuchArticleLocalizationException
articleLocalizationId
- the primary key of the current journal article localizationarticlePK
- the article pkorderByComparator
- the comparator to order the set by (optionally null
)NoSuchArticleLocalizationException
- if a journal article localization with the primary key could not be foundvoid removeByArticlePK(long articlePK)
articlePK
- the article pkint countByArticlePK(long articlePK)
articlePK
- the article pkJournalArticleLocalization findByA_L(long articlePK, java.lang.String languageId) throws NoSuchArticleLocalizationException
NoSuchArticleLocalizationException
if it could not be found.articlePK
- the article pklanguageId
- the language IDNoSuchArticleLocalizationException
- if a matching journal article localization could not be foundJournalArticleLocalization fetchByA_L(long articlePK, java.lang.String languageId)
null
if it could not be found. Uses the finder cache.articlePK
- the article pklanguageId
- the language IDnull
if a matching journal article localization could not be foundJournalArticleLocalization fetchByA_L(long articlePK, java.lang.String languageId, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.articlePK
- the article pklanguageId
- the language IDretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching journal article localization could not be foundJournalArticleLocalization removeByA_L(long articlePK, java.lang.String languageId) throws NoSuchArticleLocalizationException
articlePK
- the article pklanguageId
- the language IDNoSuchArticleLocalizationException
int countByA_L(long articlePK, java.lang.String languageId)
articlePK
- the article pklanguageId
- the language IDvoid cacheResult(JournalArticleLocalization journalArticleLocalization)
journalArticleLocalization
- the journal article localizationvoid cacheResult(java.util.List<JournalArticleLocalization> journalArticleLocalizations)
journalArticleLocalizations
- the journal article localizationsJournalArticleLocalization create(long articleLocalizationId)
articleLocalizationId
- the primary key for the new journal article localizationJournalArticleLocalization remove(long articleLocalizationId) throws NoSuchArticleLocalizationException
articleLocalizationId
- the primary key of the journal article localizationNoSuchArticleLocalizationException
- if a journal article localization with the primary key could not be foundJournalArticleLocalization updateImpl(JournalArticleLocalization journalArticleLocalization)
JournalArticleLocalization findByPrimaryKey(long articleLocalizationId) throws NoSuchArticleLocalizationException
NoSuchArticleLocalizationException
if it could not be found.articleLocalizationId
- the primary key of the journal article localizationNoSuchArticleLocalizationException
- if a journal article localization with the primary key could not be foundJournalArticleLocalization fetchByPrimaryKey(long articleLocalizationId)
null
if it could not be found.articleLocalizationId
- the primary key of the journal article localizationnull
if a journal article localization with the primary key could not be foundjava.util.Map<java.io.Serializable,JournalArticleLocalization> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
fetchByPrimaryKeys
in interface com.liferay.portal.kernel.service.persistence.BasePersistence<JournalArticleLocalization>
java.util.List<JournalArticleLocalization> findAll()
java.util.List<JournalArticleLocalization> findAll(int start, int end)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from JournalArticleLocalizationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of journal article localizationsend
- the upper bound of the range of journal article localizations (not inclusive)java.util.List<JournalArticleLocalization> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleLocalization> orderByComparator)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from JournalArticleLocalizationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)java.util.List<JournalArticleLocalization> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleLocalization> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from JournalArticleLocalizationModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachevoid removeAll()
int countAll()