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

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

public class SCProductScreenshotPersistenceImpl
extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot>
implements com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence

The persistence implementation for the s c product screenshot service.

Caching information and settings can be found in portal.properties

Author:
Brian Wing Shun Chan
See Also:
SCProductScreenshotPersistence, SCProductScreenshotUtil
Generated:

Field Summary
static java.lang.String FINDER_CLASS_NAME_ENTITY
           
static java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static java.lang.String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_FULLIMAGEID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_P_P
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_PRODUCTENTRYID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_THUMBNAILID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_FULLIMAGEID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_P_P
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_THUMBNAILID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_PRODUCTENTRYID
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PRODUCTENTRYID
           
protected  com.liferay.portal.service.persistence.ImagePersistence imagePersistence
           
protected  com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence
           
protected  com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence scFrameworkVersionPersistence
           
protected  com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence scLicensePersistence
           
protected  com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence scProductEntryPersistence
           
protected  com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence scProductScreenshotPersistence
           
protected  com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence scProductVersionPersistence
           
protected  com.liferay.portal.service.persistence.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(java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> scProductScreenshots)
          Caches the s c product screenshots in the entity cache if it is enabled.
 void cacheResult(com.liferay.portlet.softwarecatalog.model.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(java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> scProductScreenshots)
           
 void clearCache(com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot)
          Clears the cache for the s c product screenshot.
protected  void clearUniqueFindersCache(com.liferay.portlet.softwarecatalog.model.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 = ?.
 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot create(long productScreenshotId)
          Creates a new s c product screenshot with the primary key.
 void destroy()
           
 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByFullImageId(long fullImageId)
          Returns the s c product screenshot where fullImageId = ? or returns null if it could not be found.
 com.liferay.portlet.softwarecatalog.model.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.
 com.liferay.portlet.softwarecatalog.model.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.
 com.liferay.portlet.softwarecatalog.model.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.
 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByPrimaryKey(long productScreenshotId)
          Returns the s c product screenshot with the primary key or returns null if it could not be found.
 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByPrimaryKey(java.io.Serializable primaryKey)
          Returns the s c product screenshot with the primary key or returns null if it could not be found.
 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByThumbnailId(long thumbnailId)
          Returns the s c product screenshot where thumbnailId = ? or returns null if it could not be found.
 com.liferay.portlet.softwarecatalog.model.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.
 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll()
          Returns all the s c product screenshots.
 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll(int start, int end)
          Returns a range of all the s c product screenshots.
 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the s c product screenshots.
 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByFullImageId(long fullImageId)
          Returns the s c product screenshot where fullImageId = ? or throws a NoSuchProductScreenshotException if it could not be found.
 com.liferay.portlet.softwarecatalog.model.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.
 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByPrimaryKey(long productScreenshotId)
          Returns the s c product screenshot with the primary key or throws a NoSuchProductScreenshotException if it could not be found.
 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByPrimaryKey(java.io.Serializable primaryKey)
          Returns the s c product screenshot with the primary key or throws a NoSuchModelException if it could not be found.
 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_First(long productEntryId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first s c product screenshot in the ordered set where productEntryId = ?.
 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_Last(long productEntryId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last s c product screenshot in the ordered set where productEntryId = ?.
 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot[] findByProductEntryId_PrevAndNext(long productScreenshotId, long productEntryId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the s c product screenshots before and after the current s c product screenshot in the ordered set where productEntryId = ?.
 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(long productEntryId)
          Returns all the s c product screenshots where productEntryId = ?.
 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(long productEntryId, int start, int end)
          Returns a range of all the s c product screenshots where productEntryId = ?.
 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(long productEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the s c product screenshots where productEntryId = ?.
 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByThumbnailId(long thumbnailId)
          Returns the s c product screenshot where thumbnailId = ? or throws a NoSuchProductScreenshotException if it could not be found.
protected  com.liferay.portlet.softwarecatalog.model.SCProductScreenshot getByProductEntryId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot, long productEntryId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot remove(long productScreenshotId)
          Removes the s c product screenshot with the primary key from the database.
 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot remove(java.io.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  com.liferay.portlet.softwarecatalog.model.SCProductScreenshot removeImpl(com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot)
           
protected  com.liferay.portlet.softwarecatalog.model.SCProductScreenshot toUnwrappedModel(com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot)
           
 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot updateImpl(com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot, boolean merge)
           
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, 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 java.lang.String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final java.lang.String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_BY_PRODUCTENTRYID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_PRODUCTENTRYID

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PRODUCTENTRYID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_PRODUCTENTRYID

FINDER_PATH_COUNT_BY_PRODUCTENTRYID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_PRODUCTENTRYID

FINDER_PATH_FETCH_BY_THUMBNAILID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_THUMBNAILID

FINDER_PATH_COUNT_BY_THUMBNAILID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_THUMBNAILID

FINDER_PATH_FETCH_BY_FULLIMAGEID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_FULLIMAGEID

FINDER_PATH_COUNT_BY_FULLIMAGEID

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_FULLIMAGEID

FINDER_PATH_FETCH_BY_P_P

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_P_P

FINDER_PATH_COUNT_BY_P_P

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_P_P

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL

scFrameworkVersionPersistence

@BeanReference(type=com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence.class)
protected com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence scFrameworkVersionPersistence

scLicensePersistence

@BeanReference(type=com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence.class)
protected com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence scLicensePersistence

scProductEntryPersistence

@BeanReference(type=com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence.class)
protected com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence scProductEntryPersistence

scProductScreenshotPersistence

@BeanReference(type=com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence.class)
protected com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence scProductScreenshotPersistence

scProductVersionPersistence

@BeanReference(type=com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence.class)
protected com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence scProductVersionPersistence

imagePersistence

@BeanReference(type=com.liferay.portal.service.persistence.ImagePersistence.class)
protected com.liferay.portal.service.persistence.ImagePersistence imagePersistence

resourcePersistence

@BeanReference(type=com.liferay.portal.service.persistence.ResourcePersistence.class)
protected com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence

userPersistence

@BeanReference(type=com.liferay.portal.service.persistence.UserPersistence.class)
protected com.liferay.portal.service.persistence.UserPersistence userPersistence
Constructor Detail

SCProductScreenshotPersistenceImpl

public SCProductScreenshotPersistenceImpl()
Method Detail

cacheResult

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

Specified by:
cacheResult in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Parameters:
scProductScreenshot - the s c product screenshot

cacheResult

public void cacheResult(java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> scProductScreenshots)
Caches the s c product screenshots in the entity cache if it is enabled.

Specified by:
cacheResult in interface com.liferay.portlet.softwarecatalog.service.persistence.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 com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot>

clearCache

public void clearCache(com.liferay.portlet.softwarecatalog.model.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 com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot>

clearCache

public void clearCache(java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> scProductScreenshots)
Specified by:
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot>

clearUniqueFindersCache

protected void clearUniqueFindersCache(com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot)

create

public com.liferay.portlet.softwarecatalog.model.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 com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Parameters:
productScreenshotId - the primary key for the new s c product screenshot
Returns:
the new s c product screenshot

remove

public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot remove(long productScreenshotId)
                                                                     throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException,
                                                                            com.liferay.portal.kernel.exception.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 com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Parameters:
productScreenshotId - the primary key of the s c product screenshot
Returns:
the s c product screenshot that was removed
Throws:
com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException - if a s c product screenshot with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

remove

public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot remove(java.io.Serializable primaryKey)
                                                                     throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException,
                                                                            com.liferay.portal.kernel.exception.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 com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot>
Overrides:
remove in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot>
Parameters:
primaryKey - the primary key of the s c product screenshot
Returns:
the s c product screenshot that was removed
Throws:
com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException - if a s c product screenshot with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeImpl

protected com.liferay.portlet.softwarecatalog.model.SCProductScreenshot removeImpl(com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot)
                                                                            throws com.liferay.portal.kernel.exception.SystemException
Overrides:
removeImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot>
Throws:
com.liferay.portal.kernel.exception.SystemException

updateImpl

public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot updateImpl(com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot,
                                                                                boolean merge)
                                                                         throws com.liferay.portal.kernel.exception.SystemException
Specified by:
updateImpl in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Overrides:
updateImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot>
Throws:
com.liferay.portal.kernel.exception.SystemException

toUnwrappedModel

protected com.liferay.portlet.softwarecatalog.model.SCProductScreenshot toUnwrappedModel(com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot)

findByPrimaryKey

public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByPrimaryKey(java.io.Serializable primaryKey)
                                                                               throws com.liferay.portal.NoSuchModelException,
                                                                                      com.liferay.portal.kernel.exception.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 com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot>
Overrides:
findByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot>
Parameters:
primaryKey - the primary key of the s c product screenshot
Returns:
the s c product screenshot
Throws:
com.liferay.portal.NoSuchModelException - if a s c product screenshot with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByPrimaryKey

public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByPrimaryKey(long productScreenshotId)
                                                                               throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException,
                                                                                      com.liferay.portal.kernel.exception.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 com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Parameters:
productScreenshotId - the primary key of the s c product screenshot
Returns:
the s c product screenshot
Throws:
com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException - if a s c product screenshot with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByPrimaryKey

public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByPrimaryKey(java.io.Serializable primaryKey)
                                                                                throws com.liferay.portal.kernel.exception.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 com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot>
Overrides:
fetchByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.softwarecatalog.model.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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByPrimaryKey

public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByPrimaryKey(long productScreenshotId)
                                                                                throws com.liferay.portal.kernel.exception.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 com.liferay.portlet.softwarecatalog.service.persistence.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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByProductEntryId

public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(long productEntryId)
                                                                                                   throws com.liferay.portal.kernel.exception.SystemException
Returns all the s c product screenshots where productEntryId = ?.

Specified by:
findByProductEntryId in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Parameters:
productEntryId - the product entry ID
Returns:
the matching s c product screenshots
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByProductEntryId

public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(long productEntryId,
                                                                                                          int start,
                                                                                                          int end)
                                                                                                   throws com.liferay.portal.kernel.exception.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 com.liferay.portlet.softwarecatalog.service.persistence.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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByProductEntryId

public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(long productEntryId,
                                                                                                          int start,
                                                                                                          int end,
                                                                                                          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                                   throws com.liferay.portal.kernel.exception.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 com.liferay.portlet.softwarecatalog.service.persistence.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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByProductEntryId_First

public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_First(long productEntryId,
                                                                                                com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                         throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException,
                                                                                                com.liferay.portal.kernel.exception.SystemException
Returns 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 com.liferay.portlet.softwarecatalog.service.persistence.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:
com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException - if a matching s c product screenshot could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByProductEntryId_Last

public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_Last(long productEntryId,
                                                                                               com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                        throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException,
                                                                                               com.liferay.portal.kernel.exception.SystemException
Returns 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 com.liferay.portlet.softwarecatalog.service.persistence.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:
com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException - if a matching s c product screenshot could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByProductEntryId_PrevAndNext

public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot[] findByProductEntryId_PrevAndNext(long productScreenshotId,
                                                                                                        long productEntryId,
                                                                                                        com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                                 throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException,
                                                                                                        com.liferay.portal.kernel.exception.SystemException
Returns 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 com.liferay.portlet.softwarecatalog.service.persistence.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:
com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException - if a s c product screenshot with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByProductEntryId_PrevAndNext

protected com.liferay.portlet.softwarecatalog.model.SCProductScreenshot getByProductEntryId_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                                                        com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot,
                                                                                                        long productEntryId,
                                                                                                        com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                                                        boolean previous)

findByThumbnailId

public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByThumbnailId(long thumbnailId)
                                                                                throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException,
                                                                                       com.liferay.portal.kernel.exception.SystemException
Returns the s c product screenshot where thumbnailId = ? or throws a NoSuchProductScreenshotException if it could not be found.

Specified by:
findByThumbnailId in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Parameters:
thumbnailId - the thumbnail ID
Returns:
the matching s c product screenshot
Throws:
com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException - if a matching s c product screenshot could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByThumbnailId

public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByThumbnailId(long thumbnailId)
                                                                                 throws com.liferay.portal.kernel.exception.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 com.liferay.portlet.softwarecatalog.service.persistence.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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByThumbnailId

public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByThumbnailId(long thumbnailId,
                                                                                        boolean retrieveFromCache)
                                                                                 throws com.liferay.portal.kernel.exception.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 com.liferay.portlet.softwarecatalog.service.persistence.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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByFullImageId

public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByFullImageId(long fullImageId)
                                                                                throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException,
                                                                                       com.liferay.portal.kernel.exception.SystemException
Returns the s c product screenshot where fullImageId = ? or throws a NoSuchProductScreenshotException if it could not be found.

Specified by:
findByFullImageId in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Parameters:
fullImageId - the full image ID
Returns:
the matching s c product screenshot
Throws:
com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException - if a matching s c product screenshot could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByFullImageId

public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByFullImageId(long fullImageId)
                                                                                 throws com.liferay.portal.kernel.exception.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 com.liferay.portlet.softwarecatalog.service.persistence.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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByFullImageId

public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByFullImageId(long fullImageId,
                                                                                        boolean retrieveFromCache)
                                                                                 throws com.liferay.portal.kernel.exception.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 com.liferay.portlet.softwarecatalog.service.persistence.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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByP_P

public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByP_P(long productEntryId,
                                                                               int priority)
                                                                        throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException,
                                                                               com.liferay.portal.kernel.exception.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 com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Parameters:
productEntryId - the product entry ID
priority - the priority
Returns:
the matching s c product screenshot
Throws:
com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException - if a matching s c product screenshot could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByP_P

public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByP_P(long productEntryId,
                                                                                int priority)
                                                                         throws com.liferay.portal.kernel.exception.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 com.liferay.portlet.softwarecatalog.service.persistence.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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByP_P

public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByP_P(long productEntryId,
                                                                                int priority,
                                                                                boolean retrieveFromCache)
                                                                         throws com.liferay.portal.kernel.exception.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 com.liferay.portlet.softwarecatalog.service.persistence.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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findAll

public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll()
                                                                                      throws com.liferay.portal.kernel.exception.SystemException
Returns all the s c product screenshots.

Specified by:
findAll in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Returns:
the s c product screenshots
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findAll

public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll(int start,
                                                                                             int end)
                                                                                      throws com.liferay.portal.kernel.exception.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 com.liferay.portlet.softwarecatalog.service.persistence.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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findAll

public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll(int start,
                                                                                             int end,
                                                                                             com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                      throws com.liferay.portal.kernel.exception.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 com.liferay.portlet.softwarecatalog.service.persistence.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:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByProductEntryId

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

Specified by:
removeByProductEntryId in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Parameters:
productEntryId - the product entry ID
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByThumbnailId

public void removeByThumbnailId(long thumbnailId)
                         throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException,
                                com.liferay.portal.kernel.exception.SystemException
Removes the s c product screenshot where thumbnailId = ? from the database.

Specified by:
removeByThumbnailId in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Parameters:
thumbnailId - the thumbnail ID
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException

removeByFullImageId

public void removeByFullImageId(long fullImageId)
                         throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException,
                                com.liferay.portal.kernel.exception.SystemException
Removes the s c product screenshot where fullImageId = ? from the database.

Specified by:
removeByFullImageId in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Parameters:
fullImageId - the full image ID
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException

removeByP_P

public void removeByP_P(long productEntryId,
                        int priority)
                 throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException,
                        com.liferay.portal.kernel.exception.SystemException
Removes the s c product screenshot where productEntryId = ? and priority = ? from the database.

Specified by:
removeByP_P in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Parameters:
productEntryId - the product entry ID
priority - the priority
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException

removeAll

public void removeAll()
               throws com.liferay.portal.kernel.exception.SystemException
Removes all the s c product screenshots from the database.

Specified by:
removeAll in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByProductEntryId

public int countByProductEntryId(long productEntryId)
                          throws com.liferay.portal.kernel.exception.SystemException
Returns the number of s c product screenshots where productEntryId = ?.

Specified by:
countByProductEntryId in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Parameters:
productEntryId - the product entry ID
Returns:
the number of matching s c product screenshots
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByThumbnailId

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

Specified by:
countByThumbnailId in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Parameters:
thumbnailId - the thumbnail ID
Returns:
the number of matching s c product screenshots
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByFullImageId

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

Specified by:
countByFullImageId in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Parameters:
fullImageId - the full image ID
Returns:
the number of matching s c product screenshots
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByP_P

public int countByP_P(long productEntryId,
                      int priority)
               throws com.liferay.portal.kernel.exception.SystemException
Returns the number of s c product screenshots where productEntryId = ? and priority = ?.

Specified by:
countByP_P in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Parameters:
productEntryId - the product entry ID
priority - the priority
Returns:
the number of matching s c product screenshots
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countAll

public int countAll()
             throws com.liferay.portal.kernel.exception.SystemException
Returns the number of s c product screenshots.

Specified by:
countAll in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Returns:
the number of s c product screenshots
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

afterPropertiesSet

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


destroy

public void destroy()