com.liferay.portlet.imagegallery.service.persistence
Interface IGImagePersistence


public interface IGImagePersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByFolderId(long folderId)
           
 int countByLargeImageId(long largeImageId)
           
 int countBySmallImageId(long smallImageId)
           
 int countByUuid(java.lang.String uuid)
           
 IGImage create(long imageId)
           
 IGImage fetchByLargeImageId(long largeImageId)
           
 IGImage fetchByPrimaryKey(long imageId)
           
 IGImage fetchBySmallImageId(long smallImageId)
           
 java.util.List findAll()
           
 java.util.List findAll(int begin, int end)
           
 java.util.List findAll(int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 IGImage findByFolderId_First(long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 IGImage findByFolderId_Last(long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 IGImage[] findByFolderId_PrevAndNext(long imageId, long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List findByFolderId(long folderId)
           
 java.util.List findByFolderId(long folderId, int begin, int end)
           
 java.util.List findByFolderId(long folderId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 IGImage findByLargeImageId(long largeImageId)
           
 IGImage findByPrimaryKey(long imageId)
           
 IGImage findBySmallImageId(long smallImageId)
           
 IGImage findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 IGImage findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 IGImage[] findByUuid_PrevAndNext(long imageId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List findByUuid(java.lang.String uuid)
           
 java.util.List findByUuid(java.lang.String uuid, int begin, int end)
           
 java.util.List findByUuid(java.lang.String uuid, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
 java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
 IGImage remove(IGImage igImage)
           
 IGImage remove(long imageId)
           
 void removeAll()
           
 void removeByFolderId(long folderId)
           
 void removeByLargeImageId(long largeImageId)
           
 void removeBySmallImageId(long smallImageId)
           
 void removeByUuid(java.lang.String uuid)
           
 IGImage update(IGImage igImage)
           
 IGImage update(IGImage igImage, boolean merge)
           
 IGImage updateImpl(IGImage igImage, boolean merge)
           
 

Method Detail

create

public IGImage create(long imageId)

remove

public IGImage remove(long imageId)
               throws com.liferay.portal.SystemException,
                      NoSuchImageException
Throws:
com.liferay.portal.SystemException
NoSuchImageException

remove

public IGImage remove(IGImage igImage)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public IGImage update(IGImage igImage)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public IGImage update(IGImage igImage,
                      boolean merge)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateImpl

public IGImage updateImpl(IGImage igImage,
                          boolean merge)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

public IGImage findByPrimaryKey(long imageId)
                         throws com.liferay.portal.SystemException,
                                NoSuchImageException
Throws:
com.liferay.portal.SystemException
NoSuchImageException

fetchByPrimaryKey

public IGImage fetchByPrimaryKey(long imageId)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUuid

public java.util.List findByUuid(java.lang.String uuid)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUuid

public java.util.List findByUuid(java.lang.String uuid,
                                 int begin,
                                 int end)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUuid

public java.util.List findByUuid(java.lang.String uuid,
                                 int begin,
                                 int end,
                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUuid_First

public IGImage findByUuid_First(java.lang.String uuid,
                                com.liferay.portal.kernel.util.OrderByComparator obc)
                         throws com.liferay.portal.SystemException,
                                NoSuchImageException
Throws:
com.liferay.portal.SystemException
NoSuchImageException

findByUuid_Last

public IGImage findByUuid_Last(java.lang.String uuid,
                               com.liferay.portal.kernel.util.OrderByComparator obc)
                        throws com.liferay.portal.SystemException,
                               NoSuchImageException
Throws:
com.liferay.portal.SystemException
NoSuchImageException

findByUuid_PrevAndNext

public IGImage[] findByUuid_PrevAndNext(long imageId,
                                        java.lang.String uuid,
                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                 throws com.liferay.portal.SystemException,
                                        NoSuchImageException
Throws:
com.liferay.portal.SystemException
NoSuchImageException

findByFolderId

public java.util.List findByFolderId(long folderId)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByFolderId

public java.util.List findByFolderId(long folderId,
                                     int begin,
                                     int end)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByFolderId

public java.util.List findByFolderId(long folderId,
                                     int begin,
                                     int end,
                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByFolderId_First

public IGImage findByFolderId_First(long folderId,
                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                             throws com.liferay.portal.SystemException,
                                    NoSuchImageException
Throws:
com.liferay.portal.SystemException
NoSuchImageException

findByFolderId_Last

public IGImage findByFolderId_Last(long folderId,
                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                            throws com.liferay.portal.SystemException,
                                   NoSuchImageException
Throws:
com.liferay.portal.SystemException
NoSuchImageException

findByFolderId_PrevAndNext

public IGImage[] findByFolderId_PrevAndNext(long imageId,
                                            long folderId,
                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                                     throws com.liferay.portal.SystemException,
                                            NoSuchImageException
Throws:
com.liferay.portal.SystemException
NoSuchImageException

findBySmallImageId

public IGImage findBySmallImageId(long smallImageId)
                           throws com.liferay.portal.SystemException,
                                  NoSuchImageException
Throws:
com.liferay.portal.SystemException
NoSuchImageException

fetchBySmallImageId

public IGImage fetchBySmallImageId(long smallImageId)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByLargeImageId

public IGImage findByLargeImageId(long largeImageId)
                           throws com.liferay.portal.SystemException,
                                  NoSuchImageException
Throws:
com.liferay.portal.SystemException
NoSuchImageException

fetchByLargeImageId

public IGImage fetchByLargeImageId(long largeImageId)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                           int begin,
                                           int end)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public java.util.List findAll()
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public java.util.List findAll(int begin,
                              int end)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public java.util.List findAll(int begin,
                              int end,
                              com.liferay.portal.kernel.util.OrderByComparator obc)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByUuid

public void removeByUuid(java.lang.String uuid)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByFolderId

public void removeByFolderId(long folderId)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeBySmallImageId

public void removeBySmallImageId(long smallImageId)
                          throws com.liferay.portal.SystemException,
                                 NoSuchImageException
Throws:
com.liferay.portal.SystemException
NoSuchImageException

removeByLargeImageId

public void removeByLargeImageId(long largeImageId)
                          throws com.liferay.portal.SystemException,
                                 NoSuchImageException
Throws:
com.liferay.portal.SystemException
NoSuchImageException

removeAll

public void removeAll()
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByUuid

public int countByUuid(java.lang.String uuid)
                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByFolderId

public int countByFolderId(long folderId)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countBySmallImageId

public int countBySmallImageId(long smallImageId)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByLargeImageId

public int countByLargeImageId(long largeImageId)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

public int countAll()
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException