com.liferay.portal.service.persistence
Interface ImagePersistence
- All Superinterfaces:
- BasePersistence
@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface ImagePersistence
- extends BasePersistence
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
int |
countAll()
|
int |
countBySize(int size)
|
Image |
create(long imageId)
|
Image |
fetchByPrimaryKey(long imageId)
|
java.util.List<Image> |
findAll()
|
java.util.List<Image> |
findAll(int start,
int end)
|
java.util.List<Image> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
Image |
findByPrimaryKey(long imageId)
|
Image |
findBySize_First(int size,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
Image |
findBySize_Last(int size,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
Image[] |
findBySize_PrevAndNext(long imageId,
int size,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List<Image> |
findBySize(int size)
|
java.util.List<Image> |
findBySize(int size,
int start,
int end)
|
java.util.List<Image> |
findBySize(int size,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
java.util.List<java.lang.Object> |
findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
Image |
remove(Image image)
|
Image |
remove(long imageId)
|
void |
removeAll()
|
void |
removeBySize(int size)
|
Image |
update(Image image)
Deprecated. Use update(Image image, boolean merge) . |
Image |
update(Image image,
boolean merge)
Add, update, or merge, the entity. |
Image |
updateImpl(Image image,
boolean merge)
|
create
Image create(long imageId)
remove
Image remove(long imageId)
throws NoSuchImageException,
com.liferay.portal.SystemException
- Throws:
NoSuchImageException
com.liferay.portal.SystemException
remove
Image remove(Image image)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
update
Image update(Image image)
throws com.liferay.portal.SystemException
- Deprecated. Use
update(Image image, boolean merge)
.
- Throws:
com.liferay.portal.SystemException
update
Image update(Image image,
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:
image
- 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 image 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
Image updateImpl(Image image,
boolean merge)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findByPrimaryKey
@Transactional(propagation=SUPPORTS,
readOnly=true)
Image findByPrimaryKey(long imageId)
throws NoSuchImageException,
com.liferay.portal.SystemException
- Throws:
NoSuchImageException
com.liferay.portal.SystemException
fetchByPrimaryKey
Image fetchByPrimaryKey(long imageId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findBySize
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Image> findBySize(int size)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findBySize
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Image> findBySize(int size,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findBySize
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Image> findBySize(int size,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findBySize_First
@Transactional(propagation=SUPPORTS,
readOnly=true)
Image findBySize_First(int size,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchImageException,
com.liferay.portal.SystemException
- Throws:
NoSuchImageException
com.liferay.portal.SystemException
findBySize_Last
@Transactional(propagation=SUPPORTS,
readOnly=true)
Image findBySize_Last(int size,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchImageException,
com.liferay.portal.SystemException
- Throws:
NoSuchImageException
com.liferay.portal.SystemException
findBySize_PrevAndNext
@Transactional(propagation=SUPPORTS,
readOnly=true)
Image[] findBySize_PrevAndNext(long imageId,
int size,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws NoSuchImageException,
com.liferay.portal.SystemException
- Throws:
NoSuchImageException
com.liferay.portal.SystemException
findWithDynamicQuery
@Transactional(propagation=SUPPORTS,
readOnly=true)
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
@Transactional(propagation=SUPPORTS,
readOnly=true)
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
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Image> findAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Image> findAll(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
findAll
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Image> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeBySize
void removeBySize(int size)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
removeAll
void removeAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countBySize
@Transactional(propagation=SUPPORTS,
readOnly=true)
int countBySize(int size)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
countAll
@Transactional(propagation=SUPPORTS,
readOnly=true)
int countAll()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException