Liferay 6.0.3

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

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

Field Summary
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_FULLIMAGEID
           
static FinderPath FINDER_PATH_COUNT_BY_P_P
           
static FinderPath FINDER_PATH_COUNT_BY_PRODUCTENTRYID
           
static FinderPath FINDER_PATH_COUNT_BY_THUMBNAILID
           
static FinderPath FINDER_PATH_FETCH_BY_FULLIMAGEID
           
static FinderPath FINDER_PATH_FETCH_BY_P_P
           
static FinderPath FINDER_PATH_FETCH_BY_THUMBNAILID
           
static FinderPath FINDER_PATH_FIND_ALL
           
static FinderPath FINDER_PATH_FIND_BY_PRODUCTENTRYID
           
protected  ImagePersistence imagePersistence
           
protected  ResourcePersistence resourcePersistence
           
protected  SCFrameworkVersionPersistence scFrameworkVersionPersistence
           
protected  SCLicensePersistence scLicensePersistence
           
protected  SCProductEntryPersistence scProductEntryPersistence
           
protected  SCProductScreenshotPersistence scProductScreenshotPersistence
           
protected  SCProductVersionPersistence scProductVersionPersistence
           
protected  UserPersistence userPersistence
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
SCProductScreenshotPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
           
 void cacheResult(List<SCProductScreenshot> scProductScreenshots)
           
 void cacheResult(SCProductScreenshot scProductScreenshot)
           
 void clearCache()
          Clears the cache for all instances of this model.
 void clearCache(SCProductScreenshot scProductScreenshot)
          Clears the cache for one instance of this model.
 int countAll()
           
 int countByFullImageId(long fullImageId)
           
 int countByP_P(long productEntryId, int priority)
           
 int countByProductEntryId(long productEntryId)
           
 int countByThumbnailId(long thumbnailId)
           
 SCProductScreenshot create(long productScreenshotId)
           
 SCProductScreenshot fetchByFullImageId(long fullImageId)
           
 SCProductScreenshot fetchByFullImageId(long fullImageId, boolean retrieveFromCache)
           
 SCProductScreenshot fetchByP_P(long productEntryId, int priority)
           
 SCProductScreenshot fetchByP_P(long productEntryId, int priority, boolean retrieveFromCache)
           
 SCProductScreenshot fetchByPrimaryKey(long productScreenshotId)
           
 SCProductScreenshot fetchByPrimaryKey(Serializable primaryKey)
          Finds an instance of this model by its primary key, or return null if it could not be found.
 SCProductScreenshot fetchByThumbnailId(long thumbnailId)
           
 SCProductScreenshot fetchByThumbnailId(long thumbnailId, boolean retrieveFromCache)
           
 List<SCProductScreenshot> findAll()
           
 List<SCProductScreenshot> findAll(int start, int end)
           
 List<SCProductScreenshot> findAll(int start, int end, OrderByComparator orderByComparator)
           
 SCProductScreenshot findByFullImageId(long fullImageId)
           
 SCProductScreenshot findByP_P(long productEntryId, int priority)
           
 SCProductScreenshot findByPrimaryKey(long productScreenshotId)
           
 SCProductScreenshot findByPrimaryKey(Serializable primaryKey)
          Finds an instance of this model by its primary key, or throw an exception if it could not be found.
 SCProductScreenshot findByProductEntryId_First(long productEntryId, OrderByComparator orderByComparator)
           
 SCProductScreenshot findByProductEntryId_Last(long productEntryId, OrderByComparator orderByComparator)
           
 SCProductScreenshot[] findByProductEntryId_PrevAndNext(long productScreenshotId, long productEntryId, OrderByComparator orderByComparator)
           
 List<SCProductScreenshot> findByProductEntryId(long productEntryId)
           
 List<SCProductScreenshot> findByProductEntryId(long productEntryId, int start, int end)
           
 List<SCProductScreenshot> findByProductEntryId(long productEntryId, int start, int end, OrderByComparator orderByComparator)
           
 SCProductScreenshot findByThumbnailId(long thumbnailId)
           
