|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ImagePersistence
The persistence interface for the image service.
Never modify this interface directly. Modify service.xml and rerun ServiceBuilder to regnerate this interface.
ImagePersistenceImpl,
ImageUtil| Method Summary | |
|---|---|
void |
cacheResult(Image image)
Caches the image in the entity cache if it is enabled. |
void |
cacheResult(List<Image> images)
Caches the images in the entity cache if it is enabled. |
int |
countAll()
Counts all the images. |
int |
countByLtSize(int size)
Counts all the images where size < ?. |
Image |
create(long imageId)
Creates a new image with the primary key. |
Image |
fetchByPrimaryKey(long imageId)
Finds the image with the primary key or returns null if it could not be found. |
List<Image> |
findAll()
Finds all the images. |
List<Image> |
findAll(int start,
int end)
Finds a range of all the images. |
List<Image> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the images. |
Image |
findByLtSize_First(int size,
OrderByComparator orderByComparator)
Finds the first image in the ordered set where size < ?. |
Image |
findByLtSize_Last(int size,
OrderByComparator orderByComparator)
Finds the last image in the ordered set where size < ?. |
Image[] |
findByLtSize_PrevAndNext(long imageId,
int size,
OrderByComparator orderByComparator)
Finds the images before and after the current image in the ordered set where size < ?. |
List<Image> |
findByLtSize(int size)
Finds all the images where size < ?. |
List<Image> |
findByLtSize(int size,
int start,
int end)
Finds a range of all the images where size < ?. |
List<Image> |
findByLtSize(int size,
int start,
int end,
OrderByComparator orderByComparator)
Finds an ordered range of all the images where size < ?. |
Image |
findByPrimaryKey(long imageId)
Finds the image with the primary key or throws a NoSuchImageException if it could not be found. |
Image |
remove(long imageId)
Removes the image with the primary key from the database. |
void |
removeAll()
Removes all the images from the database. |
void |
removeByLtSize(int size)
Removes all the images where size < ? from the database. |
Image |
updateImpl(Image image,
boolean merge)
|
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
clearCache, clearCache, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, remove, setDataSource, unregisterListener, update, update |
| Method Detail |
|---|
void cacheResult(Image image)
image - the image to cachevoid cacheResult(List<Image> images)
images - the images to cacheImage create(long imageId)
imageId - the primary key for the new image
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
Image updateImpl(Image image,
boolean merge)
throws SystemException
SystemException
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
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
List<Image> findByLtSize(int size)
throws SystemException
size - the size to search with
SystemException - if a system exception occurred
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
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
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
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
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
List<Image> findAll()
throws SystemException
SystemException - if a system exception occurred
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
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
void removeByLtSize(int size)
throws SystemException
size - the size to search with
SystemException - if a system exception occurred
void removeAll()
throws SystemException
SystemException - if a system exception occurred
int countByLtSize(int size)
throws SystemException
size - the size to search with
SystemException - if a system exception occurred
int countAll()
throws SystemException
SystemException - if a system exception occurred
|
Liferay 6.0.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||