@ProviderType public interface ImagePersistence extends BasePersistence<Image>
Caching information and settings can be found in portal.properties
ImagePersistenceImpl,
ImageUtil| Modifier and Type | Method and Description |
|---|---|
void |
cacheResult(Image image)
Caches the image in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<Image> images)
Caches the images in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of images.
|
int |
countByLtSize(int size)
Returns the number of images where size < ?.
|
Image |
create(long imageId)
Creates a new image with the primary key.
|
Image |
fetchByLtSize_First(int size,
OrderByComparator orderByComparator)
Returns the first image in the ordered set where size < ?.
|
Image |
fetchByLtSize_Last(int size,
OrderByComparator orderByComparator)
Returns the last image in the ordered set where size < ?.
|
Image |
fetchByPrimaryKey(long imageId)
Returns the image with the primary key or returns
null if it could not be found. |
java.util.List<Image> |
findAll()
Returns all the images.
|
java.util.List<Image> |
findAll(int start,
int end)
Returns a range of all the images.
|
java.util.List<Image> |
findAll(int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the images.
|
Image |
findByLtSize_First(int size,
OrderByComparator orderByComparator)
Returns the first image in the ordered set where size < ?.
|
Image |
findByLtSize_Last(int size,
OrderByComparator orderByComparator)
Returns the last image in the ordered set where size < ?.
|
Image[] |
findByLtSize_PrevAndNext(long imageId,
int size,
OrderByComparator orderByComparator)
Returns the images before and after the current image in the ordered set where size < ?.
|
java.util.List<Image> |
findByLtSize(int size)
Returns all the images where size < ?.
|
java.util.List<Image> |
findByLtSize(int size,
int start,
int end)
Returns a range of all the images where size < ?.
|
java.util.List<Image> |
findByLtSize(int size,
int start,
int end,
OrderByComparator orderByComparator)
Returns an ordered range of all the images where size < ?.
|
Image |
findByPrimaryKey(long imageId)
Returns 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) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, updatejava.util.List<Image> findByLtSize(int size) throws SystemException
size - the sizeSystemException - if a system exception occurredjava.util.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. 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 ImageModelImpl. 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.
size - the sizestart - the lower bound of the range of imagesend - the upper bound of the range of images (not inclusive)SystemException - if a system exception occurredjava.util.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. 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 ImageModelImpl. 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.
size - the sizestart - the lower bound of the range of imagesend - the upper bound of the range of images (not inclusive)orderByComparator - the comparator to order the results by (optionally null)SystemException - if a system exception occurredImage findByLtSize_First(int size, OrderByComparator orderByComparator) throws NoSuchImageException, SystemException
size - the sizeorderByComparator - the comparator to order the set by (optionally null)NoSuchImageException - if a matching image could not be foundSystemException - if a system exception occurredImage fetchByLtSize_First(int size, OrderByComparator orderByComparator) throws SystemException
size - the sizeorderByComparator - the comparator to order the set by (optionally null)null if a matching image could not be foundSystemException - if a system exception occurredImage findByLtSize_Last(int size, OrderByComparator orderByComparator) throws NoSuchImageException, SystemException
size - the sizeorderByComparator - the comparator to order the set by (optionally null)NoSuchImageException - if a matching image could not be foundSystemException - if a system exception occurredImage fetchByLtSize_Last(int size, OrderByComparator orderByComparator) throws SystemException
size - the sizeorderByComparator - the comparator to order the set by (optionally null)null if a matching image could not be foundSystemException - if a system exception occurredImage[] findByLtSize_PrevAndNext(long imageId, int size, OrderByComparator orderByComparator) throws NoSuchImageException, SystemException
imageId - the primary key of the current imagesize - the sizeorderByComparator - the comparator to order the set by (optionally null)NoSuchImageException - if a image with the primary key could not be foundSystemException - if a system exception occurredvoid removeByLtSize(int size)
throws SystemException
size - the sizeSystemException - if a system exception occurredint countByLtSize(int size)
throws SystemException
size - the sizeSystemException - if a system exception occurredvoid cacheResult(Image image)
image - the imagevoid cacheResult(java.util.List<Image> images)
images - the imagesImage create(long imageId)
imageId - the primary key for the new imageImage remove(long imageId) throws NoSuchImageException, SystemException
imageId - the primary key of the imageNoSuchImageException - if a image with the primary key could not be foundSystemException - if a system exception occurredImage updateImpl(Image image) throws SystemException
SystemExceptionImage findByPrimaryKey(long imageId) throws NoSuchImageException, SystemException
NoSuchImageException if it could not be found.imageId - the primary key of the imageNoSuchImageException - if a image with the primary key could not be foundSystemException - if a system exception occurredImage fetchByPrimaryKey(long imageId) throws SystemException
null if it could not be found.imageId - the primary key of the imagenull if a image with the primary key could not be foundSystemException - if a system exception occurredjava.util.List<Image> findAll() throws SystemException
SystemException - if a system exception occurredjava.util.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. 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 ImageModelImpl. 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 imagesend - the upper bound of the range of images (not inclusive)SystemException - if a system exception occurredjava.util.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. 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 ImageModelImpl. 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 imagesend - the upper bound of the range of images (not inclusive)orderByComparator - the comparator to order the results by (optionally null)SystemException - if a system exception occurredvoid removeAll()
throws SystemException
SystemException - if a system exception occurredint countAll()
throws SystemException
SystemException - if a system exception occurred