Liferay 6.0.5

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

All Superinterfaces:
BasePersistence<SCProductScreenshot>
All Known Implementing Classes:
SCProductScreenshotPersistenceImpl

public interface SCProductScreenshotPersistence
extends BasePersistence<SCProductScreenshot>

The persistence interface for the s c product screenshot service.

Never modify or reference this interface directly. Always use SCProductScreenshotUtil to access the s c product screenshot persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface.

Caching information and settings can be found in portal.properties

See Also:
SCProductScreenshotPersistenceImpl, SCProductScreenshotUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Method Summary
 void cacheResult(List<SCProductScreenshot> scProductScreenshots)
          Caches the s c product screenshots in the entity cache if it is enabled.
 void cacheResult(SCProductScreenshot scProductScreenshot)
          Caches the s c product screenshot in the entity cache if it is enabled.
 int countAll()
          Counts all the s c product screenshots.
 int countByFullImageId(long fullImageId)
          Counts all the s c product screenshots where fullImageId = ?.
 int countByP_P(long productEntryId, int priority)
          Counts all the s c product screenshots where productEntryId = ? and priority = ?.
 int countByProductEntryId(long productEntryId)
          Counts all the s c product screenshots where productEntryId = ?.
 int countByThumbnailId(long thumbnailId)
          Counts all the s c product screenshots where thumbnailId = ?.
 SCProductScreenshot create(long productScreenshotId)
          Creates a new s c product screenshot with the primary key.
 SCProductScreenshot fetchByFullImageId(long fullImageId)
          Finds the s c product screenshot where fullImageId = ? or returns null if it could not be found.
 SCProductScreenshot fetchByFullImageId(long fullImageId, boolean retrieveFromCache)
          Finds the s c product screenshot where fullImageId = ? or returns null if it could not be found, optionally using the finder cache.
 SCProductScreenshot fetchByP_P(long productEntryId, int priority)
          Finds the s c product screenshot where productEntryId = ? and priority = ? or returns null if it could not be found.
 SCProductScreenshot fetchByP_P(long productEntryId, int priority, boolean retrieveFromCache)
          Finds the s c product screenshot where productEntryId = ? and priority = ? or returns null if it could not be found, optionally using the finder cache.
 SCProductScreenshot fetchByPrimaryKey(long productScreenshotId)
          Finds the s c product screenshot with the primary key or returns null if it could not be found.
 SCProductScreenshot fetchByThumbnailId(long thumbnailId)
          Finds the s c product screenshot where thumbnailId = ? or returns null if it could not be found.
 SCProductScreenshot fetchByThumbnailId(long thumbnailId, boolean retrieveFromCache)
          Finds the s c product screenshot where thumbnailId = ? or returns null if it could not be found, optionally using the finder cache.
 List<SCProductScreenshot> findAll()
          Finds all the s c product screenshots.
 List<SCProductScreenshot> findAll(int start, int end)
          Finds a range of all the s c product screenshots.
 List<SCProductScreenshot> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the s c product screenshots.
 SCProductScreenshot findByFullImageId(long fullImageId)
          Finds the s c product screenshot where fullImageId = ? or throws a NoSuchProductScreenshotException if it could not be found.
 SCProductScreenshot findByP_P(long productEntryId, int priority)
          Finds the s c product screenshot where productEntryId = ? and priority = ? or throws a NoSuchProductScreenshotException if it could not be found.
 SCProductScreenshot findByPrimaryKey(long productScreenshotId)
          Finds the s c product screenshot with the primary key or throws a NoSuchProductScreenshotException if it could not be found.
 SCProductScreenshot findByProductEntryId_First(long productEntryId, OrderByComparator orderByComparator)
          Finds the first s c product screenshot in the ordered set where productEntryId = ?.
 SCProductScreenshot findByProductEntryId_Last(long productEntryId, OrderByComparator orderByComparator)
          Finds the last s c product screenshot in the ordered set where productEntryId = ?.
 SCProductScreenshot[] findByProductEntryId_PrevAndNext(long productScreenshotId, long productEntryId, OrderByComparator orderByComparator)
          Finds the s c product screenshots before and after the current s c product screenshot in the ordered set where productEntryId = ?.
 List<SCProductScreenshot> findByProductEntryId(long productEntryId)
          Finds all the s c product screenshots where productEntryId = ?.
 List<SCProductScreenshot> findByProductEntryId(long productEntryId, int start, int end)
          Finds a range of all the s c product screenshots where productEntryId = ?.
 List<SCProductScreenshot> findByProductEntryId(long productEntryId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the s c product screenshots where productEntryId = ?.
 SCProductScreenshot findByThumbnailId(long thumbnailId)
          Finds the s c product screenshot where thumbnailId = ? or throws a NoSuchProductScreenshotException if it could not be found.
 SCProductScreenshot remove(long productScreenshotId)
          Removes the s c product screenshot with the primary key from the database.
 void removeAll()
          Removes all the s c product screenshots from the database.
 void removeByFullImageId(long fullImageId)
          Removes the s c product screenshot where fullImageId = ? from the database.
 void removeByP_P(long productEntryId, int priority)
          Removes the s c product screenshot where productEntryId = ? and priority = ? from the database.
 void removeByProductEntryId(long productEntryId)
          Removes all the s c product screenshots where productEntryId = ? from the database.
 void removeByThumbnailId(long thumbnailId)
          Removes the s c product screenshot where thumbnailId = ? from the database.
 SCProductScreenshot updateImpl(SCProductScreenshot scProductScreenshot, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, remove, setDataSource, unregisterListener, update, update
 

Method Detail

cacheResult

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 to cache

cacheResult

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 to cache

create

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

SCProductScreenshot remove(long productScreenshotId)
                           throws SystemException,
                                  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 to remove
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
SystemException - if a system exception occurred

updateImpl

SCProductScreenshot updateImpl(SCProductScreenshot scProductScreenshot,
                               boolean merge)
                               throws SystemException
Throws:
SystemException

findByPrimaryKey

SCProductScreenshot findByPrimaryKey(long productScreenshotId)
                                     throws SystemException,
                                            NoSuchProductScreenshotException
Finds 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 to find
Returns:
the s c product screenshot
Throws:
NoSuchProductScreenshotException - if a s c product screenshot with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

SCProductScreenshot fetchByPrimaryKey(long productScreenshotId)
                                      throws SystemException
Finds 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 to find
Returns:
the s c product screenshot, or null if a s c product screenshot with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByProductEntryId

List<SCProductScreenshot> findByProductEntryId(long productEntryId)
                                               throws SystemException
Finds all the s c product screenshots where productEntryId = ?.

Parameters:
productEntryId - the product entry id to search with
Returns:
the matching s c product screenshots
Throws:
SystemException - if a system exception occurred

findByProductEntryId

List<SCProductScreenshot> findByProductEntryId(long productEntryId,
                                               int start,
                                               int end)
                                               throws SystemException
Finds 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.

Parameters:
productEntryId - the product entry id to search with
start - the lower bound of the range of s c product screenshots to return
end - the upper bound of the range of s c product screenshots to return (not inclusive)
Returns:
the range of matching s c product screenshots
Throws:
SystemException - if a system exception occurred

findByProductEntryId

List<SCProductScreenshot> findByProductEntryId(long productEntryId,
                                               int start,
                                               int end,
                                               OrderByComparator orderByComparator)
                                               throws SystemException
Finds 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.

Parameters:
productEntryId - the product entry id to search with
start - the lower bound of the range of s c product screenshots to return
end - the upper bound of the range of s c product screenshots to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching s c product screenshots
Throws:
SystemException - if a system exception occurred

findByProductEntryId_First

SCProductScreenshot findByProductEntryId_First(long productEntryId,
                                               OrderByComparator orderByComparator)
                                               throws SystemException,
                                                      NoSuchProductScreenshotException
Finds the first s c product screenshot in the ordered set 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.

Parameters:
productEntryId - the product entry id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching s c product screenshot
Throws:
NoSuchProductScreenshotException - if a matching s c product screenshot could not be found
SystemException - if a system exception occurred

findByProductEntryId_Last

SCProductScreenshot findByProductEntryId_Last(long productEntryId,
                                              OrderByComparator orderByComparator)
                                              throws SystemException,
                                                     NoSuchProductScreenshotException
Finds the last s c product screenshot in the ordered set 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.

Parameters:
productEntryId - the product entry id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching s c product screenshot
Throws:
NoSuchProductScreenshotException - if a matching s c product screenshot could not be found
SystemException - if a system exception occurred

findByProductEntryId_PrevAndNext

SCProductScreenshot[] findByProductEntryId_PrevAndNext(long productScreenshotId,
                                                       long productEntryId,
                                                       OrderByComparator orderByComparator)
                                                       throws SystemException,
                                                              NoSuchProductScreenshotException
Finds the s c product screenshots before and after the current s c product screenshot in the ordered set 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.

Parameters:
productScreenshotId - the primary key of the current s c product screenshot
productEntryId - the product entry id to search with
orderByComparator - the comparator to order the set by
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
SystemException - if a system exception occurred

findByThumbnailId

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

Parameters:
thumbnailId - the thumbnail id to search with
Returns:
the matching s c product screenshot
Throws:
NoSuchProductScreenshotException - if a matching s c product screenshot could not be found
SystemException - if a system exception occurred

fetchByThumbnailId

SCProductScreenshot fetchByThumbnailId(long thumbnailId)
                                       throws SystemException
Finds 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 to search with
Returns:
the matching s c product screenshot, or null if a matching s c product screenshot could not be found
Throws:
SystemException - if a system exception occurred

fetchByThumbnailId

SCProductScreenshot fetchByThumbnailId(long thumbnailId,
                                       boolean retrieveFromCache)
                                       throws SystemException
Finds 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 to search with
Returns:
the matching s c product screenshot, or null if a matching s c product screenshot could not be found
Throws:
SystemException - if a system exception occurred

findByFullImageId

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

Parameters:
fullImageId - the full image id to search with
Returns:
the matching s c product screenshot
Throws:
NoSuchProductScreenshotException - if a matching s c product screenshot could not be found
SystemException - if a system exception occurred

fetchByFullImageId

SCProductScreenshot fetchByFullImageId(long fullImageId)
                                       throws SystemException
Finds 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 to search with
Returns:
the matching s c product screenshot, or null if a matching s c product screenshot could not be found
Throws:
SystemException - if a system exception occurred

fetchByFullImageId

SCProductScreenshot fetchByFullImageId(long fullImageId,
                                       boolean retrieveFromCache)
                                       throws SystemException
Finds 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 to search with
Returns:
the matching s c product screenshot, or null if a matching s c product screenshot could not be found
Throws:
SystemException - if a system exception occurred

findByP_P

SCProductScreenshot findByP_P(long productEntryId,
                              int priority)
                              throws SystemException,
                                     NoSuchProductScreenshotException
Finds 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 to search with
priority - the priority to search with
Returns:
the matching s c product screenshot
Throws:
NoSuchProductScreenshotException - if a matching s c product screenshot could not be found
SystemException - if a system exception occurred

fetchByP_P

SCProductScreenshot fetchByP_P(long productEntryId,
                               int priority)
                               throws SystemException
Finds 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 to search with
priority - the priority to search with
Returns:
the matching s c product screenshot, or null if a matching s c product screenshot could not be found
Throws:
SystemException - if a system exception occurred

fetchByP_P

SCProductScreenshot fetchByP_P(long productEntryId,
                               int priority,
                               boolean retrieveFromCache)
                               throws SystemException
Finds 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 to search with
priority - the priority to search with
Returns:
the matching s c product screenshot, or null if a matching s c product screenshot could not be found
Throws:
SystemException - if a system exception occurred

findAll

List<SCProductScreenshot> findAll()
                                  throws SystemException
Finds all the s c product screenshots.

Returns:
the s c product screenshots
Throws:
SystemException - if a system exception occurred

findAll

List<SCProductScreenshot> findAll(int start,
                                  int end)
                                  throws SystemException
Finds 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.

Parameters:
start - the lower bound of the range of s c product screenshots to return
end - the upper bound of the range of s c product screenshots to return (not inclusive)
Returns:
the range of s c product screenshots
Throws:
SystemException - if a system exception occurred

findAll

List<SCProductScreenshot> findAll(int start,
                                  int end,
                                  OrderByComparator orderByComparator)
                                  throws SystemException
Finds 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.

Parameters:
start - the lower bound of the range of s c product screenshots to return
end - the upper bound of the range of s c product screenshots to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of s c product screenshots
Throws:
SystemException - if a system exception occurred

removeByProductEntryId

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

Parameters:
productEntryId - the product entry id to search with
Throws:
SystemException - if a system exception occurred

removeByThumbnailId

void removeByThumbnailId(long thumbnailId)
                         throws SystemException,
                                NoSuchProductScreenshotException
Removes the s c product screenshot where thumbnailId = ? from the database.

Parameters:
thumbnailId - the thumbnail id to search with
Throws:
SystemException - if a system exception occurred
NoSuchProductScreenshotException

removeByFullImageId

void removeByFullImageId(long fullImageId)
                         throws SystemException,
                                NoSuchProductScreenshotException
Removes the s c product screenshot where fullImageId = ? from the database.

Parameters:
fullImageId - the full image id to search with
Throws:
SystemException - if a system exception occurred
NoSuchProductScreenshotException

removeByP_P

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

Parameters:
productEntryId - the product entry id to search with
priority - the priority to search with
Throws:
SystemException - if a system exception occurred
NoSuchProductScreenshotException

removeAll

void removeAll()
               throws SystemException
Removes all the s c product screenshots from the database.

Throws:
SystemException - if a system exception occurred

countByProductEntryId

int countByProductEntryId(long productEntryId)
                          throws SystemException
Counts all the s c product screenshots where productEntryId = ?.

Parameters:
productEntryId - the product entry id to search with
Returns:
the number of matching s c product screenshots
Throws:
SystemException - if a system exception occurred

countByThumbnailId

int countByThumbnailId(long thumbnailId)
                       throws SystemException
Counts all the s c product screenshots where thumbnailId = ?.

Parameters:
thumbnailId - the thumbnail id to search with
Returns:
the number of matching s c product screenshots
Throws:
SystemException - if a system exception occurred

countByFullImageId

int countByFullImageId(long fullImageId)
                       throws SystemException
Counts all the s c product screenshots where fullImageId = ?.

Parameters:
fullImageId - the full image id to search with
Returns:
the number of matching s c product screenshots
Throws:
SystemException - if a system exception occurred

countByP_P

int countByP_P(long productEntryId,
               int priority)
               throws SystemException
Counts all the s c product screenshots where productEntryId = ? and priority = ?.

Parameters:
productEntryId - the product entry id to search with
priority - the priority to search with
Returns:
the number of matching s c product screenshots
Throws:
SystemException - if a system exception occurred

countAll

int countAll()
             throws SystemException
Counts all the s c product screenshots.

Returns:
the number of s c product screenshots
Throws:
SystemException - if a system exception occurred

Liferay 6.0.5