protected  SCProductScreenshot getByProductEntryId_PrevAndNext(Session session, SCProductScreenshot scProductScreenshot, long productEntryId, OrderByComparator orderByComparator, boolean previous)
           
 SCProductScreenshot remove(long productScreenshotId)
           
 SCProductScreenshot remove(Serializable primaryKey)
          Removes the model instance identified by the primary key from the database, and notifies the appropriate model listeners.
 void removeAll()
           
 void removeByFullImageId(long fullImageId)
           
 void removeByP_P(long productEntryId, int priority)
           
 void removeByProductEntryId(long productEntryId)
           
 void removeByThumbnailId(long thumbnailId)
           
protected  SCProductScreenshot removeImpl(SCProductScreenshot scProductScreenshot)
          Removes the model instance from the database.
protected  SCProductScreenshot toUnwrappedModel(SCProductScreenshot scProductScreenshot)
           
 SCProductScreenshot updateImpl(SCProductScreenshot scProductScreenshot, boolean merge)
          Updates the model instance in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST

public static final String FINDER_CLASS_NAME_LIST

FINDER_PATH_FIND_BY_PRODUCTENTRYID

public static final FinderPath FINDER_PATH_FIND_BY_PRODUCTENTRYID

FINDER_PATH_COUNT_BY_PRODUCTENTRYID

public static final FinderPath FINDER_PATH_COUNT_BY_PRODUCTENTRYID

FINDER_PATH_FETCH_BY_THUMBNAILID

public static final FinderPath FINDER_PATH_FETCH_BY_THUMBNAILID

FINDER_PATH_COUNT_BY_THUMBNAILID

public static final FinderPath FINDER_PATH_COUNT_BY_THUMBNAILID

FINDER_PATH_FETCH_BY_FULLIMAGEID

public static final FinderPath FINDER_PATH_FETCH_BY_FULLIMAGEID

FINDER_PATH_COUNT_BY_FULLIMAGEID

public static final FinderPath FINDER_PATH_COUNT_BY_FULLIMAGEID

FINDER_PATH_FETCH_BY_P_P

public static final FinderPath FINDER_PATH_FETCH_BY_P_P

FINDER_PATH_COUNT_BY_P_P

public static final FinderPath FINDER_PATH_COUNT_BY_P_P

FINDER_PATH_FIND_ALL

public static final FinderPath FINDER_PATH_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

scLicensePersistence

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

scFrameworkVersionPersistence

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

scProductEntryPersistence

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

scProductScreenshotPersistence

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

scProductVersionPersistence

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

imagePersistence

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

resourcePersistence

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

userPersistence

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

SCProductScreenshotPersistenceImpl

public SCProductScreenshotPersistenceImpl()
Method Detail

cacheResult

public void cacheResult(SCProductScreenshot scProductScreenshot)
Specified by:
cacheResult in interface SCProductScreenshotPersistence

cacheResult

public void cacheResult(List<SCProductScreenshot> scProductScreenshots)
Specified by:
cacheResult in interface SCProductScreenshotPersistence

clearCache

public void clearCache()
Description copied from interface: BasePersistence
Clears the cache for all instances of this model.

The EntityCache and FinderCache are both cleared by this method.

Caching information and settings can be found in portal.properties

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

clearCache

public void clearCache(SCProductScreenshot scProductScreenshot)
Description copied from interface: BasePersistence
Clears the cache for one instance 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:
scProductScreenshot - the instance of this model to clear the cache for

create

public SCProductScreenshot create(long productScreenshotId)
Specified by:
create in interface SCProductScreenshotPersistence

remove

public SCProductScreenshot remove(Serializable primaryKey)
                           throws NoSuchModelException,
                                  SystemException
Description copied from interface: BasePersistence
Removes the model instance identified by the primary key from the database, and 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 model instance to remove
Returns:
the model instance that was removed
Throws:
NoSuchModelException - if an instance of this model with the primary key does not exist
SystemException - if a system exception occurred

remove

public SCProductScreenshot remove(long productScreenshotId)
                           throws NoSuchProductScreenshotException,
                                  SystemException
