Liferay 6.0.5

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

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<SCProductScreenshot>
      extended by com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<SCProductScreenshot>, SCProductScreenshotPersistence

public class SCProductScreenshotPersistenceImpl
extends BasePersistenceImpl<SCProductScreenshot>
implements SCProductScreenshotPersistence

The persistence implementation for the s c product screenshot service.

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

Caching information and settings can be found in portal.properties

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

Field Summary
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_FULLIMAGEID
           
static FinderPath FINDER_PATH_COUNT_BY_P_P
           
static FinderPath FINDER_PATH_COUNT_BY_PRODUCTENTRYID
           
static FinderPath FINDER_PATH_COUNT_BY_THUMBNAILID
           
static FinderPath FINDER_PATH_FETCH_BY_FULLIMAGEID
           
static FinderPath FINDER_PATH_FETCH_BY_P_P
           
static FinderPath FINDER_PATH_FETCH_BY_THUMBNAILID
           
static FinderPath FINDER_PATH_FIND_ALL
           
static FinderPath FINDER_PATH_FIND_BY_PRODUCTENTRYID
           
protected  ImagePersistence imagePersistence
           
protected  ResourcePersistence resourcePersistence
           
protected  SCFrameworkVersionPersistence scFrameworkVersionPersistence
           
protected  SCLicensePersistence scLicensePersistence
           
protected  SCProductEntryPersistence scProductEntryPersistence
           
protected  SCProductScreenshotPersistence scProductScreenshotPersistence
           
protected  SCProductVersionPersistence scProductVersionPersistence
           
protected  UserPersistence userPersistence
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
SCProductScreenshotPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the s c product screenshot persistence.
 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.
 void clearCache()
          Clears the cache for all s c product screenshots.
 void clearCache(SCProductScreenshot scProductScreenshot)
          Clears the cache for the s c product screenshot.
 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 fetchByPrimaryKey(Serializable primaryKey)
          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 findByPrimaryKey(Serializable primaryKey)
          Finds the s c product screenshot with the primary key or throws a NoSuchModelException 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.
protected  SCProductScreenshot getByProductEntryId_PrevAndNext(Session session, SCProductScreenshot scProductScreenshot, long productEntryId, OrderByComparator orderByComparator, boolean previous)
           
 SCProductScreenshot remove(long productScreenshotId)
          Removes the s c product screenshot with the primary key from the database.
 SCProductScreenshot remove(Serializable primaryKey)
          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.
protected  SCProductScreenshot removeImpl(SCProductScreenshot scProductScreenshot)
          Removes the model instance from the database.
protected  SCProductScreenshot toUnwrappedModel(SCProductScreenshot scProductScreenshot)
           
 SCProductScreenshot updateImpl(SCProductScreenshot scProductScreenshot, boolean merge)
          Updates the model instance in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST

public static final String FINDER_CLASS_NAME_LIST

FINDER_PATH_FIND_BY_PRODUCTENTRYID

public static final FinderPath FINDER_PATH_FIND_BY_PRODUCTENTRYID

FINDER_PATH_COUNT_BY_PRODUCTENTRYID

public static final FinderPath FINDER_PATH_COUNT_BY_PRODUCTENTRYID

FINDER_PATH_FETCH_BY_THUMBNAILID

public static final FinderPath FINDER_PATH_FETCH_BY_THUMBNAILID

FINDER_PATH_COUNT_BY_THUMBNAILID

public static final FinderPath FINDER_PATH_COUNT_BY_THUMBNAILID

FINDER_PATH_FETCH_BY_FULLIMAGEID

public static final FinderPath FINDER_PATH_FETCH_BY_FULLIMAGEID

FINDER_PATH_COUNT_BY_FULLIMAGEID

public static final FinderPath FINDER_PATH_COUNT_BY_FULLIMAGEID

FINDER_PATH_FETCH_BY_P_P

public static final FinderPath FINDER_PATH_FETCH_BY_P_P

FINDER_PATH_COUNT_BY_P_P

public static final FinderPath FINDER_PATH_COUNT_BY_P_P

FINDER_PATH_FIND_ALL

public static final FinderPath FINDER_PATH_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

scLicensePersistence

@BeanReference(type=SCLicensePersistence.class)
protected SCLicensePersistence scLicensePersistence

scFrameworkVersionPersistence

@BeanReference(type=SCFrameworkVersionPersistence.class)
protected SCFrameworkVersionPersistence scFrameworkVersionPersistence

scProductEntryPersistence

@BeanReference(type=SCProductEntryPersistence.class)
protected SCProductEntryPersistence scProductEntryPersistence

scProductScreenshotPersistence

