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

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl
      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.service.persistence.SCProductScreenshotPersistence

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

View Source

Author:
Brian Wing Shun Chan

Field Summary
protected  com.liferay.portal.service.persistence.ImagePersistence imagePersistence
           
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
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, listeners
 
Constructor Summary
SCProductScreenshotPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
           
 int countAll()
           
 int countByFullImageId(long fullImageId)
           
 int countByP_P(long productEntryId, int priority)
           
 int countByProductEntryId(long productEntryId)
           
 int countByThumbnailId(long thumbnailId)
           
 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot create(long productScreenshotId)
           
 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByFullImageId(long fullImageId)
           
 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByP_P(long productEntryId, int priority)
           
 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByPrimaryKey(long productScreenshotId)
           
 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByThumbnailId(long thumbnailId)
           
 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll()
           
 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll(int start, int end)
           
 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByFullImageId(long fullImageId)
           
 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByP_P(long productEntryId, int priority)
           
 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByPrimaryKey(long productScreenshotId)
           
 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_First(long productEntryId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_Last(long productEntryId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot[] findByProductEntryId_PrevAndNext(long productScreenshotId, long productEntryId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(long productEntryId)
           
 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(long productEntryId, int start, int end)
           
 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(long productEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByThumbnailId(long thumbnailId)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot remove(long productScreenshotId)
           
 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot remove(com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot)
           
 void removeAll()
           
 void removeByFullImageId(long fullImageId)
           
 void removeByP_P(long productEntryId, int priority)
           
 void removeByProductEntryId(long productEntryId)
           
 void removeByThumbnailId(long thumbnailId)
           
protected  com.liferay.portlet.softwarecatalog.model.SCProductScreenshot removeImpl(com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot)
           
 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot update(com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot)
          Deprecated. Use update(SCProductScreenshot scProductScreenshot, boolean merge).
 com.liferay.portlet.softwarecatalog.model.SCProductScreenshot update(com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot, boolean merge)
          Add, update, or merge, the entity.
 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
closeSession, getDataSource, getDialect, getListeners, openSession, processException, registerListener, setDataSource, setSessionFactory, unregisterListener
 
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
getListeners, registerListener, unregisterListener
 

Field Detail

scLicensePersistence

@BeanReference(name="com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence.impl")
protected com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence scLicensePersistence

scFrameworkVersionPersistence

@BeanReference(name="com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence.impl")
protected com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence scFrameworkVersionPersistence

scProductEntryPersistence

@BeanReference(name="com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence.impl")
protected com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence scProductEntryPersistence

scProductScreenshotPersistence

@BeanReference(name="com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence.impl")
protected com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence scProductScreenshotPersistence

scProductVersionPersistence

@BeanReference(name="com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence.impl")
protected com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence scProductVersionPersistence

imagePersistence

@BeanReference(name="com.liferay.portal.service.persistence.ImagePersistence.impl")
protected com.liferay.portal.service.persistence.ImagePersistence imagePersistence
Constructor Detail

SCProductScreenshotPersistenceImpl

public SCProductScreenshotPersistenceImpl()
Method Detail

create

public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot create(long productScreenshotId)
Specified by:
create in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence

remove

public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot remove(long productScreenshotId)
                                                                     throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException,
                                                                            com.liferay.portal.SystemException
Specified by:
remove in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Throws:
com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException
com.liferay.portal.SystemException

remove

public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot remove(com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot)
                                                                     throws com.liferay.portal.SystemException
Specified by:
remove in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Throws:
com.liferay.portal.SystemException

removeImpl

protected com.liferay.portlet.softwarecatalog.model.SCProductScreenshot removeImpl(com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot)
                                                                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot update(com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot)
                                                                     throws com.liferay.portal.SystemException
Deprecated. Use update(SCProductScreenshot scProductScreenshot, boolean merge).

Specified by:
update in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Throws:
com.liferay.portal.SystemException

update

public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot update(com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot,
                                                                            boolean merge)
                                                                     throws com.liferay.portal.SystemException
Add, update, or merge, the entity. This method also calls the model listeners to trigger the proper events associated with adding, deleting, or updating an entity.

Specified by:
update in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Parameters:
scProductScreenshot - the entity to add, update, or merge
merge - boolean value for whether to merge the entity. The default value is false. Setting merge to true is more expensive and should only be true when scProductScreenshot is transient. See LEP-5473 for a detailed discussion of this method.
Returns:
true if the portlet can be displayed via Ajax
Throws:
com.liferay.portal.SystemException

updateImpl

public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot updateImpl(com.liferay.portlet.softwarecatalog.model.SCProductScreenshot scProductScreenshot,
                                                                                boolean merge)
                                                                         throws com.liferay.portal.SystemException
Specified by:
updateImpl in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByPrimaryKey(long productScreenshotId)
                                                                               throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException,
                                                                                      com.liferay.portal.SystemException
Specified by:
findByPrimaryKey in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Throws:
com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException
com.liferay.portal.SystemException

fetchByPrimaryKey

public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByPrimaryKey(long productScreenshotId)
                                                                                throws com.liferay.portal.SystemException
Specified by:
fetchByPrimaryKey in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Throws:
com.liferay.portal.SystemException

findByProductEntryId

public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(long productEntryId)
                                                                                                   throws com.liferay.portal.SystemException
Specified by:
findByProductEntryId in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Throws:
com.liferay.portal.SystemException

findByProductEntryId

public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(long productEntryId,
                                                                                                          int start,
                                                                                                          int end)
                                                                                                   throws com.liferay.portal.SystemException
Specified by:
findByProductEntryId in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Throws:
com.liferay.portal.SystemException

findByProductEntryId

public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findByProductEntryId(long productEntryId,
                                                                                                          int start,
                                                                                                          int end,
                                                                                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                                                   throws com.liferay.portal.SystemException
Specified by:
findByProductEntryId in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Throws:
com.liferay.portal.SystemException

findByProductEntryId_First

public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_First(long productEntryId,
                                                                                                com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                                         throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException,
                                                                                                com.liferay.portal.SystemException
Specified by:
findByProductEntryId_First in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Throws:
com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException
com.liferay.portal.SystemException

findByProductEntryId_Last

public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByProductEntryId_Last(long productEntryId,
                                                                                               com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                                        throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException,
                                                                                               com.liferay.portal.SystemException
Specified by:
findByProductEntryId_Last in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Throws:
com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException
com.liferay.portal.SystemException

findByProductEntryId_PrevAndNext

public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot[] findByProductEntryId_PrevAndNext(long productScreenshotId,
                                                                                                        long productEntryId,
                                                                                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                                                 throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException,
                                                                                                        com.liferay.portal.SystemException
Specified by:
findByProductEntryId_PrevAndNext in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Throws:
com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException
com.liferay.portal.SystemException

findByThumbnailId

public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByThumbnailId(long thumbnailId)
                                                                                throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException,
                                                                                       com.liferay.portal.SystemException
Specified by:
findByThumbnailId in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Throws:
com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException
com.liferay.portal.SystemException

fetchByThumbnailId

public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByThumbnailId(long thumbnailId)
                                                                                 throws com.liferay.portal.SystemException
Specified by:
fetchByThumbnailId in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Throws:
com.liferay.portal.SystemException

findByFullImageId

public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByFullImageId(long fullImageId)
                                                                                throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException,
                                                                                       com.liferay.portal.SystemException
Specified by:
findByFullImageId in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Throws:
com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException
com.liferay.portal.SystemException

fetchByFullImageId

public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByFullImageId(long fullImageId)
                                                                                 throws com.liferay.portal.SystemException
Specified by:
fetchByFullImageId in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Throws:
com.liferay.portal.SystemException

findByP_P

public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot findByP_P(long productEntryId,
                                                                               int priority)
                                                                        throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException,
                                                                               com.liferay.portal.SystemException
Specified by:
findByP_P in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Throws:
com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException
com.liferay.portal.SystemException

fetchByP_P

public com.liferay.portlet.softwarecatalog.model.SCProductScreenshot fetchByP_P(long productEntryId,
                                                                                int priority)
                                                                         throws com.liferay.portal.SystemException
Specified by:
fetchByP_P in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                      throws com.liferay.portal.SystemException
Specified by:
findWithDynamicQuery in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                             int start,
                                                             int end)
                                                      throws com.liferay.portal.SystemException
Specified by:
findWithDynamicQuery in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Throws:
com.liferay.portal.SystemException

findAll

public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll()
                                                                                      throws com.liferay.portal.SystemException
Specified by:
findAll in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Throws:
com.liferay.portal.SystemException

findAll

public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll(int start,
                                                                                             int end)
                                                                                      throws com.liferay.portal.SystemException
Specified by:
findAll in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Throws:
com.liferay.portal.SystemException

findAll

public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductScreenshot> findAll(int start,
                                                                                             int end,
                                                                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                                      throws com.liferay.portal.SystemException
Specified by:
findAll in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Throws:
com.liferay.portal.SystemException

removeByProductEntryId

public void removeByProductEntryId(long productEntryId)
                            throws com.liferay.portal.SystemException
Specified by:
removeByProductEntryId in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Throws:
com.liferay.portal.SystemException

removeByThumbnailId

public void removeByThumbnailId(long thumbnailId)
                         throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException,
                                com.liferay.portal.SystemException
Specified by:
removeByThumbnailId in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Throws:
com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException
com.liferay.portal.SystemException

removeByFullImageId

public void removeByFullImageId(long fullImageId)
                         throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException,
                                com.liferay.portal.SystemException
Specified by:
removeByFullImageId in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Throws:
com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException
com.liferay.portal.SystemException

removeByP_P

public void removeByP_P(long productEntryId,
                        int priority)
                 throws com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException,
                        com.liferay.portal.SystemException
Specified by:
removeByP_P in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Throws:
com.liferay.portlet.softwarecatalog.NoSuchProductScreenshotException
com.liferay.portal.SystemException

removeAll

public void removeAll()
               throws com.liferay.portal.SystemException
Specified by:
removeAll in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Throws:
com.liferay.portal.SystemException

countByProductEntryId

public int countByProductEntryId(long productEntryId)
                          throws com.liferay.portal.SystemException
Specified by:
countByProductEntryId in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Throws:
com.liferay.portal.SystemException

countByThumbnailId

public int countByThumbnailId(long thumbnailId)
                       throws com.liferay.portal.SystemException
Specified by:
countByThumbnailId in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Throws:
com.liferay.portal.SystemException

countByFullImageId

public int countByFullImageId(long fullImageId)
                       throws com.liferay.portal.SystemException
Specified by:
countByFullImageId in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Throws:
com.liferay.portal.SystemException

countByP_P

public int countByP_P(long productEntryId,
                      int priority)
               throws com.liferay.portal.SystemException
Specified by:
countByP_P in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Throws:
com.liferay.portal.SystemException

countAll

public int countAll()
             throws com.liferay.portal.SystemException
Specified by:
countAll in interface com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence
Throws:
com.liferay.portal.SystemException

afterPropertiesSet

public void afterPropertiesSet()