Specified by:
remove in interface SCProductScreenshotPersistence
Throws:
NoSuchProductScreenshotException
SystemException

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
Description copied from interface: BasePersistence
Finds an instance of this model by its primary key, or throw an exception 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 model instance to find
Returns:
the model instance
Throws:
NoSuchModelException - if an instance of this model with the primary key does not exist
SystemException - if the primary key is null, or if a system exception occurred

findByPrimaryKey

public SCProductScreenshot findByPrimaryKey(long productScreenshotId)
                                     throws NoSuchProductScreenshotException,
                                            SystemException
Specified by:
findByPrimaryKey in interface SCProductScreenshotPersistence
Throws:
NoSuchProductScreenshotException
SystemException

fetchByPrimaryKey

public SCProductScreenshot fetchByPrimaryKey(Serializable primaryKey)
                                      throws SystemException
Description copied from interface: BasePersistence
Finds an instance of this model by its primary key, or return 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 model instance to find
Returns:
the model instance, or null if an instance of this model with the primary key does not exist
Throws:
SystemException - if the primary key is null, or if a system exception occurred

fetchByPrimaryKey

public SCProductScreenshot fetchByPrimaryKey(long productScreenshotId)
                                      throws SystemException
Specified by:
fetchByPrimaryKey in interface SCProductScreenshotPersistence
Throws:
SystemException

findByProductEntryId

public List<SCProductScreenshot> findByProductEntryId(long productEntryId)
                                               throws SystemException
Specified by:
findByProductEntryId in interface SCProductScreenshotPersistence
Throws:
SystemException

findByProductEntryId

public List<SCProductScreenshot> findByProductEntryId(long productEntryId,
                                                      int start,
                                                      int end)
                                               throws SystemException
Specified by:
findByProductEntryId in interface SCProductScreenshotPersistence
Throws:
SystemException

findByProductEntryId

public List<SCProductScreenshot> findByProductEntryId(long productEntryId,
                                                      int start,
                                                      int end,
                                                      OrderByComparator orderByComparator)
                                               throws SystemException
Specified by:
findByProductEntryId in interface SCProductScreenshotPersistence
Throws:
SystemException

findByProductEntryId_First

public SCProductScreenshot findByProductEntryId_First(long productEntryId,
                                                      OrderByComparator orderByComparator)
                                               throws NoSuchProductScreenshotException,
                                                      SystemException
Specified by:
findByProductEntryId_First in interface SCProductScreenshotPersistence
Throws:
NoSuchProductScreenshotException
SystemException

findByProductEntryId_Last

public SCProductScreenshot findByProductEntryId_Last(long productEntryId,
                                                     OrderByComparator orderByComparator)
                                              throws NoSuchProductScreenshotException,
                                                     SystemException
Specified by:
findByProductEntryId_Last in interface SCProductScreenshotPersistence
Throws:
NoSuchProductScreenshotException
SystemException

findByProductEntryId_PrevAndNext

public SCProductScreenshot[] findByProductEntryId_PrevAndNext(long productScreenshotId,
                                                              long productEntryId,
                                                              OrderByComparator orderByComparator)
                                                       throws NoSuchProductScreenshotException,
                                                              SystemException
Specified by:
findByProductEntryId_PrevAndNext in interface SCProductScreenshotPersistence
Throws:
NoSuchProductScreenshotException
SystemException

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

fetchByThumbnailId

public SCProductScreenshot fetchByThumbnailId(long thumbnailId)
                                       throws SystemException
Specified by:
fetchByThumbnailId in interface SCProductScreenshotPersistence
Throws:
SystemException

fetchByThumbnailId

public SCProductScreenshot fetchByThumbnailId(long thumbnailId,
                                              boolean retrieveFromCache)
                                       throws SystemException
Specified by:
fetchByThumbnailId in interface SCProductScreenshotPersistence
Throws:
SystemException

findByFullImageId

public SCProductScreenshot findByFullImageId(long fullImageId)
                                      throws NoSuchProductScreenshotException,
                                             SystemException
Specified by:
findByFullImageId in interface SCProductScreenshotPersistence
Throws:
NoSuchProductScreenshotException
SystemException

