@ProviderType
public class JournalArticleImageUtil
extends java.lang.Object
com.liferay.journal.service.persistence.impl.JournalArticleImagePersistenceImpl
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
JournalArticleImagePersistence
,
com.liferay.journal.service.persistence.impl.JournalArticleImagePersistenceImpl
Constructor and Description |
---|
JournalArticleImageUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(JournalArticleImage journalArticleImage)
Caches the journal article image in the entity cache if it is enabled.
|
static void |
cacheResult(java.util.List<JournalArticleImage> journalArticleImages)
Caches the journal article images in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(JournalArticleImage journalArticleImage) |
static int |
countAll()
Returns the number of journal article images.
|
static int |
countByG_A_V_E_E_L(long groupId,
java.lang.String articleId,
double version,
java.lang.String elInstanceId,
java.lang.String elName,
java.lang.String languageId)
Returns the number of journal article images where groupId = ? and articleId = ? and version = ? and elInstanceId = ? and elName = ? and languageId = ?.
|
static int |
countByG_A_V(long groupId,
java.lang.String articleId,
double version)
Returns the number of journal article images where groupId = ? and articleId = ? and version = ?.
|
static int |
countByGroupId(long groupId)
Returns the number of journal article images where groupId = ?.
|
static int |
countByTempImage(boolean tempImage)
Returns the number of journal article images where tempImage = ?.
|
static long |
countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static JournalArticleImage |
create(long articleImageId)
Creates a new journal article image with the primary key.
|
static JournalArticleImage |
fetchByG_A_V_E_E_L(long groupId,
java.lang.String articleId,
double version,
java.lang.String elInstanceId,
java.lang.String elName,
java.lang.String languageId)
Returns the journal article image where groupId = ? and articleId = ? and version = ? and elInstanceId = ? and elName = ? and languageId = ? or returns
null if it could not be found. |
static JournalArticleImage |
fetchByG_A_V_E_E_L(long groupId,
java.lang.String articleId,
double version,
java.lang.String elInstanceId,
java.lang.String elName,
java.lang.String languageId,
boolean retrieveFromCache)
Returns the journal article image where groupId = ? and articleId = ? and version = ? and elInstanceId = ? and elName = ? and languageId = ? or returns
null if it could not be found, optionally using the finder cache. |
static JournalArticleImage |
fetchByG_A_V_First(long groupId,
java.lang.String articleId,
double version,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator)
Returns the first journal article image in the ordered set where groupId = ? and articleId = ? and version = ?.
|
static JournalArticleImage |
fetchByG_A_V_Last(long groupId,
java.lang.String articleId,
double version,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator)
Returns the last journal article image in the ordered set where groupId = ? and articleId = ? and version = ?.
|
static JournalArticleImage |
fetchByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator)
Returns the first journal article image in the ordered set where groupId = ?.
|
static JournalArticleImage |
fetchByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator)
Returns the last journal article image in the ordered set where groupId = ?.
|
static JournalArticleImage |
fetchByPrimaryKey(long articleImageId)
Returns the journal article image with the primary key or returns
null if it could not be found. |
static java.util.Map<java.io.Serializable,JournalArticleImage> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
static JournalArticleImage |
fetchByTempImage_First(boolean tempImage,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator)
Returns the first journal article image in the ordered set where tempImage = ?.
|
static JournalArticleImage |
fetchByTempImage_Last(boolean tempImage,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator)
Returns the last journal article image in the ordered set where tempImage = ?.
|
static java.util.List<JournalArticleImage> |
findAll()
Returns all the journal article images.
|
static java.util.List<JournalArticleImage> |
findAll(int start,
int end)
Returns a range of all the journal article images.
|
static java.util.List<JournalArticleImage> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator)
Returns an ordered range of all the journal article images.
|
static java.util.List<JournalArticleImage> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the journal article images.
|
static JournalArticleImage |
findByG_A_V_E_E_L(long groupId,
java.lang.String articleId,
double version,
java.lang.String elInstanceId,
java.lang.String elName,
java.lang.String languageId)
Returns the journal article image where groupId = ? and articleId = ? and version = ? and elInstanceId = ? and elName = ? and languageId = ? or throws a
NoSuchArticleImageException if it could not be found. |
static JournalArticleImage |
findByG_A_V_First(long groupId,
java.lang.String articleId,
double version,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator)
Returns the first journal article image in the ordered set where groupId = ? and articleId = ? and version = ?.
|
static JournalArticleImage |
findByG_A_V_Last(long groupId,
java.lang.String articleId,
double version,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator)
Returns the last journal article image in the ordered set where groupId = ? and articleId = ? and version = ?.
|
static JournalArticleImage[] |
findByG_A_V_PrevAndNext(long articleImageId,
long groupId,
java.lang.String articleId,
double version,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator)
Returns the journal article images before and after the current journal article image in the ordered set where groupId = ? and articleId = ? and version = ?.
|
static java.util.List<JournalArticleImage> |
findByG_A_V(long groupId,
java.lang.String articleId,
double version)
Returns all the journal article images where groupId = ? and articleId = ? and version = ?.
|
static java.util.List<JournalArticleImage> |
findByG_A_V(long groupId,
java.lang.String articleId,
double version,
int start,
int end)
Returns a range of all the journal article images where groupId = ? and articleId = ? and version = ?.
|
static java.util.List<JournalArticleImage> |
findByG_A_V(long groupId,
java.lang.String articleId,
double version,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator)
Returns an ordered range of all the journal article images where groupId = ? and articleId = ? and version = ?.
|
static java.util.List<JournalArticleImage> |
findByG_A_V(long groupId,
java.lang.String articleId,
double version,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the journal article images where groupId = ? and articleId = ? and version = ?.
|
static JournalArticleImage |
findByGroupId_First(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator)
Returns the first journal article image in the ordered set where groupId = ?.
|
static JournalArticleImage |
findByGroupId_Last(long groupId,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator)
Returns the last journal article image in the ordered set where groupId = ?.
|
static JournalArticleImage[] |
findByGroupId_PrevAndNext(long articleImageId,
long groupId,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator)
Returns the journal article images before and after the current journal article image in the ordered set where groupId = ?.
|
static java.util.List<JournalArticleImage> |
findByGroupId(long groupId)
Returns all the journal article images where groupId = ?.
|
static java.util.List<JournalArticleImage> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the journal article images where groupId = ?.
|
static java.util.List<JournalArticleImage> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator)
Returns an ordered range of all the journal article images where groupId = ?.
|
static java.util.List<JournalArticleImage> |
findByGroupId(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the journal article images where groupId = ?.
|
static JournalArticleImage |
findByPrimaryKey(long articleImageId)
Returns the journal article image with the primary key or throws a
NoSuchArticleImageException if it could not be found. |
static JournalArticleImage |
findByTempImage_First(boolean tempImage,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator)
Returns the first journal article image in the ordered set where tempImage = ?.
|
static JournalArticleImage |
findByTempImage_Last(boolean tempImage,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator)
Returns the last journal article image in the ordered set where tempImage = ?.
|
static JournalArticleImage[] |
findByTempImage_PrevAndNext(long articleImageId,
boolean tempImage,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator)
Returns the journal article images before and after the current journal article image in the ordered set where tempImage = ?.
|
static java.util.List<JournalArticleImage> |
findByTempImage(boolean tempImage)
Returns all the journal article images where tempImage = ?.
|
static java.util.List<JournalArticleImage> |
findByTempImage(boolean tempImage,
int start,
int end)
Returns a range of all the journal article images where tempImage = ?.
|
static java.util.List<JournalArticleImage> |
findByTempImage(boolean tempImage,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator)
Returns an ordered range of all the journal article images where tempImage = ?.
|
static java.util.List<JournalArticleImage> |
findByTempImage(boolean tempImage,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the journal article images where tempImage = ?.
|
static java.util.List<JournalArticleImage> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) |
static java.util.List<JournalArticleImage> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end) |
static java.util.List<JournalArticleImage> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator) |
static JournalArticleImagePersistence |
getPersistence() |
static JournalArticleImage |
remove(long articleImageId)
Removes the journal article image with the primary key from the database.
|
static void |
removeAll()
Removes all the journal article images from the database.
|
static JournalArticleImage |
removeByG_A_V_E_E_L(long groupId,
java.lang.String articleId,
double version,
java.lang.String elInstanceId,
java.lang.String elName,
java.lang.String languageId)
Removes the journal article image where groupId = ? and articleId = ? and version = ? and elInstanceId = ? and elName = ? and languageId = ? from the database.
|
static void |
removeByG_A_V(long groupId,
java.lang.String articleId,
double version)
Removes all the journal article images where groupId = ? and articleId = ? and version = ? from the database.
|
static void |
removeByGroupId(long groupId)
Removes all the journal article images where groupId = ? from the database.
|
static void |
removeByTempImage(boolean tempImage)
Removes all the journal article images where tempImage = ? from the database.
|
static JournalArticleImage |
update(JournalArticleImage journalArticleImage) |
static JournalArticleImage |
update(JournalArticleImage journalArticleImage,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static JournalArticleImage |
updateImpl(JournalArticleImage journalArticleImage) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(JournalArticleImage journalArticleImage)
BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.countWithDynamicQuery(DynamicQuery)
public static java.util.List<JournalArticleImage> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
BasePersistence.findWithDynamicQuery(DynamicQuery)
public static java.util.List<JournalArticleImage> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static java.util.List<JournalArticleImage> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator)
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static JournalArticleImage update(JournalArticleImage journalArticleImage)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
public static JournalArticleImage update(JournalArticleImage journalArticleImage, com.liferay.portal.kernel.service.ServiceContext serviceContext)
BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
public static java.util.List<JournalArticleImage> findByGroupId(long groupId)
groupId
- the group IDpublic static java.util.List<JournalArticleImage> findByGroupId(long groupId, 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 JournalArticleImageModelImpl
. 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.
groupId
- the group IDstart
- the lower bound of the range of journal article imagesend
- the upper bound of the range of journal article images (not inclusive)public static java.util.List<JournalArticleImage> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> 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 JournalArticleImageModelImpl
. 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.
groupId
- the group IDstart
- the lower bound of the range of journal article imagesend
- the upper bound of the range of journal article images (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<JournalArticleImage> findByGroupId(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> 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 JournalArticleImageModelImpl
. 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.
groupId
- the group IDstart
- the lower bound of the range of journal article imagesend
- the upper bound of the range of journal article images (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static JournalArticleImage findByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator) throws NoSuchArticleImageException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchArticleImageException
- if a matching journal article image could not be foundpublic static JournalArticleImage fetchByGroupId_First(long groupId, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching journal article image could not be foundpublic static JournalArticleImage findByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator) throws NoSuchArticleImageException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchArticleImageException
- if a matching journal article image could not be foundpublic static JournalArticleImage fetchByGroupId_Last(long groupId, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching journal article image could not be foundpublic static JournalArticleImage[] findByGroupId_PrevAndNext(long articleImageId, long groupId, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator) throws NoSuchArticleImageException
articleImageId
- the primary key of the current journal article imagegroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchArticleImageException
- if a journal article image with the primary key could not be foundpublic static void removeByGroupId(long groupId)
groupId
- the group IDpublic static int countByGroupId(long groupId)
groupId
- the group IDpublic static java.util.List<JournalArticleImage> findByTempImage(boolean tempImage)
tempImage
- the temp imagepublic static java.util.List<JournalArticleImage> findByTempImage(boolean tempImage, 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 JournalArticleImageModelImpl
. 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.
tempImage
- the temp imagestart
- the lower bound of the range of journal article imagesend
- the upper bound of the range of journal article images (not inclusive)public static java.util.List<JournalArticleImage> findByTempImage(boolean tempImage, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> 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 JournalArticleImageModelImpl
. 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.
tempImage
- the temp imagestart
- the lower bound of the range of journal article imagesend
- the upper bound of the range of journal article images (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<JournalArticleImage> findByTempImage(boolean tempImage, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> 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 JournalArticleImageModelImpl
. 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.
tempImage
- the temp imagestart
- the lower bound of the range of journal article imagesend
- the upper bound of the range of journal article images (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static JournalArticleImage findByTempImage_First(boolean tempImage, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator) throws NoSuchArticleImageException
tempImage
- the temp imageorderByComparator
- the comparator to order the set by (optionally null
)NoSuchArticleImageException
- if a matching journal article image could not be foundpublic static JournalArticleImage fetchByTempImage_First(boolean tempImage, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator)
tempImage
- the temp imageorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching journal article image could not be foundpublic static JournalArticleImage findByTempImage_Last(boolean tempImage, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator) throws NoSuchArticleImageException
tempImage
- the temp imageorderByComparator
- the comparator to order the set by (optionally null
)NoSuchArticleImageException
- if a matching journal article image could not be foundpublic static JournalArticleImage fetchByTempImage_Last(boolean tempImage, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator)
tempImage
- the temp imageorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching journal article image could not be foundpublic static JournalArticleImage[] findByTempImage_PrevAndNext(long articleImageId, boolean tempImage, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator) throws NoSuchArticleImageException
articleImageId
- the primary key of the current journal article imagetempImage
- the temp imageorderByComparator
- the comparator to order the set by (optionally null
)NoSuchArticleImageException
- if a journal article image with the primary key could not be foundpublic static void removeByTempImage(boolean tempImage)
tempImage
- the temp imagepublic static int countByTempImage(boolean tempImage)
tempImage
- the temp imagepublic static java.util.List<JournalArticleImage> findByG_A_V(long groupId, java.lang.String articleId, double version)
groupId
- the group IDarticleId
- the article IDversion
- the versionpublic static java.util.List<JournalArticleImage> findByG_A_V(long groupId, java.lang.String articleId, double version, 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 JournalArticleImageModelImpl
. 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.
groupId
- the group IDarticleId
- the article IDversion
- the versionstart
- the lower bound of the range of journal article imagesend
- the upper bound of the range of journal article images (not inclusive)public static java.util.List<JournalArticleImage> findByG_A_V(long groupId, java.lang.String articleId, double version, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> 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 JournalArticleImageModelImpl
. 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.
groupId
- the group IDarticleId
- the article IDversion
- the versionstart
- the lower bound of the range of journal article imagesend
- the upper bound of the range of journal article images (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<JournalArticleImage> findByG_A_V(long groupId, java.lang.String articleId, double version, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> 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 JournalArticleImageModelImpl
. 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.
groupId
- the group IDarticleId
- the article IDversion
- the versionstart
- the lower bound of the range of journal article imagesend
- the upper bound of the range of journal article images (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static JournalArticleImage findByG_A_V_First(long groupId, java.lang.String articleId, double version, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator) throws NoSuchArticleImageException
groupId
- the group IDarticleId
- the article IDversion
- the versionorderByComparator
- the comparator to order the set by (optionally null
)NoSuchArticleImageException
- if a matching journal article image could not be foundpublic static JournalArticleImage fetchByG_A_V_First(long groupId, java.lang.String articleId, double version, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator)
groupId
- the group IDarticleId
- the article IDversion
- the versionorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching journal article image could not be foundpublic static JournalArticleImage findByG_A_V_Last(long groupId, java.lang.String articleId, double version, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator) throws NoSuchArticleImageException
groupId
- the group IDarticleId
- the article IDversion
- the versionorderByComparator
- the comparator to order the set by (optionally null
)NoSuchArticleImageException
- if a matching journal article image could not be foundpublic static JournalArticleImage fetchByG_A_V_Last(long groupId, java.lang.String articleId, double version, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator)
groupId
- the group IDarticleId
- the article IDversion
- the versionorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching journal article image could not be foundpublic static JournalArticleImage[] findByG_A_V_PrevAndNext(long articleImageId, long groupId, java.lang.String articleId, double version, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> orderByComparator) throws NoSuchArticleImageException
articleImageId
- the primary key of the current journal article imagegroupId
- the group IDarticleId
- the article IDversion
- the versionorderByComparator
- the comparator to order the set by (optionally null
)NoSuchArticleImageException
- if a journal article image with the primary key could not be foundpublic static void removeByG_A_V(long groupId, java.lang.String articleId, double version)
groupId
- the group IDarticleId
- the article IDversion
- the versionpublic static int countByG_A_V(long groupId, java.lang.String articleId, double version)
groupId
- the group IDarticleId
- the article IDversion
- the versionpublic static JournalArticleImage findByG_A_V_E_E_L(long groupId, java.lang.String articleId, double version, java.lang.String elInstanceId, java.lang.String elName, java.lang.String languageId) throws NoSuchArticleImageException
NoSuchArticleImageException
if it could not be found.groupId
- the group IDarticleId
- the article IDversion
- the versionelInstanceId
- the el instance IDelName
- the el namelanguageId
- the language IDNoSuchArticleImageException
- if a matching journal article image could not be foundpublic static JournalArticleImage fetchByG_A_V_E_E_L(long groupId, java.lang.String articleId, double version, java.lang.String elInstanceId, java.lang.String elName, java.lang.String languageId)
null
if it could not be found. Uses the finder cache.groupId
- the group IDarticleId
- the article IDversion
- the versionelInstanceId
- the el instance IDelName
- the el namelanguageId
- the language IDnull
if a matching journal article image could not be foundpublic static JournalArticleImage fetchByG_A_V_E_E_L(long groupId, java.lang.String articleId, double version, java.lang.String elInstanceId, java.lang.String elName, java.lang.String languageId, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.groupId
- the group IDarticleId
- the article IDversion
- the versionelInstanceId
- the el instance IDelName
- the el namelanguageId
- the language IDretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching journal article image could not be foundpublic static JournalArticleImage removeByG_A_V_E_E_L(long groupId, java.lang.String articleId, double version, java.lang.String elInstanceId, java.lang.String elName, java.lang.String languageId) throws NoSuchArticleImageException
groupId
- the group IDarticleId
- the article IDversion
- the versionelInstanceId
- the el instance IDelName
- the el namelanguageId
- the language IDNoSuchArticleImageException
public static int countByG_A_V_E_E_L(long groupId, java.lang.String articleId, double version, java.lang.String elInstanceId, java.lang.String elName, java.lang.String languageId)
groupId
- the group IDarticleId
- the article IDversion
- the versionelInstanceId
- the el instance IDelName
- the el namelanguageId
- the language IDpublic static void cacheResult(JournalArticleImage journalArticleImage)
journalArticleImage
- the journal article imagepublic static void cacheResult(java.util.List<JournalArticleImage> journalArticleImages)
journalArticleImages
- the journal article imagespublic static JournalArticleImage create(long articleImageId)
articleImageId
- the primary key for the new journal article imagepublic static JournalArticleImage remove(long articleImageId) throws NoSuchArticleImageException
articleImageId
- the primary key of the journal article imageNoSuchArticleImageException
- if a journal article image with the primary key could not be foundpublic static JournalArticleImage updateImpl(JournalArticleImage journalArticleImage)
public static JournalArticleImage findByPrimaryKey(long articleImageId) throws NoSuchArticleImageException
NoSuchArticleImageException
if it could not be found.articleImageId
- the primary key of the journal article imageNoSuchArticleImageException
- if a journal article image with the primary key could not be foundpublic static JournalArticleImage fetchByPrimaryKey(long articleImageId)
null
if it could not be found.articleImageId
- the primary key of the journal article imagenull
if a journal article image with the primary key could not be foundpublic static java.util.Map<java.io.Serializable,JournalArticleImage> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
public static java.util.List<JournalArticleImage> findAll()
public static java.util.List<JournalArticleImage> 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 JournalArticleImageModelImpl
. 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 imagesend
- the upper bound of the range of journal article images (not inclusive)public static java.util.List<JournalArticleImage> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> 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 JournalArticleImageModelImpl
. 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 imagesend
- the upper bound of the range of journal article images (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static java.util.List<JournalArticleImage> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<JournalArticleImage> 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 JournalArticleImageModelImpl
. 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 imagesend
- the upper bound of the range of journal article images (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static void removeAll()
public static int countAll()
public static JournalArticleImagePersistence getPersistence()