com.liferay.portlet.softwarecatalog.service.persistence
Class SCProductScreenshotUtil

java.lang.Object
  extended by com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotUtil

public class SCProductScreenshotUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
SCProductScreenshotUtil()
           
 
Method Summary
static int countAll()
           
static int countByFullImageId(long fullImageId)
           
static int countByP_P(long productEntryId, int priority)
           
static int countByProductEntryId(long productEntryId)
           
static int countByThumbnailId(long thumbnailId)
           
static SCProductScreenshot create(long productScreenshotId)
           
static SCProductScreenshot fetchByFullImageId(long fullImageId)
           
static SCProductScreenshot fetchByP_P(long productEntryId, int priority)
           
static SCProductScreenshot fetchByPrimaryKey(long productScreenshotId)
           
static SCProductScreenshot fetchByThumbnailId(long thumbnailId)
           
static java.util.List<SCProductScreenshot> findAll()
           
static java.util.List<SCProductScreenshot> findAll(int start, int end)
           
static java.util.List<SCProductScreenshot> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static SCProductScreenshot findByFullImageId(long fullImageId)
           
static SCProductScreenshot findByP_P(long productEntryId, int priority)
           
static SCProductScreenshot findByPrimaryKey(long productScreenshotId)
           
static SCProductScreenshot findByProductEntryId_First(long productEntryId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static SCProductScreenshot findByProductEntryId_Last(long productEntryId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static SCProductScreenshot[] findByProductEntryId_PrevAndNext(long productScreenshotId, long productEntryId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static java.util.List<SCProductScreenshot> findByProductEntryId(long productEntryId)
           
static java.util.List<SCProductScreenshot> findByProductEntryId(long productEntryId, int start, int end)
           
static java.util.List<SCProductScreenshot> findByProductEntryId(long productEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static SCProductScreenshot findByThumbnailId(long thumbnailId)
           
static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
static java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
static SCProductScreenshotPersistence getPersistence()
           
static SCProductScreenshot remove(long productScreenshotId)
           
static SCProductScreenshot remove(SCProductScreenshot scProductScreenshot)
           
static void removeAll()
           
static void removeByFullImageId(long fullImageId)
           
static void removeByP_P(long productEntryId, int priority)
           
static void removeByProductEntryId(long productEntryId)
           
static void removeByThumbnailId(long thumbnailId)
           
 void setPersistence(SCProductScreenshotPersistence persistence)
           
static SCProductScreenshot update(SCProductScreenshot scProductScreenshot)
          Deprecated. Use update(SCProductScreenshot scProductScreenshot, boolean merge).
static SCProductScreenshot update(SCProductScreenshot scProductScreenshot, boolean merge)
          Add, update, or merge, the entity.
static SCProductScreenshot updateImpl(SCProductScreenshot scProductScreenshot, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SCProductScreenshotUtil

public SCProductScreenshotUtil()
Method Detail

create

public static SCProductScreenshot create(long productScreenshotId)

remove

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

remove

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

update

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

Throws:
com.liferay.portal.SystemException

update

public static 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

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

findByPrimaryKey

public static SCProductScreenshot findByPrimaryKey(long productScreenshotId)
                                            throws com.liferay.portal.SystemException,
                                                   NoSuchProductScreenshotException
Throws:
com.liferay.portal.SystemException
NoSuchProductScreenshotException

fetchByPrimaryKey

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

findByProductEntryId

public static java.util.List<SCProductScreenshot> findByProductEntryId(long productEntryId)
                                                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByProductEntryId

public static java.util.List<SCProductScreenshot> findByProductEntryId(long productEntryId,
                                                                       int start,
                                                                       int end)
                                                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByProductEntryId

public static 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

public static 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

public static 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

public static 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

public static SCProductScreenshot findByThumbnailId(long thumbnailId)
                                             throws com.liferay.portal.SystemException,
                                                    NoSuchProductScreenshotException
Throws:
com.liferay.portal.SystemException
NoSuchProductScreenshotException

fetchByThumbnailId

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

findByFullImageId

public static SCProductScreenshot findByFullImageId(long fullImageId)
                                             throws com.liferay.portal.SystemException,
                                                    NoSuchProductScreenshotException
Throws:
com.liferay.portal.SystemException
NoSuchProductScreenshotException

fetchByFullImageId

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

findByP_P

public static SCProductScreenshot findByP_P(long productEntryId,
                                            int priority)
                                     throws com.liferay.portal.SystemException,
                                            NoSuchProductScreenshotException
Throws:
com.liferay.portal.SystemException
NoSuchProductScreenshotException

fetchByP_P

public static SCProductScreenshot fetchByP_P(long productEntryId,
                                             int priority)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public static 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

public static 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

public static java.util.List<SCProductScreenshot> findAll()
                                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List<SCProductScreenshot> findAll(int start,
                                                          int end)
                                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static 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

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

removeByThumbnailId

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

removeByFullImageId

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

removeByP_P

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

removeAll

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

countByProductEntryId

public static int countByProductEntryId(long productEntryId)
                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByThumbnailId

public static int countByThumbnailId(long thumbnailId)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByFullImageId

public static int countByFullImageId(long fullImageId)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByP_P

public static int countByP_P(long productEntryId,
                             int priority)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

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

getPersistence

public static SCProductScreenshotPersistence getPersistence()

setPersistence

public void setPersistence(SCProductScreenshotPersistence persistence)