fetchByFullImageId

public SCProductScreenshot fetchByFullImageId(long fullImageId)
                                       throws SystemException
Specified by:
fetchByFullImageId in interface SCProductScreenshotPersistence
Throws:
SystemException

fetchByFullImageId

public SCProductScreenshot fetchByFullImageId(long fullImageId,
                                              boolean retrieveFromCache)
                                       throws SystemException
Specified by:
fetchByFullImageId in interface SCProductScreenshotPersistence
Throws:
SystemException

findByP_P

public SCProductScreenshot findByP_P(long productEntryId,
                                     int priority)
                              throws NoSuchProductScreenshotException,
                                     SystemException
Specified by:
findByP_P in interface SCProductScreenshotPersistence
Throws:
NoSuchProductScreenshotException
SystemException

fetchByP_P

public SCProductScreenshot fetchByP_P(long productEntryId,
                                      int priority)
                               throws SystemException
Specified by:
fetchByP_P in interface SCProductScreenshotPersistence
Throws:
SystemException

fetchByP_P

public SCProductScreenshot fetchByP_P(long productEntryId,
                                      int priority,
                                      boolean retrieveFromCache)
                               throws SystemException
Specified by:
fetchByP_P in interface SCProductScreenshotPersistence
Throws:
SystemException

findAll

public List<SCProductScreenshot> findAll()
                                  throws SystemException
Specified by:
findAll in interface SCProductScreenshotPersistence
Throws:
SystemException

findAll

public List<SCProductScreenshot> findAll(int start,
                                         int end)
                                  throws SystemException
Specified by:
findAll in interface SCProductScreenshotPersistence
Throws:
SystemException

findAll

public List<SCProductScreenshot> findAll(int start,
                                         int end,
                                         OrderByComparator orderByComparator)
                                  throws SystemException
Specified by:
findAll in interface SCProductScreenshotPersistence
Throws:
SystemException

removeByProductEntryId

public void removeByProductEntryId(long productEntryId)
                            throws SystemException
Specified by:
removeByProductEntryId in interface SCProductScreenshotPersistence
Throws:
SystemException

removeByThumbnailId

public void removeByThumbnailId(long thumbnailId)
                         throws NoSuchProductScreenshotException,
                                SystemException
Specified by:
removeByThumbnailId in interface SCProductScreenshotPersistence
Throws:
NoSuchProductScreenshotException
SystemException

removeByFullImageId

public void removeByFullImageId(long fullImageId)
                         throws NoSuchProductScreenshotException,
                                SystemException
Specified by:
removeByFullImageId in interface SCProductScreenshotPersistence
Throws:
NoSuchProductScreenshotException
SystemException

removeByP_P

public void removeByP_P(long productEntryId,
                        int priority)
                 throws NoSuchProductScreenshotException,
                        SystemException
Specified by:
removeByP_P in interface SCProductScreenshotPersistence
Throws:
NoSuchProductScreenshotException
SystemException

removeAll

public void removeAll()
               throws SystemException
Specified by:
removeAll in interface SCProductScreenshotPersistence
Throws:
SystemException

countByProductEntryId

public int countByProductEntryId(long productEntryId)
                          throws SystemException
Specified by:
countByProductEntryId in interface SCProductScreenshotPersistence
Throws:
SystemException

countByThumbnailId

public int countByThumbnailId(long thumbnailId)
                       throws SystemException
Specified by:
countByThumbnailId in interface SCProductScreenshotPersistence
Throws:
SystemException

countByFullImageId

public int countByFullImageId(long fullImageId)
                       throws SystemException
Specified by:
countByFullImageId in interface SCProductScreenshotPersistence
Throws:
SystemException

countByP_P

public int countByP_P(long productEntryId,
                      int priority)
               throws SystemException
Specified by:
countByP_P in interface SCProductScreenshotPersistence
Throws:
SystemException

countAll

public int countAll()
             throws SystemException
Specified by:
countAll in interface SCProductScreenshotPersistence
Throws:
SystemException

afterPropertiesSet

public void afterPropertiesSet()

Liferay 6.0.3