com.liferay.portal.service.persistence
Class ImageUtil
java.lang.Object
com.liferay.portal.service.persistence.ImageUtil
public class ImageUtil
- extends java.lang.Object
View Source
ServiceBuilder generated this class. Modifications in this class will be
overwritten the next time is generated.
- Author:
- Brian Wing Shun Chan
- See Also:
ImagePersistence
,
ImagePersistenceImpl
- Generated:
Method Summary |
static void |
cacheResult(Image image)
|
static void |
cacheResult(java.util.List<Image> images)
|
static void |
clearCache()
|
static int |
countAll()
|
static int |
countBySize(int size)
|
static Image |
create(long imageId)
|
static Image |
fetchByPrimaryKey(long imageId)
|
static java.util.List<Image> |
findAll()
|
static java.util.List<Image> |
findAll(int start,
int end)
|
static java.util.List<Image> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static Image |
findByPrimaryKey(long imageId)
|
static Image |
findBySize_First(int size,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static Image |
findBySize_Last(int size,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static Image[] |
findBySize_PrevAndNext(long imageId,
int size,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
static java.util.List<Image> |
findBySize(int size)
|
static java.util.List<Image> |
findBySize(int size,
int start,
int end)
|
static java.util.List<Image> |
findBySize(int size,
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 ImagePersistence |
getPersistence()
|
static Image |
remove(Image image)
|
static Image |
remove(long imageId)
|
static void |
removeAll()
|
static void |
removeBySize(int size)
|
void |
setPersistence(ImagePersistence persistence)
|
static Image |
update(Image image,
boolean merge)
|
static Image |
updateImpl(Image image,
boolean merge)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageUtil
public ImageUtil()
clearCache
public static void clearCache()
- See Also:
BasePersistence.clearCache()
findWithDynamicQuery
public static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
- See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)
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.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
- See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
remove
public static Image remove(Image image)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
- See Also:
BasePersistence.remove(com.liferay.portal.model.BaseModel)
update
public static Image update(Image image,
boolean merge)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
- See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
cacheResult
public static void cacheResult(Image image)
cacheResult
public static void cacheResult(java.util.List<Image> images)
create
public static Image create(long imageId)
remove
public static Image remove(long imageId)
throws NoSuchImageException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
NoSuchImageException
com.liferay.portal.kernel.exception.SystemException
updateImpl
public static Image updateImpl(Image image,
boolean merge)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findByPrimaryKey
public static Image findByPrimaryKey(long imageId)
throws NoSuchImageException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
NoSuchImageException
com.liferay.portal.kernel.exception.SystemException
fetchByPrimaryKey
public static Image fetchByPrimaryKey(long imageId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findBySize
public static java.util.List<Image> findBySize(int size)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findBySize
public static java.util.List<Image> findBySize(int size,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findBySize
public static java.util.List<Image> findBySize(int size,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findBySize_First
public static Image findBySize_First(int size,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchImageException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
NoSuchImageException
com.liferay.portal.kernel.exception.SystemException
findBySize_Last
public static Image findBySize_Last(int size,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchImageException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
NoSuchImageException
com.liferay.portal.kernel.exception.SystemException
findBySize_PrevAndNext
public static Image[] findBySize_PrevAndNext(long imageId,
int size,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchImageException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
NoSuchImageException
com.liferay.portal.kernel.exception.SystemException
findAll
public static java.util.List<Image> findAll()
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findAll
public static java.util.List<Image> findAll(int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
findAll
public static java.util.List<Image> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
removeBySize
public static void removeBySize(int size)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
removeAll
public static void removeAll()
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
countBySize
public static int countBySize(int size)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
countAll
public static int countAll()
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getPersistence
public static ImagePersistence getPersistence()
setPersistence
public void setPersistence(ImagePersistence persistence)