com.liferay.portlet.imagegallery.service.persistence
Class IGImageUtil
java.lang.Object
com.liferay.portlet.imagegallery.service.persistence.IGImageUtil
public class IGImageUtil
- extends java.lang.Object
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
static int |
countAll()
|
static int |
countByCustom1ImageId(long custom1ImageId)
|
static int |
countByCustom2ImageId(long custom2ImageId)
|
static int |
countByF_N(long folderId,
java.lang.String name)
|
static int |
countByFolderId(long folderId)
|
static int |
countByLargeImageId(long largeImageId)
|
static int |
countBySmallImageId(long smallImageId)
|
static int |
countByUuid(java.lang.String uuid)
|
static IGImage |
create(long imageId)
|
static IGImage |
fetchByCustom1ImageId(long custom1ImageId)
|
static IGImage |
fetchByCustom2ImageId(long custom2ImageId)
|
static IGImage |
fetchByLargeImageId(long largeImageId)
|
static IGImage |
fetchByPrimaryKey(long imageId)
|
static IGImage |
fetchBySmallImageId(long smallImageId)
|
static java.util.List<IGImage> |
findAll()
|
static java.util.List<IGImage> |
findAll(int start,
int end)
|
static java.util.List<IGImage> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static IGImage |
findByCustom1ImageId(long custom1ImageId)
|
static IGImage |
findByCustom2ImageId(long custom2ImageId)
|
static IGImage |
findByF_N_First(long folderId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static IGImage |
findByF_N_Last(long folderId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static IGImage[] |
findByF_N_PrevAndNext(long imageId,
long folderId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<IGImage> |
findByF_N(long folderId,
java.lang.String name)
|
static java.util.List<IGImage> |
findByF_N(long folderId,
java.lang.String name,
int start,
int end)
|
static java.util.List<IGImage> |
findByF_N(long folderId,
java.lang.String name,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static IGImage |
findByFolderId_First(long folderId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static IGImage |
findByFolderId_Last(long folderId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static IGImage[] |
findByFolderId_PrevAndNext(long imageId,
long folderId,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<IGImage> |
findByFolderId(long folderId)
|
static java.util.List<IGImage> |
findByFolderId(long folderId,
int start,
int end)
|
static java.util.List<IGImage> |
findByFolderId(long folderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static IGImage |
findByLargeImageId(long largeImageId)
|
static IGImage |
findByPrimaryKey(long imageId)
|
static IGImage |
findBySmallImageId(long smallImageId)
|
static IGImage |
findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static IGImage |
findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static IGImage[] |
findByUuid_PrevAndNext(long imageId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<IGImage> |
findByUuid(java.lang.String uuid)
|
static java.util.List<IGImage> |
findByUuid(java.lang.String uuid,
int start,
int end)
|
static java.util.List<IGImage> |
findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
static java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
static IGImagePersistence |
getPersistence()
|
static IGImage |
remove(IGImage igImage)
|
static IGImage |
remove(long imageId)
|
static void |
removeAll()
|
static void |
removeByCustom1ImageId(long custom1ImageId)
|
static void |
removeByCustom2ImageId(long custom2ImageId)
|
static void |
removeByF_N(long folderId,
java.lang.String name)
|
static void |
removeByFolderId(long folderId)
|
static void |
removeByLargeImageId(long largeImageId)
|
static void |
removeBySmallImageId(long smallImageId)
|
static void |
removeByUuid(java.lang.String uuid)
|
void |
setPersistence(IGImagePersistence persistence)
|
static IGImage |
update(IGImage igImage)
Deprecated. Use update(IGImage igImage, boolean merge) . |
static IGImage |
update(IGImage igImage,
boolean merge)
Add, update, or merge, the entity. |
static IGImage |
updateImpl(IGImage igImage,
boolean merge)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IGImageUtil
public IGImageUtil()
create
public static IGImage create(long imageId)
remove
public static IGImage remove(long imageId)
throws com.liferay.portal.SystemException,
NoSuchImageException
- Throws:
com.liferay.portal.SystemException
NoSuchImageException
remove
public static IGImage remove(IGImage igImage)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
public static IGImage update(IGImage igImage)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(IGImage igImage, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
public static IGImage update(IGImage igImage,
boolean merge)
throws com.liferay.portal.SystemException
- Add, update, or merge, the entity. This method also calls the model
listeners to trigger the proper events associated with adding, deleting,
or updating an entity.
- Parameters:
igImage
- the entity to add, update, or mergemerge
- boolean value for whether to merge the entity. The
default value is false. Setting merge to true is more
expensive and should only be true when igImage is
transient. See LEP-5473 for a detailed discussion of this
method.
- Returns:
- true if the portlet can be displayed via Ajax
- Throws:
com.liferay.portal.SystemException
updateImpl
public static IGImage updateImpl(IGImage igImage,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
public static IGImage findByPrimaryKey(long imageId)
throws com.liferay.portal.SystemException,
NoSuchImageException
- Throws:
com.liferay.portal.SystemException
NoSuchImageException
fetchByPrimaryKey
public static IGImage fetchByPrimaryKey(long imageId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUuid
public static java.util.List<IGImage> findByUuid(java.lang.String uuid)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUuid
public static java.util.List<IGImage> findByUuid(java.lang.String uuid,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUuid
public static java.util.List<IGImage> findByUuid(java.lang.String uuid,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByUuid_First
public static IGImage findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchImageException
- Throws:
com.liferay.portal.SystemException
NoSuchImageException
findByUuid_Last
public static IGImage findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchImageException
- Throws:
com.liferay.portal.SystemException
NoSuchImageException
findByUuid_PrevAndNext
public static IGImage[] findByUuid_PrevAndNext(long imageId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchImageException
- Throws:
com.liferay.portal.SystemException
NoSuchImageException
findByFolderId
public static java.util.List<IGImage> findByFolderId(long folderId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByFolderId
public static java.util.List<IGImage> findByFolderId(long folderId,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByFolderId
public static java.util.List<IGImage> findByFolderId(long folderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByFolderId_First
public static IGImage findByFolderId_First(long folderId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchImageException
- Throws:
com.liferay.portal.SystemException
NoSuchImageException
findByFolderId_Last
public static IGImage findByFolderId_Last(long folderId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchImageException
- Throws:
com.liferay.portal.SystemException
NoSuchImageException
findByFolderId_PrevAndNext
public static IGImage[] findByFolderId_PrevAndNext(long imageId,
long folderId,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchImageException
- Throws:
com.liferay.portal.SystemException
NoSuchImageException
findBySmallImageId
public static IGImage findBySmallImageId(long smallImageId)
throws com.liferay.portal.SystemException,
NoSuchImageException
- Throws:
com.liferay.portal.SystemException
NoSuchImageException
fetchBySmallImageId
public static IGImage fetchBySmallImageId(long smallImageId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByLargeImageId
public static IGImage findByLargeImageId(long largeImageId)
throws com.liferay.portal.SystemException,
NoSuchImageException
- Throws:
com.liferay.portal.SystemException
NoSuchImageException
fetchByLargeImageId
public static IGImage fetchByLargeImageId(long largeImageId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByCustom1ImageId
public static IGImage findByCustom1ImageId(long custom1ImageId)
throws com.liferay.portal.SystemException,
NoSuchImageException
- Throws:
com.liferay.portal.SystemException
NoSuchImageException
fetchByCustom1ImageId
public static IGImage fetchByCustom1ImageId(long custom1ImageId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByCustom2ImageId
public static IGImage findByCustom2ImageId(long custom2ImageId)
throws com.liferay.portal.SystemException,
NoSuchImageException
- Throws:
com.liferay.portal.SystemException
NoSuchImageException
fetchByCustom2ImageId
public static IGImage fetchByCustom2ImageId(long custom2ImageId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByF_N
public static java.util.List<IGImage> findByF_N(long folderId,
java.lang.String name)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByF_N
public static java.util.List<IGImage> findByF_N(long folderId,
java.lang.String name,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByF_N
public static java.util.List<IGImage> findByF_N(long folderId,
java.lang.String name,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByF_N_First
public static IGImage findByF_N_First(long folderId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchImageException
- Throws:
com.liferay.portal.SystemException
NoSuchImageException
findByF_N_Last
public static IGImage findByF_N_Last(long folderId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchImageException
- Throws:
com.liferay.portal.SystemException
NoSuchImageException
findByF_N_PrevAndNext
public static IGImage[] findByF_N_PrevAndNext(long imageId,
long folderId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException,
NoSuchImageException
- Throws:
com.liferay.portal.SystemException
NoSuchImageException
findWithDynamicQuery
public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findWithDynamicQuery
public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<IGImage> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<IGImage> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
public static java.util.List<IGImage> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByUuid
public static void removeByUuid(java.lang.String uuid)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeByFolderId
public static void removeByFolderId(long folderId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeBySmallImageId
public static void removeBySmallImageId(long smallImageId)
throws com.liferay.portal.SystemException,
NoSuchImageException
- Throws:
com.liferay.portal.SystemException
NoSuchImageException
removeByLargeImageId
public static void removeByLargeImageId(long largeImageId)
throws com.liferay.portal.SystemException,
NoSuchImageException
- Throws:
com.liferay.portal.SystemException
NoSuchImageException
removeByCustom1ImageId
public static void removeByCustom1ImageId(long custom1ImageId)
throws com.liferay.portal.SystemException,
NoSuchImageException
- Throws:
com.liferay.portal.SystemException
NoSuchImageException
removeByCustom2ImageId
public static void removeByCustom2ImageId(long custom2ImageId)
throws com.liferay.portal.SystemException,
NoSuchImageException
- Throws:
com.liferay.portal.SystemException
NoSuchImageException
removeByF_N
public static void removeByF_N(long folderId,
java.lang.String name)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeAll
public static void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByUuid
public static int countByUuid(java.lang.String uuid)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByFolderId
public static int countByFolderId(long folderId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countBySmallImageId
public static int countBySmallImageId(long smallImageId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByLargeImageId
public static int countByLargeImageId(long largeImageId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByCustom1ImageId
public static int countByCustom1ImageId(long custom1ImageId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByCustom2ImageId
public static int countByCustom2ImageId(long custom2ImageId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countByF_N
public static int countByF_N(long folderId,
java.lang.String name)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countAll
public static int countAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getPersistence
public static IGImagePersistence getPersistence()
setPersistence
public void setPersistence(IGImagePersistence persistence)