|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.persistence.ImageUtil
public class ImageUtil
The persistence utility for the image service.
Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regnerate this class.
ImagePersistence,
ImagePersistenceImpl| Constructor Summary | |
|---|---|
ImageUtil()
|
|
| Method Summary | |
|---|---|
static void |
cacheResult(Image image)
Caches the image in the entity cache if it is enabled. |
static void |
cacheResult(List<Image> images)
Caches the images in the entity cache if it is enabled. |
static void |
clearCache()
|
static void |
clearCache(Image image)
|
static int |
countAll()
Counts all the images. |
static int |
countByLtSize(int size)
Counts all the images where size < ?. |
long |
countWithDynamicQuery(DynamicQuery dynamicQuery)
|
static Image |
create(long imageId)
Creates a new image with the primary key. |
static Image |
fetchByPrimaryKey(long imageId)
Finds the image with the primary key or returns null if it could not be found. |
static List<Image> |
findAll()
Finds all the images. |
static List<Image> |
findAll(int start,
int end)
Finds a range of all the images. |
static List<Image> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the images. |
static Image |
findByLtSize_First(int size,
OrderByComparator orderByComparator)
Finds the first image in the ordered set where size < ?. |
static Image |
findByLtSize_Last(int size,
OrderByComparator orderByComparator)
Finds the last image in the ordered set where size < ?. |
static Image[] |
findByLtSize_PrevAndNext(long imageId,
int size,
OrderByComparator orderByComparator)
Finds the images before and after the current image in the ordered set where size < ?. |
static List<Image> |
findByLtSize(int size)
Finds all the images where size < ?. |
static List<Image> |
findByLtSize(int size,
int start,
int end)
Finds a range of all the images where size < ?. |
static List<Image> |
findByLtSize(int size,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the images where size < ?. |
static Image |
findByPrimaryKey(long imageId)
Finds the image with the primary key or throws a NoSuchImageException if it could not be found. |
static List<Image> |
findWithDynamicQuery(DynamicQuery dynamicQuery)
|
static List<Image> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
|
static List<Image> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
|
static ImagePersistence |
getPersistence()
|
static Image |
remove(Image image)
|
static Image |
remove(long imageId)
Removes the image with the primary key from the database. |
static void |
removeAll()
Removes all the images from the database. |
static void |
removeByLtSize(int size)
Removes all the images where size < ? from the database. |
void |
setPersistence(ImagePersistence persistence)
|
static Image |
update(Image image,
boolean merge)
|
static Image |
update(Image image,
boolean merge,
ServiceContext serviceContext)
|
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 |
| Constructor Detail |
|---|
public ImageUtil()
| Method Detail |
|---|
public static void clearCache()
BasePersistence.clearCache()public static void clearCache(Image image)
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)
public long countWithDynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
SystemExceptionBasePersistence.countWithDynamicQuery(DynamicQuery)
public static List<Image> findWithDynamicQuery(DynamicQuery dynamicQuery)
throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery)
public static List<Image> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
public static List<Image> findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
SystemExceptionBasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
public static Image remove(Image image)
throws SystemException
SystemExceptionBasePersistence.remove(com.liferay.portal.model.BaseModel)
public static Image update(Image image,
boolean merge)
throws SystemException
SystemExceptionBasePersistence.update(com.liferay.portal.model.BaseModel, boolean)
public static Image update(Image image,
boolean merge,
ServiceContext serviceContext)
throws SystemException
SystemExceptionBasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)public static void cacheResult(Image image)
image - the image to cachepublic static void cacheResult(List<Image> images)
images - the images to cachepublic static Image create(long imageId)
imageId - the primary key for the new image
public static Image remove(long imageId)
throws NoSuchImageException,
SystemException
imageId - the primary key of the image to remove
NoSuchImageException - if a image with the primary key could not be found
SystemException - if a system exception occurred
public static Image updateImpl(Image image,
boolean merge)
throws SystemException
SystemException
public static Image findByPrimaryKey(long imageId)
throws NoSuchImageException,
SystemException
NoSuchImageException if it could not be found.
imageId - the primary key of the image to find
NoSuchImageException - if a image with the primary key could not be found
SystemException - if a system exception occurred
public static Image fetchByPrimaryKey(long imageId)
throws SystemException
null if it could not be found.
imageId - the primary key of the image to find
null if a image with the primary key could not be found
SystemException - if a system exception occurred
public static List<Image> findByLtSize(int size)
throws SystemException
size - the size to search with
SystemException - if a system exception occurred
public static List<Image> findByLtSize(int size,
int start,
int end)
throws SystemException
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.
size - the size to search withstart - the lower bound of the range of images to returnend - the upper bound of the range of images to return (not inclusive)
SystemException - if a system exception occurred
public static List<Image> findByLtSize(int size,
int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
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.
size - the size to search withstart - the lower bound of the range of images to returnend - the upper bound of the range of images to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public static Image findByLtSize_First(int size,
OrderByComparator orderByComparator)
throws NoSuchImageException,
SystemException
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.
size - the size to search withorderByComparator - the comparator to order the set by
NoSuchImageException - if a matching image could not be found
SystemException - if a system exception occurred
public static Image findByLtSize_Last(int size,
OrderByComparator orderByComparator)
throws NoSuchImageException,
SystemException
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.
size - the size to search withorderByComparator - the comparator to order the set by
NoSuchImageException - if a matching image could not be found
SystemException - if a system exception occurred
public static Image[] findByLtSize_PrevAndNext(long imageId,
int size,
OrderByComparator orderByComparator)
throws NoSuchImageException,
SystemException
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.
imageId - the primary key of the current imagesize - the size to search withorderByComparator - the comparator to order the set by
NoSuchImageException - if a image with the primary key could not be found
SystemException - if a system exception occurred
public static List<Image> findAll()
throws SystemException
SystemException - if a system exception occurred
public static List<Image> findAll(int start,
int end)
throws SystemException
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.
start - the lower bound of the range of images to returnend - the upper bound of the range of images to return (not inclusive)
SystemException - if a system exception occurred
public static List<Image> findAll(int start,
int end,
OrderByComparator orderByComparator)
throws SystemException
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.
start - the lower bound of the range of images to returnend - the upper bound of the range of images to return (not inclusive)orderByComparator - the comparator to order the results by
SystemException - if a system exception occurred
public static void removeByLtSize(int size)
throws SystemException
size - the size to search with
SystemException - if a system exception occurred
public static void removeAll()
throws SystemException
SystemException - if a system exception occurred
public static int countByLtSize(int size)
throws SystemException
size - the size to search with
SystemException - if a system exception occurred
public static int countAll()
throws SystemException
SystemException - if a system exception occurredpublic static ImagePersistence getPersistence()
public void setPersistence(ImagePersistence persistence)
|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||