Liferay 6.1.2-ce-ga3

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.

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 it is generated.

Field Summary
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
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_WITH_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_PRODUCTENTRYID
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_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, FINDER_ARGS_EMPTY, 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.
protected  void cacheUniqueFindersCache(SCProductScreenshot scProductScreenshot)
           
 void clearCache()
          Clears the cache for all s c product screenshots.
 void clearCache(List<SCProductScreenshot> scProductScreenshots)
          Clears the cache for a List instances of this model.
 void clearCache(SCProductScreenshot scProductScreenshot)
          Clears the cache for the s c product screenshot.
protected  void clearUniqueFindersCache(SCProductScreenshot scProductScreenshot)
           
 int countAll()
          Returns the number of s c product screenshots.
 int countByFullImageId(long fullImageId)
          Returns the number of s c product screenshots where fullImageId = ?.
 int countByP_P(long productEntryId, int priority)
          Returns the number of s c product screenshots where productEntryId = ? and priority = ?.
 int countByProductEntryId(long productEntryId)
          Returns the number of s c product screenshots where productEntryId = ?.
 int countByThumbnailId(long thumbnailId)
          Returns the number of s c product screenshots where thumbnailId = ?.
 SCProductScreenshot create(long productScreenshotId)
          Creates a new s c product screenshot with the primary key.
 void destroy()
           
 SCProductScreenshot fetchByFullImageId(long fullImageId)
          Returns the s c product screenshot where fullImageId = ? or returns null if it could not be found.
 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.
 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.
 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.
 SCProductScreenshot fetchByPrimaryKey(long productScreenshotId)
          Returns the s c product screenshot with the primary key or returns null if it could not be found.
 SCProductScreenshot fetchByPrimaryKey(Serializable primaryKey)
          Returns the s c product screenshot with the primary key or returns null if it could not be found.
 SCProductScreenshot fetchByProductEntryId_First(long productEntryId, OrderByComparator orderByComparator)
          Returns the first s c product screenshot in the ordered set where productEntryId = ?.
 SCProductScreenshot fetchByProductEntryId_Last(long productEntryId, OrderByComparator orderByComparator)
          Returns the last s c product screenshot in the ordered set where productEntryId = ?.
 SCProductScreenshot fetchByThumbnailId(long thumbnailId)
          Returns the s c product screenshot where thumbnailId = ? or returns null if it could not be found.
 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.
 List<SCProductScreenshot> findAll()
          Returns all the s c product screenshots.
 List<SCProductScreenshot> findAll(int start, int end)
          Returns a range of all the s c product screenshots.
 List<SCProductScreenshot> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the s c product screenshots.
 SCProductScreenshot findByFullImageId(long fullImageId)
          Returns the s c product screenshot where fullImageId = ? or throws a NoSuchProductScreenshotException if it could not be found.
 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.
 SCProductScreenshot findByPrimaryKey(long productScreenshotId)
          Returns the s c product screenshot with the primary key or throws a NoSuchProductScreenshotException if it could not be found.
 SCProductScreenshot findByPrimaryKey(Serializable primaryKey)
          Returns 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)
          Returns the first s c product screenshot in the ordered set where productEntryId = ?.
 SCProductScreenshot findByProductEntryId_Last(long productEntryId, OrderByComparator orderByComparator)
          Returns the last s c product screenshot in the ordered set where productEntryId = ?.
 SCProductScreenshot[] findByProductEntryId_PrevAndNext(long productScreenshotId, long productEntryId, OrderByComparator orderByComparator)
          Returns 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)
          Returns all the s c product screenshots where productEntryId = ?.
 List<SCProductScreenshot> findByProductEntryId(long productEntryId, int start, int end)
          Returns a range of all the s c product screenshots where productEntryId = ?.
 List<SCProductScreenshot> findByProductEntryId(long productEntryId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the s c product screenshots where productEntryId = ?.
 SCProductScreenshot findByThumbnailId(long thumbnailId)
          Returns 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.
 SCProductScreenshot removeByFullImageId(long fullImageId)
          Removes the s c product screenshot where fullImageId = ? from the database.
 SCProductScreenshot 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.
 SCProductScreenshot 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, getClassLoader, getDataSource, getDB, 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
closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_BY_PRODUCTENTRYID

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_PRODUCTENTRYID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PRODUCTENTRYID

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_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_WITH_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

scFrameworkVersionPersistence

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

scLicensePersistence

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

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

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

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

clearCache

public void clearCache(List<SCProductScreenshot> scProductScreenshots)
Description copied from interface: BasePersistence
Clears the cache for a List instances of this model.

The EntityCache and FinderCache are both cleared by this method.

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

cacheUniqueFindersCache

protected void cacheUniqueFindersCache(SCProductScreenshot scProductScreenshot)

clearUniqueFindersCache

protected void clearUniqueFindersCache(SCProductScreenshot scProductScreenshot)

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(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
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

remove

public SCProductScreenshot remove(Serializable primaryKey)
                           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 BasePersistence<SCProductScreenshot>
Overrides:
remove in class BasePersistenceImpl<SCProductScreenshot>
Parameters:
primaryKey - 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
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
Returns 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
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
Returns 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
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
Returns 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
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
Returns 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
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
Returns all the s c product screenshots where productEntryId = ?.

Specified by:
findByProductEntryId in interface SCProductScreenshotPersistence
Parameters:
productEntryId - the product entry ID
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
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.

Specified by:
findByProductEntryId in interface SCProductScreenshotPersistence
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
Throws:
SystemException - if a system exception occurred

findByProductEntryId

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

Specified by:
findByProductEntryId in interface SCProductScreenshotPersistence
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
Throws:
SystemException - if a system exception occurred

findByProductEntryId_First

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

Specified by:
findByProductEntryId_First in interface SCProductScreenshotPersistence
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
SystemException - if a system exception occurred

fetchByProductEntryId_First

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

Specified by:
fetchByProductEntryId_First in interface SCProductScreenshotPersistence
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
Throws:
SystemException - if a system exception occurred

findByProductEntryId_Last

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

Specified by:
findByProductEntryId_Last in interface SCProductScreenshotPersistence
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
SystemException - if a system exception occurred

fetchByProductEntryId_Last

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

Specified by:
fetchByProductEntryId_Last in interface SCProductScreenshotPersistence
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
Throws:
SystemException - if a system exception occurred

findByProductEntryId_PrevAndNext

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

Specified by:
findByProductEntryId_PrevAndNext in interface SCProductScreenshotPersistence
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
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
Returns 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
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
Returns 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
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
Returns 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
retrieveFromCache - whether to use the finder cache
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
Returns 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
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
Returns 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
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
Returns 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
retrieveFromCache - whether to use the finder cache
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
Returns 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
priority - the priority
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
Returns 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
priority - the priority
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
Returns 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
priority - the priority
retrieveFromCache - whether to use the finder cache
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
Returns 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
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.

Specified by:
findAll in interface SCProductScreenshotPersistence
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
Throws:
SystemException - if a system exception occurred

findAll

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

Specified by:
findAll in interface SCProductScreenshotPersistence
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
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
Throws:
SystemException - if a system exception occurred

removeByThumbnailId

public SCProductScreenshot 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
Returns:
the s c product screenshot that was removed
Throws:
SystemException - if a system exception occurred
NoSuchProductScreenshotException

removeByFullImageId

public SCProductScreenshot 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
Returns:
the s c product screenshot that was removed
Throws:
SystemException - if a system exception occurred
NoSuchProductScreenshotException

removeByP_P

public SCProductScreenshot 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
priority - the priority
Returns:
the s c product screenshot that was removed
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
Returns the number of s c product screenshots where productEntryId = ?.

Specified by:
countByProductEntryId in interface SCProductScreenshotPersistence
Parameters:
productEntryId - the product entry ID
Returns:
the number of matching s c product screenshots
Throws:
SystemException - if a system exception occurred

countByThumbnailId

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

Specified by:
countByThumbnailId in interface SCProductScreenshotPersistence
Parameters:
thumbnailId - the thumbnail ID
Returns:
the number of matching s c product screenshots
Throws:
SystemException - if a system exception occurred

countByFullImageId

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

Specified by:
countByFullImageId in interface SCProductScreenshotPersistence
Parameters:
fullImageId - the full image ID
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
Returns the number of s c product screenshots where productEntryId = ? and priority = ?.

Specified by:
countByP_P in interface SCProductScreenshotPersistence
Parameters:
productEntryId - the product entry ID
priority - the priority
Returns:
the number of matching s c product screenshots
Throws:
SystemException - if a system exception occurred

countAll

public int countAll()
             throws SystemException
Returns the number of 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.


destroy

public void destroy()

Liferay 6.1.2-ce-ga3