@BeanReference(type=SCProductScreenshotPersistence.class)
protected SCProductScreenshotPersistence scProductScreenshotPersistence

scProductVersionPersistence

@BeanReference(type=SCProductVersionPersistence.class)
protected SCProductVersionPersistence scProductVersionPersistence

imagePersistence

@BeanReference(type=ImagePersistence.class)
protected ImagePersistence imagePersistence

resourcePersistence

@BeanReference(type=ResourcePersistence.class)
protected ResourcePersistence resourcePersistence

userPersistence

@BeanReference(type=UserPersistence.class)
protected UserPersistence userPersistence
Constructor Detail

SCProductScreenshotPersistenceImpl

public SCProductScreenshotPersistenceImpl()
Method Detail

cacheResult

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

Specified by:
cacheResult in interface SCProductScreenshotPersistence
Parameters:
scProductScreenshot - the s c product screenshot to cache

cacheResult

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

Specified by:
cacheResult in interface SCProductScreenshotPersistence
Parameters:
scProductScreenshots - the s c product screenshots to cache

clearCache

public void clearCache()
Clears the cache for all s c product screenshots.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<SCProductScreenshot>
Overrides:
clearCache in class BasePersistenceImpl<SCProductScreenshot>

clearCache

public void clearCache(SCProductScreenshot scProductScreenshot)
Clears the cache for the s c product screenshot.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<SCProductScreenshot>
Overrides:
clearCache in class BasePersistenceImpl<SCProductScreenshot>
Parameters:
scProductScreenshot - the instance of this model to clear the cache for

create

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

Specified by:
create in interface SCProductScreenshotPersistence
Parameters:
productScreenshotId - the primary key for the new s c product screenshot
Returns:
the new s c product screenshot

remove

public SCProductScreenshot remove(Serializable primaryKey)
                           throws NoSuchModelException,
                                  SystemException
Removes the s c product screenshot with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<SCProductScreenshot>
Overrides:
remove in class BasePersistenceImpl<SCProductScreenshot>
Parameters:
primaryKey - the primary key of the s c product screenshot to remove
Returns:
the s c product screenshot that was removed
Throws:
NoSuchModelException - if a s c product screenshot with the primary key could not be found
SystemException - if a system exception occurred

remove

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

Specified by:
remove in interface SCProductScreenshotPersistence
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

removeImpl

protected SCProductScreenshot removeImpl(SCProductScreenshot scProductScreenshot)
                                  throws SystemException
Description copied from class: BasePersistenceImpl
Removes the model instance from the database. BasePersistenceImpl.update(BaseModel, boolean) depends on this method to implement the remove operation; it only notifies the model listeners.

Overrides:
removeImpl in class BasePersistenceImpl<SCProductScreenshot>
Parameters:
scProductScreenshot - the model instance to remove
Returns:
the model instance that was removed
Throws:
SystemException - if a system exception occurred

updateImpl

public SCProductScreenshot updateImpl(SCProductScreenshot scProductScreenshot,
                                      boolean merge)
                               throws SystemException
Description copied from class: BasePersistenceImpl
Updates the model instance in the database or adds it if it does not yet exist. BasePersistenceImpl.remove(BaseModel) depends on this method to implement the update operation; it only notifies the model listeners.

Specified by:
updateImpl in interface SCProductScreenshotPersistence
Overrides:
updateImpl in class BasePersistenceImpl<SCProductScreenshot>
Parameters:
scProductScreenshot - the model instance to update
merge - whether to merge the model instance with the current session. See BatchSession.update( com.liferay.portal.kernel.dao.orm.Session, BaseModel, boolean) for an explanation.
Returns:
the model instance that was updated
Throws:
SystemException - if a system exception occurred

toUnwrappedModel

protected SCProductScreenshot toUnwrappedModel(SCProductScreenshot scProductScreenshot)

findByPrimaryKey

public SCProductScreenshot findByPrimaryKey(Serializable primaryKey)
                                     throws NoSuchModelException,
                                            SystemException
Finds the s c product screenshot with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<SCProductScreenshot>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<SCProductScreenshot>
Parameters:
primaryKey - the primary key of the s c product screenshot to find
Returns:
the s c product screenshot
Throws:
NoSuchModelException - if a s c product screenshot with the primary key could not be found
SystemException - if a system exception occurred

findByPrimaryKey

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

Specified by:
findByPrimaryKey in interface SCProductScreenshotPersistence
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

public SCProductScreenshot fetchByPrimaryKey(Serializable primaryKey)
                                      throws SystemException
Finds the s c product screenshot with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<SCProductScreenshot>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<SCProductScreenshot>
Parameters:
primaryKey - 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

