Liferay 7.0-ce-a3

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

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

@ProviderType
public class SCProductScreenshotUtil
extends Object

The persistence utility for the s c product screenshot service. This utility wraps com.liferay.portlet.softwarecatalog.service.persistence.impl.SCProductScreenshotPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Caching information and settings can be found in portal.properties

See Also:
SCProductScreenshotPersistence, com.liferay.portlet.softwarecatalog.service.persistence.impl.SCProductScreenshotPersistenceImpl

Constructor Summary
SCProductScreenshotUtil()
           
 
Method Summary
static void cacheResult(List<SCProductScreenshot> scProductScreenshots)
          Caches the s c product screenshots in the entity cache if it is enabled.
static void cacheResult(SCProductScreenshot scProductScreenshot)
          Caches the s c product screenshot in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(SCProductScreenshot scProductScreenshot)
           
static int countAll()
          Returns the number of s c product screenshots.
static int countByFullImageId(long fullImageId)
          Returns the number of s c product screenshots where fullImageId = ?.
static int countByP_P(long productEntryId, int priority)
          Returns the number of s c product screenshots where productEntryId = ? and priority = ?.
static int countByProductEntryId(long productEntryId)
          Returns the number of s c product screenshots where productEntryId = ?.
static int countByThumbnailId(long thumbnailId)
          Returns the number of s c product screenshots where thumbnailId = ?.
static long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static SCProductScreenshot create(long productScreenshotId)
          Creates a new s c product screenshot with the primary key.
static SCProductScreenshot fetchByFullImageId(long fullImageId)
          Returns the s c product screenshot where fullImageId = ? or returns null if it could not be found.
static SCProductScreenshot fetchByFullImageId(long fullImageId, boolean retrieveFromCache)
          Returns the s c product screenshot where fullImageId = ? or returns null if it could not be found, optionally using the finder cache.
static SCProductScreenshot fetchByP_P(long productEntryId, int priority)
          Returns the s c product screenshot where productEntryId = ? and priority = ? or returns null if it could not be found.
static SCProductScreenshot fetchByP_P(long productEntryId, int priority, boolean retrieveFromCache)
          Returns the s c product screenshot where productEntryId = ? and priority = ? or returns null if it could not be found, optionally using the finder cache.
static SCProductScreenshot fetchByPrimaryKey(long productScreenshotId)
          Returns the s c product screenshot with the primary key or returns null if it could not be found.
static Map<Serializable,SCProductScreenshot> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
           
static SCProductScreenshot fetchByProductEntryId_First(long productEntryId, OrderByComparator<SCProductScreenshot> orderByComparator)
          Returns the first s c product screenshot in the ordered set where productEntryId = ?.
static SCProductScreenshot fetchByProductEntryId_Last(long productEntryId, OrderByComparator<SCProductScreenshot> orderByComparator)
          Returns the last s c product screenshot in the ordered set where productEntryId = ?.
static SCProductScreenshot fetchByThumbnailId(long thumbnailId)
          Returns the s c product screenshot where thumbnailId = ? or returns null if it could not be found.
static SCProductScreenshot fetchByThumbnailId(long thumbnailId, boolean retrieveFromCache)
          Returns the s c product screenshot where thumbnailId = ? or returns null if it could not be found, optionally using the finder cache.
static List<SCProductScreenshot> findAll()
          Returns all the s c product screenshots.
static List<SCProductScreenshot> findAll(int start, int end)
          Returns a range of all the s c product screenshots.
static List<SCProductScreenshot> findAll(int start, int end, OrderByComparator<SCProductScreenshot> orderByComparator)
          Returns an ordered range of all the s c product screenshots.
