com.liferay.portlet.softwarecatalog.service.persistence
Interface SCProductScreenshotPersistence

All Superinterfaces:
BasePersistence

@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface SCProductScreenshotPersistence
extends BasePersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByFullImageId(long fullImageId)
           
 int countByP_P(long productEntryId, int priority)
           
 int countByProductEntryId(long productEntryId)
           
 int countByThumbnailId(long thumbnailId)
           
 SCProductScreenshot create(long productScreenshotId)
           
 SCProductScreenshot fetchByFullImageId(long fullImageId)
           
 SCProductScreenshot fetchByP_P(long productEntryId, int priority)
           
 SCProductScreenshot fetchByPrimaryKey(long productScreenshotId)
           
 SCProductScreenshot fetchByThumbnailId(long thumbnailId)
           
 java.util.List<SCProductScreenshot> findAll()
           
 java.util.List<SCProductScreenshot> findAll(int start, int end)
           
 java.util.List<SCProductScreenshot> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 SCProductScreenshot findByFullImageId(long fullImageId)
           
 SCProductScreenshot findByP_P(long productEntryId, int priority)
           
 SCProductScreenshot findByPrimaryKey(long productScreenshotId)
           
 SCProductScreenshot findByProductEntryId_First(long productEntryId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 SCProductScreenshot findByProductEntryId_Last(long productEntryId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 SCProductScreenshot[] findByProductEntryId_PrevAndNext(long productScreenshotId, long productEntryId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<SCProductScreenshot> findByProductEntryId(long productEntryId)
           
 java.util.List<SCProductScreenshot> findByProductEntryId(long productEntryId, int start, int end)
           
 java.util.List<SCProductScreenshot> findByProductEntryId(long productEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 SCProductScreenshot findByThumbnailId(long thumbnailId)
           
 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)
           
 SCProductScreenshot remove(long productScreenshotId)
           
 SCProductScreenshot remove(SCProductScreenshot scProductScreenshot)
           
 void removeAll()
           
 void removeByFullImageId(long fullImageId)
           
 void removeByP_P(long productEntryId, int priority)
           
 void removeByProductEntryId(long productEntryId)
           
 void removeByThumbnailId(long thumbnailId)
           
 SCProductScreenshot update(SCProductScreenshot scProductScreenshot)
          Deprecated. Use update(SCProductScreenshot scProductScreenshot, boolean merge).
 SCProductScreenshot update(SCProductScreenshot scProductScreenshot, boolean merge)
          Add, update, or merge, the entity.
 SCProductScreenshot updateImpl(SCProductScreenshot scProductScreenshot, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

Method Detail

create

SCProductScreenshot create(long productScreenshotId)

remove

SCProductScreenshot remove(long productScreenshotId)
                           throws com.liferay.portal.SystemException,
                                  NoSuchProductScreenshotException
Throws:
com.liferay.portal.SystemException
NoSuchProductScreenshotException

remove

SCProductScreenshot remove(SCProductScreenshot scProductScreenshot)
                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

SCProductScreenshot update(SCProductScreenshot scProductScreenshot)
                           throws com.liferay.portal.SystemException
Deprecated. Use update(SCProductScreenshot scProductScreenshot, boolean merge).

Throws:
com.liferay.portal.SystemException

update

SCProductScreenshot update(SCProductScreenshot scProductScreenshot,
                           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:
scProductScreenshot - the entity to add, update, or merge
merge - 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 scProductScreenshot 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

SCProductScreenshot updateImpl(SCProductScreenshot scProductScreenshot,
                               boolean merge)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

@Transactional(propagation=SUPPORTS,
               readOnly=true)
SCProductScreenshot findByPrimaryKey(long productScreenshotId)
                                     throws com.liferay.portal.SystemException,
                                            NoSuchProductScreenshotException
Throws:
com.liferay.portal.SystemException
NoSuchProductScreenshotException

fetchByPrimaryKey

SCProductScreenshot fetchByPrimaryKey(long productScreenshotId)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByProductEntryId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<SCProductScreenshot> findByProductEntryId(long productEntryId)
                                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByProductEntryId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<SCProductScreenshot> findByProductEntryId(long productEntryId,
                                                                       int start,
                                                                       int end)
                                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByProductEntryId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<SCProductScreenshot> findByProductEntryId(long productEntryId,
                                                                       int start,
                                                                       int end,
                                                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                                                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByProductEntryId_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
SCProductScreenshot findByProductEntryId_First(long productEntryId,
                                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                               throws com.liferay.portal.SystemException,
                                                      NoSuchProductScreenshotException
Throws:
com.liferay.portal.SystemException
NoSuchProductScreenshotException

findByProductEntryId_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
SCProductScreenshot findByProductEntryId_Last(long productEntryId,
                                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                                              throws com.liferay.portal.SystemException,
                                                     NoSuchProductScreenshotException
Throws:
com.liferay.portal.SystemException
NoSuchProductScreenshotException

findByProductEntryId_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
SCProductScreenshot[] findByProductEntryId_PrevAndNext(long productScreenshotId,
                                                                     long productEntryId,
                                                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                                                       throws com.liferay.portal.SystemException,
                                                              NoSuchProductScreenshotException
Throws:
com.liferay.portal.SystemException
NoSuchProductScreenshotException

findByThumbnailId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
SCProductScreenshot findByThumbnailId(long thumbnailId)
                                      throws com.liferay.portal.SystemException,
                                             NoSuchProductScreenshotException
Throws:
com.liferay.portal.SystemException
NoSuchProductScreenshotException

fetchByThumbnailId

SCProductScreenshot fetchByThumbnailId(long thumbnailId)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByFullImageId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
SCProductScreenshot findByFullImageId(long fullImageId)
                                      throws com.liferay.portal.SystemException,
                                             NoSuchProductScreenshotException
Throws:
com.liferay.portal.SystemException
NoSuchProductScreenshotException

fetchByFullImageId

SCProductScreenshot fetchByFullImageId(long fullImageId)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByP_P

@Transactional(propagation=SUPPORTS,
               readOnly=true)
SCProductScreenshot findByP_P(long productEntryId,
                                            int priority)
                              throws com.liferay.portal.SystemException,
                                     NoSuchProductScreenshotException
Throws:
com.liferay.portal.SystemException
NoSuchProductScreenshotException

fetchByP_P

SCProductScreenshot fetchByP_P(long productEntryId,
                               int priority)
                               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)
                                                      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<SCProductScreenshot> findAll()
                                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<SCProductScreenshot> findAll(int start,
                                                          int end)
                                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<SCProductScreenshot> findAll(int start,
                                                          int end,
                                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByProductEntryId

void removeByProductEntryId(long productEntryId)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByThumbnailId

void removeByThumbnailId(long thumbnailId)
                         throws com.liferay.portal.SystemException,
                                NoSuchProductScreenshotException
Throws:
com.liferay.portal.SystemException
NoSuchProductScreenshotException

removeByFullImageId

void removeByFullImageId(long fullImageId)
                         throws com.liferay.portal.SystemException,
                                NoSuchProductScreenshotException
Throws:
com.liferay.portal.SystemException
NoSuchProductScreenshotException

removeByP_P

void removeByP_P(long productEntryId,
                 int priority)
                 throws com.liferay.portal.SystemException,
                        NoSuchProductScreenshotException
Throws:
com.liferay.portal.SystemException
NoSuchProductScreenshotException

removeAll

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

countByProductEntryId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByProductEntryId(long productEntryId)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByThumbnailId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByThumbnailId(long thumbnailId)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByFullImageId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByFullImageId(long fullImageId)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByP_P

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByP_P(long productEntryId,
                             int priority)
               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