fetchByPrimaryKey

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

Specified by:
fetchByPrimaryKey in interface SCProductScreenshotPersistence
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

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

Specified by:
findByProductEntryId in interface SCProductScreenshotPersistence
Parameters:
productEntryId - the product entry id to search with
Returns:
the matching s c product screenshots
Throws:
SystemException - if a system exception occurred

findByProductEntryId

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

Specified by:
findByProductEntryId in interface SCProductScreenshotPersistence
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

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

Specified by:
findByProductEntryId in interface SCProductScreenshotPersistence
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

public SCProductScreenshot findByProductEntryId_First(long productEntryId,
                                                      OrderByComparator orderByComparator)
                                               throws NoSuchProductScreenshotException,
                                                      SystemException
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.

Specified by:
findByProductEntryId_First in interface SCProductScreenshotPersistence
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

public SCProductScreenshot findByProductEntryId_Last(long productEntryId,
                                                     OrderByComparator orderByComparator)
                                              throws NoSuchProductScreenshotException,
                                                     SystemException
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.

Specified by:
findByProductEntryId_Last in interface SCProductScreenshotPersistence
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

public SCProductScreenshot[] findByProductEntryId_PrevAndNext(long productScreenshotId,
                                                              long productEntryId,
                                                              OrderByComparator orderByComparator)
                                                       throws NoSuchProductScreenshotException,
                                                              SystemException
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.

Specified by:
findByProductEntryId_PrevAndNext in interface SCProductScreenshotPersistence
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

getByProductEntryId_PrevAndNext

protected SCProductScreenshot getByProductEntryId_PrevAndNext(Session session,
                                                              SCProductScreenshot scProductScreenshot,
                                                              long productEntryId,
                                                              OrderByComparator orderByComparator,
                                                              boolean previous)

findByThumbnailId

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

Specified by:
findByThumbnailId in interface SCProductScreenshotPersistence
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

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

Specified by:
fetchByThumbnailId in interface SCProductScreenshotPersistence
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

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

Specified by:
fetchByThumbnailId in interface SCProductScreenshotPersistence
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

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

Specified by:
findByFullImageId in interface SCProductScreenshotPersistence
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

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

Specified by:
fetchByFullImageId in interface SCProductScreenshotPersistence
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

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

Specified by:
fetchByFullImageId in interface SCProductScreenshotPersistence
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

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

Specified by:
findByP_P in interface SCProductScreenshotPersistence
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

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

Specified by:
fetchByP_P in interface SCProductScreenshotPersistence
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

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

Specified by:
fetchByP_P in interface SCProductScreenshotPersistence
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

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

Specified by:
findAll in interface SCProductScreenshotPersistence
Returns:
the s c product screenshots
Throws:
SystemException - if a system exception occurred

findAll

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

Specified by:
findAll in interface SCProductScreenshotPersistence
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

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

Specified by:
findAll in interface SCProductScreenshotPersistence
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

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

Specified by:
removeByProductEntryId in interface SCProductScreenshotPersistence
Parameters:
productEntryId - the product entry id to search with
Throws:
SystemException - if a system exception occurred

removeByThumbnailId

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

Specified by:
removeByThumbnailId in interface SCProductScreenshotPersistence
Parameters:
thumbnailId - the thumbnail id to search with
Throws:
SystemException - if a system exception occurred
NoSuchProductScreenshotException

removeByFullImageId

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

Specified by:
removeByFullImageId in interface SCProductScreenshotPersistence
Parameters:
fullImageId - the full image id to search with
Throws:
SystemException - if a system exception occurred
NoSuchProductScreenshotException

removeByP_P

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

Specified by:
removeByP_P in interface SCProductScreenshotPersistence
Parameters:
productEntryId - the product entry id to search with
priority - the priority to search with
Throws:
SystemException - if a system exception occurred
NoSuchProductScreenshotException

removeAll

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

Specified by:
removeAll in interface SCProductScreenshotPersistence
Throws:
SystemException - if a system exception occurred

countByProductEntryId

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

Specified by:
countByProductEntryId in interface SCProductScreenshotPersistence
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

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

Specified by:
countByThumbnailId in interface SCProductScreenshotPersistence
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

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

Specified by:
countByFullImageId in interface SCProductScreenshotPersistence
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

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

Specified by:
countByP_P in interface SCProductScreenshotPersistence
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

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

Specified by:
countAll in interface SCProductScreenshotPersistence
Returns:
the number of s c product screenshots
Throws:
SystemException - if a system exception occurred

afterPropertiesSet

public void afterPropertiesSet()
Initializes the s c product screenshot persistence.


Liferay 6.0.5