static List<SCProductScreenshot> findAll(int start, int end, OrderByComparator<SCProductScreenshot> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the s c product screenshots.
static SCProductScreenshot findByFullImageId(long fullImageId)
          Returns the s c product screenshot where fullImageId = ? or throws a NoSuchProductScreenshotException if it could not be found.
static SCProductScreenshot findByP_P(long productEntryId, int priority)
          Returns the s c product screenshot where productEntryId = ? and priority = ? or throws a NoSuchProductScreenshotException if it could not be found.
static SCProductScreenshot findByPrimaryKey(long productScreenshotId)
          Returns the s c product screenshot with the primary key or throws a NoSuchProductScreenshotException if it could not be found.
static SCProductScreenshot findByProductEntryId_First(long productEntryId, OrderByComparator<SCProductScreenshot> orderByComparator)
          Returns the first s c product screenshot in the ordered set where productEntryId = ?.
static SCProductScreenshot findByProductEntryId_Last(long productEntryId, OrderByComparator<SCProductScreenshot> orderByComparator)
          Returns the last s c product screenshot in the ordered set where productEntryId = ?.
static SCProductScreenshot[] findByProductEntryId_PrevAndNext(long productScreenshotId, long productEntryId, OrderByComparator<SCProductScreenshot> orderByComparator)
          Returns the s c product screenshots before and after the current s c product screenshot in the ordered set where productEntryId = ?.
static List<SCProductScreenshot> findByProductEntryId(long productEntryId)
          Returns all the s c product screenshots where productEntryId = ?.
static List<SCProductScreenshot> findByProductEntryId(long productEntryId, int start, int end)
          Returns a range of all the s c product screenshots where productEntryId = ?.
static List<SCProductScreenshot> findByProductEntryId(long productEntryId, int start, int end, OrderByComparator<SCProductScreenshot> orderByComparator)
          Returns an ordered range of all the s c product screenshots where productEntryId = ?.
static List<SCProductScreenshot> findByProductEntryId(long productEntryId, int start, int end, OrderByComparator<SCProductScreenshot> orderByComparator, boolean retrieveFromCache)
          Returns an ordered range of all the s c product screenshots where productEntryId = ?.
static SCProductScreenshot findByThumbnailId(long thumbnailId)
          Returns the s c product screenshot where thumbnailId = ? or throws a NoSuchProductScreenshotException if it could not be found.
static List<SCProductScreenshot> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<SCProductScreenshot> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<SCProductScreenshot> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<SCProductScreenshot> orderByComparator)
           
static SCProductScreenshotPersistence getPersistence()
           
static SCProductScreenshot remove(long productScreenshotId)
          Removes the s c product screenshot with the primary key from the database.
static void removeAll()
          Removes all the s c product screenshots from the database.
static SCProductScreenshot removeByFullImageId(long fullImageId)
          Removes the s c product screenshot where fullImageId = ? from the database.
static SCProductScreenshot removeByP_P(long productEntryId, int priority)
          Removes the s c product screenshot where productEntryId = ? and priority = ? from the database.
static void removeByProductEntryId(long productEntryId)
          Removes all the s c product screenshots where productEntryId = ? from the database.
static SCProductScreenshot removeByThumbnailId(long thumbnailId)
          Removes the s c product screenshot where thumbnailId = ? from the database.
 void setPersistence(SCProductScreenshotPersistence persistence)
          Deprecated. As of 6.2.0
static SCProductScreenshot update(SCProductScreenshot scProductScreenshot)
           
static SCProductScreenshot update(SCProductScreenshot scProductScreenshot, ServiceContext serviceContext)
           
static SCProductScreenshot updateImpl(SCProductScreenshot scProductScreenshot)
           
 
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

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(SCProductScreenshot scProductScreenshot)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<SCProductScreenshot> findWithDynamicQuery(DynamicQuery dynamicQuery)
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<SCProductScreenshot> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                             int start,
                                                             int end)
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<SCProductScreenshot> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                             int start,
                                                             int end,
                                                             OrderByComparator<SCProductScreenshot> orderByComparator)
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

update

public static SCProductScreenshot update(SCProductScreenshot scProductScreenshot)
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel)

update

public static SCProductScreenshot update(SCProductScreenshot scProductScreenshot,
                                         ServiceContext serviceContext)
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, ServiceContext)

findByProductEntryId

public static List<SCProductScreenshot> findByProductEntryId(long productEntryId)
Returns all the s c product screenshots where productEntryId = ?.

Parameters:
productEntryId - the product entry ID
Returns:
the matching s c product screenshots

findByProductEntryId

public static List<SCProductScreenshot> findByProductEntryId(long productEntryId,
                                                             int start,
                                                             int end)
Returns a range of all the s c product screenshots where productEntryId = ?.

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 SCProductScreenshotModelImpl. 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.

Parameters:
productEntryId - the product entry ID
start - the lower bound of the range of s c product screenshots
end - the upper bound of the range of s c product screenshots (not inclusive)
Returns:
the range of matching s c product screenshots

findByProductEntryId

public static List<SCProductScreenshot> findByProductEntryId(long productEntryId,
                                                             int start,
                                                             int end,
                                                             OrderByComparator<SCProductScreenshot> orderByComparator)
Returns an ordered range of all the s c product screenshots where productEntryId = ?.

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 SCProductScreenshotModelImpl. 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.

Parameters:
productEntryId - the product entry ID
start - the lower bound of the range of s c product screenshots
end - the upper bound of the range of s c product screenshots (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching s c product screenshots

findByProductEntryId

public static List<SCProductScreenshot> findByProductEntryId(long productEntryId,
                                                             int start,
                                                             int end,
                                                             OrderByComparator<SCProductScreenshot> orderByComparator,
                                                             boolean retrieveFromCache)
Returns an ordered range of all the s c product screenshots where productEntryId = ?.

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 SCProductScreenshotModelImpl. 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.

Parameters:
productEntryId - the product entry ID
start - the lower bound of the range of s c product screenshots
end - the upper bound of the range of s c product screenshots (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of matching s c product screenshots

findByProductEntryId_First

public static SCProductScreenshot findByProductEntryId_First(long productEntryId,
                                                             OrderByComparator<SCProductScreenshot> orderByComparator)
                                                      throws NoSuchProductScreenshotException
Returns the first s c product screenshot in the ordered set where productEntryId = ?.

Parameters:
productEntryId - the product entry ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching s c product screenshot
Throws:
NoSuchProductScreenshotException - if a matching s c product screenshot could not be found

fetchByProductEntryId_First

public static SCProductScreenshot fetchByProductEntryId_First(long productEntryId,
                                                              OrderByComparator<SCProductScreenshot> orderByComparator)
Returns the first s c product screenshot in the ordered set where productEntryId = ?.

Parameters:
productEntryId - the product entry ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching s c product screenshot, or null if a matching s c product screenshot could not be found

findByProductEntryId_Last

public static SCProductScreenshot findByProductEntryId_Last(long productEntryId,
                                                            OrderByComparator<SCProductScreenshot> orderByComparator)
                                                     throws NoSuchProductScreenshotException
Returns the last s c product screenshot in the ordered set where productEntryId = ?.

Parameters:
productEntryId - the product entry ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching s c product screenshot
Throws:
NoSuchProductScreenshotException - if a matching s c product screenshot could not be found

fetchByProductEntryId_Last

public static SCProductScreenshot fetchByProductEntryId_Last(long productEntryId,
                                                             OrderByComparator<SCProductScreenshot> orderByComparator)
Returns the last s c product screenshot in the ordered set where productEntryId = ?.

Parameters:
productEntryId - the product entry ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching s c product screenshot, or null if a matching s c product screenshot could not be found

findByProductEntryId_PrevAndNext

public static SCProductScreenshot[] findByProductEntryId_PrevAndNext(long productScreenshotId,
                                                                     long productEntryId,
                                                                     OrderByComparator<SCProductScreenshot> orderByComparator)
                                                              throws NoSuchProductScreenshotException
Returns the s c product screenshots before and after the current s c product screenshot in the ordered set where productEntryId = ?.

Parameters:
productScreenshotId - the primary key of the current s c product screenshot
productEntryId - the product entry ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next s c product screenshot
Throws:
NoSuchProductScreenshotException - if a s c product screenshot with the primary key could not be found

removeByProductEntryId

public static void removeByProductEntryId(long productEntryId)
Removes all the s c product screenshots where productEntryId = ? from the database.

Parameters:
productEntryId - the product entry ID

countByProductEntryId

public static int countByProductEntryId(long productEntryId)
Returns the number of s c product screenshots where productEntryId = ?.

Parameters:
productEntryId - the product entry ID
Returns:
the number of matching s c product screenshots

findByThumbnailId

public static SCProductScreenshot findByThumbnailId(long thumbnailId)
                                             throws NoSuchProductScreenshotException
Returns the s c product screenshot where thumbnailId = ? or throws a NoSuchProductScreenshotException if it could not be found.

Parameters:
thumbnailId - the thumbnail ID
Returns:
the matching s c product screenshot
Throws:
NoSuchProductScreenshotException - if a matching s c product screenshot could not be found

fetchByThumbnailId

public static SCProductScreenshot fetchByThumbnailId(long thumbnailId)
Returns the s c product screenshot where thumbnailId = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
thumbnailId - the thumbnail ID
Returns:
the matching s c product screenshot, or null if a matching s c product screenshot could not be found

fetchByThumbnailId

public static SCProductScreenshot fetchByThumbnailId(long thumbnailId,
                                                     boolean retrieveFromCache)
Returns the s c product screenshot where thumbnailId = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
thumbnailId - the thumbnail ID
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching s c product screenshot, or null if a matching s c product screenshot could not be found

removeByThumbnailId

public static SCProductScreenshot removeByThumbnailId(long thumbnailId)
                                               throws NoSuchProductScreenshotException
Removes the s c product screenshot where thumbnailId = ? from the database.

Parameters:
thumbnailId - the thumbnail ID
Returns:
the s c product screenshot that was removed
Throws:
NoSuchProductScreenshotException

countByThumbnailId

public static int countByThumbnailId(long thumbnailId)
Returns the number of s c product screenshots where thumbnailId = ?.

Parameters:
thumbnailId - the thumbnail ID
Returns:
the number of matching s c product screenshots

findByFullImageId

public static SCProductScreenshot findByFullImageId(long fullImageId)
                                             throws NoSuchProductScreenshotException
Returns the s c product screenshot where fullImageId = ? or throws a NoSuchProductScreenshotException if it could not be found.

Parameters:
fullImageId - the full image ID
Returns:
the matching s c product screenshot
Throws:
NoSuchProductScreenshotException - if a matching s c product screenshot could not be found

fetchByFullImageId

public static SCProductScreenshot fetchByFullImageId(long fullImageId)
Returns the s c product screenshot where fullImageId = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
fullImageId - the full image ID
Returns:
the matching s c product screenshot, or null if a matching s c product screenshot could not be found

fetchByFullImageId

public static SCProductScreenshot fetchByFullImageId(long fullImageId,
                                                     boolean retrieveFromCache)
Returns the s c product screenshot where fullImageId = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
fullImageId - the full image ID
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching s c product screenshot, or null if a matching s c product screenshot could not be found

removeByFullImageId

public static SCProductScreenshot removeByFullImageId(long fullImageId)
                                               throws NoSuchProductScreenshotException
Removes the s c product screenshot where fullImageId = ? from the database.

Parameters:
fullImageId - the full image ID
Returns:
the s c product screenshot that was removed
Throws:
NoSuchProductScreenshotException

countByFullImageId

public static int countByFullImageId(long fullImageId)
Returns the number of s c product screenshots where fullImageId = ?.

Parameters:
fullImageId - the full image ID
Returns:
the number of matching s c product screenshots

findByP_P

public static SCProductScreenshot findByP_P(long productEntryId,
                                            int priority)
                                     throws NoSuchProductScreenshotException
Returns the s c product screenshot where productEntryId = ? and priority = ? or throws a NoSuchProductScreenshotException if it could not be found.

Parameters:
productEntryId - the product entry ID
priority - the priority
Returns:
the matching s c product screenshot
Throws:
NoSuchProductScreenshotException - if a matching s c product screenshot could not be found

fetchByP_P

public static SCProductScreenshot fetchByP_P(long productEntryId,
                                             int priority)
Returns the s c product screenshot where productEntryId = ? and priority = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
productEntryId - the product entry ID
priority - the priority
Returns:
the matching s c product screenshot, or null if a matching s c product screenshot could not be found

fetchByP_P

public static SCProductScreenshot fetchByP_P(long productEntryId,
                                             int priority,
                                             boolean retrieveFromCache)
Returns the s c product screenshot where productEntryId = ? and priority = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
productEntryId - the product entry ID
priority - the priority
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the matching s c product screenshot, or null if a matching s c product screenshot could not be found

removeByP_P

public static SCProductScreenshot removeByP_P(long productEntryId,
                                              int priority)
                                       throws NoSuchProductScreenshotException
Removes the s c product screenshot where productEntryId = ? and priority = ? from the database.

Parameters:
productEntryId - the product entry ID
priority - the priority
Returns:
the s c product screenshot that was removed
Throws:
NoSuchProductScreenshotException

countByP_P

public static int countByP_P(long productEntryId,
                             int priority)
Returns the number of s c product screenshots where productEntryId = ? and priority = ?.

Parameters:
productEntryId - the product entry ID
priority - the priority
Returns:
the number of matching s c product screenshots

cacheResult

public static void cacheResult(SCProductScreenshot scProductScreenshot)
Caches the s c product screenshot in the entity cache if it is enabled.

Parameters:
scProductScreenshot - the s c product screenshot

cacheResult

public static void cacheResult(List<SCProductScreenshot> scProductScreenshots)
Caches the s c product screenshots in the entity cache if it is enabled.

Parameters:
scProductScreenshots - the s c product screenshots

create

public static SCProductScreenshot create(long productScreenshotId)
Creates a new s c product screenshot with the primary key. Does not add the s c product screenshot to the database.

Parameters:
productScreenshotId - the primary key for the new s c product screenshot
Returns:
the new s c product screenshot

remove

public static SCProductScreenshot remove(long productScreenshotId)
                                  throws NoSuchProductScreenshotException
Removes the s c product screenshot with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
productScreenshotId - the primary key of the s c product screenshot
Returns:
the s c product screenshot that was removed
Throws:
NoSuchProductScreenshotException - if a s c product screenshot with the primary key could not be found

updateImpl

public static SCProductScreenshot updateImpl(SCProductScreenshot scProductScreenshot)

findByPrimaryKey

public static SCProductScreenshot findByPrimaryKey(long productScreenshotId)
                                            throws NoSuchProductScreenshotException
Returns the s c product screenshot with the primary key or throws a NoSuchProductScreenshotException if it could not be found.

Parameters:
productScreenshotId - the primary key of the s c product screenshot
Returns:
the s c product screenshot
Throws:
NoSuchProductScreenshotException - if a s c product screenshot with the primary key could not be found

fetchByPrimaryKey

public static SCProductScreenshot fetchByPrimaryKey(long productScreenshotId)
Returns the s c product screenshot with the primary key or returns null if it could not be found.

Parameters:
productScreenshotId - the primary key of the s c product screenshot
Returns:
the s c product screenshot, or null if a s c product screenshot with the primary key could not be found

fetchByPrimaryKeys

public static Map<Serializable,SCProductScreenshot> fetchByPrimaryKeys(Set<Serializable> primaryKeys)

findAll

public static List<SCProductScreenshot> findAll()
Returns all the s c product screenshots.

Returns:
the s c product screenshots

findAll

public static List<SCProductScreenshot> findAll(int start,
                                                int end)
Returns a range of all the s c product screenshots.

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 SCProductScreenshotModelImpl. 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.

Parameters:
start - the lower bound of the range of s c product screenshots
end - the upper bound of the range of s c product screenshots (not inclusive)
Returns:
the range of s c product screenshots

findAll

public static List<SCProductScreenshot> findAll(int start,
                                                int end,
                                                OrderByComparator<SCProductScreenshot> orderByComparator)
Returns an ordered range of all the s c product screenshots.

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 SCProductScreenshotModelImpl. 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.

Parameters:
start - the lower bound of the range of s c product screenshots
end - the upper bound of the range of s c product screenshots (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of s c product screenshots

findAll

public static List<SCProductScreenshot> findAll(int start,
                                                int end,
                                                OrderByComparator<SCProductScreenshot> orderByComparator,
                                                boolean retrieveFromCache)
Returns an ordered range of all the s c product screenshots.

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 SCProductScreenshotModelImpl. 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.

Parameters:
start - the lower bound of the range of s c product screenshots
end - the upper bound of the range of s c product screenshots (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
retrieveFromCache - whether to retrieve from the finder cache
Returns:
the ordered range of s c product screenshots

removeAll

public static void removeAll()
Removes all the s c product screenshots from the database.


countAll

public static int countAll()
Returns the number of s c product screenshots.

Returns:
the number of s c product screenshots

getPersistence

public static SCProductScreenshotPersistence getPersistence()

setPersistence

@Deprecated
public void setPersistence(SCProductScreenshotPersistence persistence)
Deprecated. As of 6.2.0


Liferay 7.0-ce-a3